diff --git a/et --hard 0fdc58900 b/et --hard 0fdc58900 deleted file mode 100644 index 6e7072845f813b..00000000000000 --- a/et --hard 0fdc58900 +++ /dev/null @@ -1,12168 +0,0 @@ -8f87a896a (HEAD -> dreamcastSDL2, origin/dreamcastSDL2) Merge remote-tracking branch 'upstream/SDL2' into dreamcastSDL2 -dd6c66391 (upstream/SDL2, origin/SDL2) SDL_vitatouch.c: Fixed the incorrect touch device IDs - Begining of device ID with 0 violates the SDL's specification that means the 0 is an error, invalid, failure, etc. But on Vita here it's an actual device... - Replacing 0 and 1 with 1 and 2 to resolve this violation. -764c44db0 cmake/test: don't test swift on ios/tvos platform -52090046f cmake: ios and tvos applications need to link to SDL2main library -3d7007fb2 testgles: ignore GLES deprecation on Apple platforms -248cb3ca9 Fix -Wdeclaration-after-statement warnings -354a35c1d cmake: port back Apple changes from SDL3 -9c9e69f68 Merge branch 'SDL2' into dreamcastSDL2 -0fdc58900 Initial Port of libSDL2 to the Sega Dreamcast -70890b175 (SDL2) Fixed build -586a2dc72 Fixed secondary screens on KMSDRM (#10535) -155c3bb0a SDL_GLattr: formatted wiki documentation to be wikiheaders-friendly. -5ecbc00f3 Add Cammus C12 VID & PID to wheel device list. -a5bff78d8 kmsdrm: free the connector when looking for available devices -5ca0639a4 Fixed crash when the current mouse capture window is destroyed -81252eb06 add failsafe for querying cache line size on linux -151201332 Added detail about why a file couldn't be opened (thanks mgerhardy!) -8f5d3ca57 Added SDL_CreateRenderer to the "see also" for SDL_RenderPresent() -2efbe7fa3 Implemented left-justification in SDL_PrintString() -5c013a4f0 ci: add GDK -7cf3234ef cmake: SDL2 target is not always available -230f1debd Fixed macOS build -0b6eff416 Fixed building on macOS with OpenGL disabled -7fdf79437 Fixed crash with joystick rumble after disconnection -15c73f5bf Fixed whitespace -eee439deb Sync SDL2 wiki -> header -0ba3d9862 SDL_RWFromFile: On Apple platforms, offer a hint to not look in resource dirs. -e306cbcbe Updates CheckLibUDev() to match main, fixing missing HAVE_LIBUDEV -2cb2897e5 SDL_mslibc.c: revert PR/10303 changes -5d1ca1c8c wayland: Don't fail to retrieve a system cursor if no window is focused -50a6a39dd cmake: use genexes for linking against apple frameworks -73066492f testshader.c: include stdlib.h for exit() -86b4d035d SDL_stdinc.h (SDL_COMPILE_TIME_ASSERT): Keep C++ case alone (after PR/10331) -5d606eaae stdinc: c23 deprecated _Static_assert in favor of static_assert -6e931bee0 emscripten: restore key event prevent default behaviour -fd32342ce ci: build MSVC workflows using Ninja generator -ab4370c24 cmake: detect ARM64EC and enable SDL_LIBC by default -7fb8b62a4 cmake: fix building UWP with non-MSVC generator -11c0dfbdf Fix UWP build in non-UNICODE mode -5ab115150 Fix KMSDRM double buffering. -9e6b8d56e Add SDL_VIDEO_DOUBLE_BUFFER support to the Wayland backend. -ccade5058 Fix warning for Android NDK compiler: "function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]" -3f9591bab README-macos: fixed some text. -256269afb sdl2-config.in: use backtics instead of $() for older shells -2eeb39298 pthread: timespec.tv_nsec must be less then 1000000000 ns -3b7eafedb Add a Windows mapping for SplitFish Game Controller -bc39952b2 cmake: only add SDL_LIBC=0 compile options to SDL2 libraries -a25f94c9a ci: run VC tests under sdlprocdump -bba51871a cmake: only link SDL2 against test executables -b057159db Make sure SDL subsystems are initialized before starting threads -b378bc5c8 Make sure timers are initialized before any threads start -b13dcf24d Fixed OS/2 build -551164812 Added TLS initialization and shutdown functions -956a8bf6c ci: bump FreeBSD -663411ff7 haiku: Don't change the cwd on startup if launched from a Terminal. -a2215ff81 KMSDRM: fix unsupported modifiers -b80f6ec05 emscripten: don't consume key down/up events if the user disabled them -3899cb169 Revert "Fixed build" -026dfc630 Fixed build -e22c89536 Make sure we're actually running on Windows before using D3D renderers -849c905d8 wayland: Always create a viewport for the window if available -58e179c8b wgl/glx: Fix attribute list for SDL_GL_FLOATBUFFERS -4c4445025 Improved detection of Nintendo Switch Pro controller report mode -6a1030956 SDL_hidapi.c: work-around watcom build error when libusb is enabled -22770e649 Drain HIDAPI buffer in SDL_hidapi_steamdeck.c. -a4cbba127 Try to create an accelerated renderer for the window surface even if SDL_HINT_RENDER_DRIVER is "software" -b47deb58a vitagxm: Patched to compile. -2c32fd254 Revert "render: Set renderer->window to NULL in SDL_DestroyRendererWithoutFreeing." -5f0f337d3 vitagxm: Patched to compile. -1413d6774 render: SDL_DestroyWindow hollows out its renderer but doesn't free it. -944dc4701 render: Manage memory for SDL_Renderer* at higher level. -845ebbbe9 Added support for the ROG RAIKIRI -cd8ea5e3f Only use the default gamepad mapping if an automatic mapping isn't available -288aea3b4 Fixed build -0d9e54237 Respect SDL_HINT_RENDER_DRIVER when creating an accelerated window surface -a3f0c373d Clean up any renderer in SDL_DestroyWindowSurface() -a0ec7c090 libtool.m4: fix appending of -no_fixup_chains to allow_undefined_flag. -98ec8b88c acinclude/libtool.m4: updates from mainstream git: -3bf2b90da Remove the inconsistent and lag-causing usleep call in SDL_fcitx.c -14183f8ec SDL_endian.h: Fix byte order detection on Solaris (and some SPARC compilers). -d96f1d536 begin_code: Solaris Studio has `__has_attribute` defined by isn't usable here. -3e4bb5acd x11: Fix build when `X_HAVE_UTF8_STRING` is not defined. -498cbffd8 atomic: Solaris needs the `_nv` variant of `atomic_or_uint`. -b23343b7c configure.ac: Explicitly disable Vulkan support on Solaris. -ee3b2b7de Make sure we don't try to use the XInput DLL after it's unloaded -88bbab275 Fixed building with older libdrm headers -ecde0ca6b Fixed building with the steamrt/scout SDK -64d4baccb Fix building with the steamrt/scout SDK -10c14e78b Fixing systimer -4d82ceae0 Add slash to cwd call -20f1061cc video: Fix memory leak when deleting a video display -3b88d4f46 wayland: Fix double free when deleting an output display -6589287ed fix: Use drmModeAddFB2WithModifiers instead of drmModeAddFB to allow using GBM modifiers. -8ae7841d9 Revert "Make sdl2-config interpreter configurable" -99d7b9e62 Fix std::thread memory leak -b9f005505 Make sdl2-config interpreter configurable -ab5740bde Fix joystick (/dev/input/xxx) support on FreeBSD -6a2dd96ac android: actually use ReLinker -b444e656c android: add an option to manually pass the context when loading a native library -c1d10c36e Sync SDL2 wiki -> header -194d72bb2 Add SDL_MOUSE_RELATIVE_CURSOR_VISIBLE (#7947) -4800edfa0 Update qsort implementation -5a26b2688 Fixed requesting USB permission on Android 14 (thanks @ikhoeyZX!) -a6fdd155f Pass through the original name used by the Steam Virtual Gamepad -77285b6c3 Android: Use SCREEN_ORIENTATION_FULL_USER instead of SCREEN_ORIENTATION_FULL_SENSOR for resizable window. -744eb00b0 Sync SDL2 wiki -> header -177dfddaf simplify OpenBSD D-pad calculation with bitwise operation (#7996) -510f413bb coreaudio: simplify memory leak fix. -a9da8dd22 Addressed memory leak in SDL_coreaudio.m -a4d240d29 SDL_events.c: remove long long casts an the override of SDL_PRIs64 -9422c5720 revert commit ac25395 as it broke linux.. -ac253956b SDL_events.c: override of SDL_PRIs64 for mingw is no longer needed -948b926d4 SDL_qsort.c: better match private funcs' compare args to SDL3 version. -143d5d779 Sync SDL2 wiki -> header -169f77ed5 Re-enable full controller reports for Joy-Con controllers -6b9bf7113 Try to guess the type of a Nintendo Switch controller if we can't read the device info -f1b19aa74 Ignore spurious reply packets when reading Nintendo Switch controller reports -ce6d3c5cc SDL_qsort.c: change private function compare args to SDL_CompareCallback -b2b236941 Moved function pointer params to typedefs, etc, for latest wikiheaders. -477c71874 Added wiki-style documentation for SDL_JoystickGUID -1c3090a1a Fix broken dead key behavior on Wayland -7fce9f3fd Minor cleanup for SDL style -2e8bd8f1f Fixed build -22c14442e Fix spurious LCtrl on RAlt key pressed -0f9191a64 Added VRS DirectForce Pro wheelbase VID/PID to wheel devices list -fc6bbde52 wayland: Set the initial min/max limits on non-libdecor windows during a show operation -f520062ad Fixed PlayStation detection interrupting input for the Logitech K400 keyboard -e2f597de8 Added support for the Saitek Cyborg V.3 Rumble Pad in PS3 mode -70faef84a build-scripts/ltmain.sh: minor updates hand-picked from mainstream -997ef8860 Sort joystick drivers in Android.mk -f725ce492 Build the dummy joystick driver on Android -e1bb00cdc Add a basic ShowMessageBox implementation for PSP (#9932) -6da524253 SDL_render_psp.c: Fix crash in PSP_DestroyRenderer() -018f2791c PSP: Add on-screen keyboard support -2cb1a2d0a SDL_assert: add support for aarch64-w64-mingw32 -295266c70 Merge pull request #9953 from sharkwouter/fix-double-libs-in-pkgconfig -1803e6555 CMake: Prevent double SDL2 and SDL2main entries in sdl2.pc -863670c0a always define PRI?64 using 'I64' when targeting windows -35d719ef2 Added support for the Razer Kitsune in PS5 mode -1568501dd android: Default to custom theme in styles.xml -d5e5d4a80 move vista+ display config function ptr calls to device->driverdata -51ba036e6 Verify that the timer callback is passed the correct parameters -5e876db89 autotools needs to check d3d12sdklayers.h too -0439fc600 Makefile.in: add VisualC-GDK to SRC_DIST -6825a4aab SDL_config_os2.h: remove duplicated HAVE_WCSL* defines. -8bc47dc3f Fixed compiling SDL_platform_defines.h on macOS with older compilers (thanks @sezero!) -b3081bbbd regenerated the configure script. -65d8c07c7 Allow building the Raspberry Pi video driver with standard EGL headers -6c2977882 VC+d3d12: use __has_include to detect presence of d3d12 ehaders -6c10201e5 cmake: direct3d12 renderer needs d3d12.h and d3d12sdklayers.h -c79e61680 d3d12: older Windows SDK headers contain wrong function prototypes -54c435409 d3d12: xbox has no DXGI_PRESENT flags -964e0c9b4 Added Linux bindings for the Qanba Drone 2 Arcade Joystick -01314ff1d Sync SDL2 wiki -> header -f88e8da17 Sync SDL2 wiki -> header -0466c4560 hidapi: Replace BSD license with "original" hidapi license. -a26d2e705 Sync SDL2 wiki -> header -fdf28471c hidapi: Use a whitelist for libusb when other backends are available -e4fc07cad Added NULL pointer check -c419c4ce9 Sync SDL2 wiki -> header -a25a5a243 wayland: Disable warp emulation when restoring cursor visibility with the shape protocol -3794e3dc9 wayland: Set the cursor visibility flag when using the cursor shape protocol -62f35ab1b Use SDL_test + don't use macros -67bea86b1 Sync SDL2 wiki -> header -1c3a1e113 wikiheaders: Updated to latest, cleaned up category documentation a little. -96e379949 Added Moza wheelbases VID/PID to wheel devices list -1f54ee1da Added Simucube wheelbases VID/PID to wheel devices list -0c7a83ecd Added Cammus C5 wheelbase VID/PID to wheel devices list -080599066 wikiheaders: Automatically categorize API symbols by subsystem. -efaa58732 Don't enable enhanced report mode for Bluetooth Nintendo Switch controllers by default -b6899f82f SDL_iconv_string: simplify recomputation of outbuf and outbytesleft -312a8a19d SDL_x11sym.h: corrected XQueryKeymap() proto. -b8b1ebf57 Sync SDL2 wiki -> header -62175552e SDL_video.h: Make a note that changing fullscreen mode might reset renderers. -f23cc950f Sync SDL2 wiki -> header -ed0eb7ee0 SDL_video.h: Add a '\sa' for SDL_GLContext to SDL_GL_CreateContext. -7d0ea2a88 Sync SDL2 wiki -> header -dd48b6f8c Sync SDL2 wiki -> header -17ad4fdf4 Sync SDL2 wiki -> header -1b7c2c9e4 Sync SDL2 wiki -> header -7d60ff996 SDL_JoystickEventState: Make documentation and implementation match. -d499b25a3 SDL_vulkan.h: Fixed typo in SDL_Vulkan_LoadLibrary docs. -06f437e1b wikiheaders: sync up with main branch. -8c92af5e5 Added a Windows mapping for the SPEEDLINK STRIKE Gamepad -d8fbeec09 autotools, cmake, macOS: Do not use the system iconv() by default -8b4e389ad wikiheaders: updated from SDL3, plus fixes to headers to deal with that. -63ea838db test, watcom.mif: revert 78391e6530352bdf66ba5d38c3dac9fc70bb0578 -78391e653 test, watcom.mif: revert 9ecdcd8bb and use %copy instead -9ecdcd8bb test, watcom makefile: change copy command to use a dos path separator -8f6a5c9ad wikiheaders-options: Correct project full name. -59937e0fd wikiheaders: manpages See Also sections should specify 3 vs 3type. -2f54d8a45 wikiheaders: Manpages go in man3 directory, even if they're 3type. -1caa42703 Fixed building with GDK (thanks @Romans-I-XVI!) -7554e82ec Added GDK app constrained/unconstrained events (#9608) -75340b827 loongarch: Delete the configuration of the compilation option "mlasx" -67c60e0b9 Fixed build error (thanks @sezero!) -45b804c15 Avoid opening non-joystick devices if possible to speedup scanning -0963c11af Initialize udev before joystick manual scan so class lookup works -863d4a0f2 x11: Fix pointer warp on XWayland -59cc43ccb Added a note about WIN+V for future reference (thanks @orconut!) -33af02ae6 Fixed Win+V handling (pasting from clipboard history) on Windows (thanks @ocornut!) -ab10bf54f SDL_TextInputEvent: Improve documentation. -26e3d65ea CI, macOS: install autoconf. -e03ad30a5 docs: heavy editing to make this happy with latest wikibridge. -a96196c95 include: Fixed SDL_AudioFormat documentation. -623a83f2b Sync wiki -> SDL2. -e69d0e516 wikiheaders_options: People can include specific headers if they want! -8f18e2f52 Add USB IDs for the Thrustmaster TS-XW racing wheel -4e29be814 Fixed compilation with C89 (thanks @d-s-a!) -effc16954 Fixed build -59a041681 3DS: Improve framebuffer support -154ec5c57 testmouse: Create the window on the touch screen when building for the 3DS -4df852cbb 3DS: Ensure that touchscreen events are associated with a window -6c6b497f8 Prefer display modes that exactly match the desired format or refresh rate -596096a86 Add a quirk for fullscreen-only video drivers -4c3b8b2b9 Fixed reference path for buildshaders.bat -e75d72670 include: Fixes to make the headers friendly with the latest wikiheaders. -9216b7a5e stdinc: modify default alloca prototype -1fa614290 Fix default Windows window icon not suiting the DPI. -906ad64d7 Fix Caps Lock and Backspace mapping for Colemak -f1690e265 Workaround a macOS cursor-related bug. -02246aaeb wikiheaders.pl: Report a function's header file name. -4d91f0e79 SDL_stdinc.h: Android passes sizeof(ENUM) == sizeof(int) assertion -0d8ce4a76 psp: Fixed building with pspdev when not using CMake. -5fff9bc1e Don't fail joystick initialization if udev isn't available -358a80a47 remove non-existent vulkan.hpp and vulkan_mir.h from Xcode project -eb185e8d8 VisualC: remove vulkan.hpp -cbc9bd980 Add Yawman Arrow flightstick controller -5d8017995 PSP: send initial SDL_JOYDEVICEADDED event -6e1611cc7 udev: Fix O(n^2) device walking issue (closes #9092) -6ba3e5653 SDL_GetWindowSurface: update documentation re: surface->pixels -7b6695f4d PSP: zero-copy WindowSurface API for direct VRAM access -37c664a13 PSP: fix regression, GetTicks64 should return millisecs -763d768f7 Fix bug #9331 - SDL3 Android crash getVibrator() == null -82b449611 PSP: improve performance counter res to us granularity -fa18c9bf4 Add support for MadCatz Saitek Side Panel Control Deck -5df737bb3 wayland: Check the returned display pointer before dereferencing -a9ac34984 Poll for the initial controller state when using DirectInput -4a79fe44f N3DS: Fix locale name and early return. -43f0ae1e5 Improve event processing latency when gamepad/sensor is open -c17d2246f PSP/Joystick: fix formatting -86f223d66 PSP: don't block on joystick event query -2d6c10005 Added a mapping for the Defender Joystick Cobra R4 (thanks @kotenok2000!) -07f04bb35 Use the CRC as part of the unique key for mappings -24aedc143 wayland: Always use the entire buffer for the viewport source -b8daf14fe If a mapping specifies a crc, don't match for controllers that don't have that CRC -525c317ed wayland: Add cursor-shape-v1 protocol support -59d4a3945 Add checks for memfd_create() and posix_fallocate() to the autotools build -88bdc028e Fix build (C90 declaration order) -d3c89bb47 wayland: Allocate the cursor shared memory buffer entirely in memory, if possible. -e54774fac Removed incorrect mapping for a HORI controller -318493695 cmake: we only need a C++ compiler for Android, Haiku and UWP -66054a651 Turn HIDAPI joystick support off by default on mobile platforms -cd197be53 Fixed crash if joystick functions are passed a NULL joystick -528b71284 Added support for the 6-button SEGA Mega Drive Control Pad for Nintendo Online -26054d993 Fixed mapping for the Sanwa Supply JY-P76USV controller -da9bfc43e GDK: Partially revert 2670eb44afec9311ee8fbec447703c427db1e1c8 -177a83665 SDL_RWFromFile, stdio: allow named pipes along with regular files. -bdc7ad8f5 Keep track of whether the Android on-screen keyboard was opened by the application -75c5cff0b Fixed "${folder^}Activity: bad substitution" with bash 3.2 on macOS -a842bc29f Uppercase the first letter of the class name to match Java conventions -d35dee76c Added a mapping for the Sanwa Supply JY-P76USV controller -9e1e0fb92 Removed the mapping for the G-Shark GS-GP702 -627e15871 SDL_GameControllerGetAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found -b87116ff0 SDL_GameControllerGetAppleSFSymbolsNameForButton() returns NULL if the symbol isn't found -05f670961 If the viewport changes the cliprect should be updated -9eaf7d8cc wayland: Remove all references to destroyed outputs from windows -9a65d123a ci: update deprecated node.js 16 actions -fdbf233cf ci: bump cross-platform-actions/action version to v0.23.0 -54faea8b8 x11: Don't resize, move, or raise windows when changing the min/max size -69fb802a9 Fixed Visual Studio warning 4459 -4316c5ec0 audio: fix SSE conversion of Sint8 audio to Float32. -903d888cc Convert mouse wheel coordinates to renderer view -f24216c2b wayland: Don't pass null string pointers to wl_cursor_theme_get_cursor -df00a7dd4 x11: Cleaned up system cursor code to match previous Wayland change. -827917ea6 wayland: Minor cleanup in new mouse cursor selection code. -271df2fdd emscripten, wayland, x11: Share the table of CSS cursor names -aa6c390bb emscripten, wayland, x11: Map SIZEALL to "all-scroll" instead of "move" -67827c0b0 wayland: Prefer to use CSS names for cursors, falling back to X11 -e2535ba54 wayland: Use CSS/freedesktop cursor name "default" as a fallback -6c0e3532f x11: Use XcursorLibraryLoadCursor to load system cursors when available. -bc30fb295 don't let SDL_render.c:render_drivers[] have an empty initializer list. -d0731ab9a Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef -699cec1a8 wayland: Don't store wl_output pointers in mode driver data -120b8d418 Revert "wayland: Don't initialize OpenGL when the window flags didn't specify it" -6669d04ea Fixed error: unused variable 'axes' [-Werror,-Wunused-variable] -971c5c261 Explicitly retain and release NSObjects in C structures -de0cb94e7 Wayland: Avoid SEGV if a modifier notification comes before the keymap -4ae87e215 Fix broken use of MsgWaitForMultipleObjects. -646cccede Guarded ElementAlreadyHandled with #ifdef ENABLE_PHYSICAL_INPUT_PROFILE (thanks @Donione!) -93d7b6e50 Redefine XINPUT_CAPABILITIES_EX as an SDL typedef -40b61b81f Added VIDPID for OpenFFBoard wheel (thanks @groybe!) -d2a3347c1 Emscripten_SetWindowFullscreen: Fix crash due to uninitialized EmscriptenFullscreenStrategy members -a09b0b05e Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo() -a29f37c14 SDL_windowsopengl.c: WGL: Fixed null-pointer dereference crash -ca0101657 SDL_audiotypecvt.c: Fixed memory corruption when resampling S16 t F32 -c53c35192 Fix SDL_mfijoystick build issues -fc787a41d vulkan_metal.h: Make compatible with ObjC ARC (thanks @jmroot!) -05bb182a5 Don't test 10-bit pixel format conversion -58907d2c2 testautomation_math: Fix misleading log output -a7bd18c0d test: Don't accept results that are much less than expected -f73abd49c testautomation: Don't expect exp to yield exact floating point results -8eed915df Don't use the system iconv on Apple mobile platforms -8ce6fb251 Use the exact motion associated with the warp -d34a7c5ed Fixing viewport -36b843828 Fix scissor usage -faa8fc291 Fix color -971508c0d autotools: a few libtool updates from mainstream -c55bd2482 Fixed testautomation log callback calling convention -ec25d6b1e aaudio: Backport headphone hotplugging support from SDL3. -bb30a3536 Fixed Watcom build -11c932bf1 Fixed build -f0b8fee88 Added the environment variable SDL_LOGGING to control default log output -6ec3f5a28 Simplified the default log category logic -2c1106856 Document that the default log priority is error, not critical -fcd1c155c SDL_rwops.c (SDL_IsRegularFile): fix WinRT build failure due to S_ISREG -230ae797a SDL_RWFromFile, stdio: reject if the file is not a regular file. -529759613 Report out of memory instead of crashing in SDL_LoadFile_RW() -332213163 Fixed N3DS build -4ff3b2827 Enable text input on video initialization without popping up an on-screen keyboard -f931b25f4 wasapi: If GetDeviceBuf can't get a full buffer, go back to waiting. -1e06a3614 wasapi: Clamp device->spec.samples to the hardware buffer size. -7aab3f0db blendmode: Corrected docs for `SDL_BLENDOPERATION_[REV_]SUBTRACT`. -08caafe2f Improved timing accuracy of SDL_WaitEventTimeout() on Windows -138fe3d43 mayflash adapter PS4 support -b16ef14c7 Make sure we include the matching copy of vk_video headers -0f5a81565 Update to the latest version of the Khronos headers -919658477 Fixed ambiguity between std::byte and byte in rpcndr.h -48b62e2e5 make video/pandora to actually compile somehow. -9e352e61d fixes after ShowMessageBox changes: -c5c0b2cb3 SDL_ShowMessageBox: Remove `#ifdef`s and respect SDL_VIDEO_DRIVER hint. -1e016fd5e aaudio: Set low-latency audio mode. -aaf426e28 testhaptic.c: include stdlib.h for exit() -a8eeb181b wayland: Always create the backing input store, even if there is no seat -4845027ca Updated to version 2.31.0 for development -ef7261bc4 (tag: prerelease-2.29.2) Updated to version 2.29.2 for RC build -12bab1c98 Fixed warning C4244: '=': conversion from 'Sint64' to 'int', possible loss of data -61821bd87 fix audio conversion from S16 to F32 using SSE2 -0f9422a6a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE -55ba68653 test: Run testautomation under Autotools too, not just CMake -4cb43db1a test: Don't distinguish between different categories of tests -237535b23 Fixed bug #8897 - SDL_BlitSurface segfault when dest_rect is null -ed5d3d9f8 Fix compilation on loongarch -f569cc56a tests: Fix automated audio tests on Windows and Linux -06dd70bc8 video: Use string comparison instead of #ifdefs for driver detection -a420eb79b cmake: run testautomation with CTest on ci -41fc39811 Move check for SDL_Delay upper bounds to testtimer -173734097 Use helper_ddtod function to compare atan2 infinity cases -69a6efcd1 Avoid using higher precision floating point numbers by using it in a function -fbee0b86b video: verify SDL_GetNumVideoDisplays is succesful -880c69392 testautomation_math: do relative comparison + more precise correct trigonometric values -811adaa34 Only test error message when using specific video drivers -5368f4556 Remove one test that contains call of SDL_Quit() / SDL_Init() because it conficts with the initializaion of test common. (before it used SDL_VideoInit SDL_VideoQuit which weren't perturbated by SDL_Quit()) -3d5679bb8 Fix video_getSetWindowPosition() that fail when checking events, because testautomation_events.c() didn't finish to poll all events before -e3203278f Updated tests so they'll pass if we enable the C runtime in SDL2.dll -b5aec14d4 gdk: Backport SDL3 MR #8844 -8eb2ec6a8 watcom makefiles: remove yuv_rgb_lsx.c from sources -83f3045ee Revert "updated WhatsNew.txt" -f1bc5f305 Prevent asan warning on qsort(): 'src/stdlib/SDL_qsort.c:27:5: runtime error: null pointer passed as argument 1, which is declared to never be null` -c3a3f1807 updated WhatsNew.txt -5d6eb4a5a Fixed overflow in SDL_SoftStretch() (see #8878) -cfc22ac7d (tag: prerelease-2.29.1) Added patch notes for the SDL 2.30.0 release -b4f99deb9 Updated to version 2.29.1 for RC build -1e13aa2c9 androidaudio: same fix as AAudio for pausing thread when backgrounding app. -109bb2f17 Make sure the render target isn't bound as a resource -f7ab765b8 Fixed crash scaling very large surfaces -910e040e9 aaudio: Block the audio device thread when in the background. -bb969ac74 Fixed bug #7614: Segmentation Fault in SDL_BlitSurface (#7808) -87b5bb584 Fixed potential overflow in software triangle rendering -11b111e1f Fixed types used in documentation (thanks @Dragon-Baroque!) -be576c5fe Updated Xcode projects after https://github.com/libsdl-org/SDL/commit/472a415c8fa0a77c26765ce0bee0ca2330f7d179 -472a415c8 video: move standard c, sse and lsx implementations of yuv2rgb to its own source -0d9719964 testautomation_surface: Make sure error is set by the function we expect -e8075179e testautomation_surface: Really make width * bpp overflow -62d063f73 testautomation_surface: Really make pitch + alignment overflow -cc7fe8c25 x11: XI_Motion should mark the global mouse position as changed. -f52a12a8f remove several instances of unnecessary emptry str "" after SDL_PRI??? -3d6cf2b5c update config.guess and config.sub from mainstream -f7f9478ca docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. -9db80adfb Fixed bug #7614: Segmentation Fault in SDL_BlitSurface -f3b0dc500 Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY -c69e858e7 audio: Patched to compile (mixed declarations and code). -1e2f31181 audio: backport SDL3's audio datatype converters. -eae81ec80 Touchpads already have their right/left buttons swapped in raw input -f641d91f6 Restore window minimum and maximum size if it is recreated -38d11e5cc Add missing `(void)` in functions params -bbe4d693e Use correct touch check flag -b6e97d9ff Fixed Xcode warnings -5db6eb774 Removed reference to deleted header from Xcode project -347b6cdcb Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) -66209135d render: Fix line clipping with translated viewports -01fa4dd9d Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' -9fe09950f wayland: Raise the frame throttle limit -71cd1fa59 Fix compile error with XInputOnGameInput.h -4f2c7328d test: Use AUDIO_F32SYS for native-endianness -1634a4cc3 test: Use SDL_CreateRGBSurfaceWithFormatFrom for SDLTest_ImageFace -feaf52dba test: Fix encoding declaration for RGB24 test images -970ed36de Only force X11 if SDL_VIDEO_DRIVER_X11 is available -bd2f1e9ea Use the X11 driver if the application uses X11-based graphics frameworks -2afd04d09 test/acinclude.m4 (AM_PATH_SDL2): apply recent sdl2.m4 PKG_CONFIG patch -69f3bb2e3 test: Accept small numerical differences in more mathematical tests -d1c5038f1 testautomation: don't do float equality tests -f62d1220a Restore the previously initialized subsystems after the Init/Quit test -4c11307a4 Only initialize audio drivers that have been requested -b1a82b577 gamecontroller: Fix function name in cherry-picked documentation -3ff56fda1 testautomation: only require accelerated renderer with non-dummy video driver -64754f3a2 test: When listing test-cases, say which ones are disabled -d3c21666d gamepad: Clarify range and direction of axes -5e12e4b81 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT -8c4e4d57b Add hint to make SDL handle dbus_shutdown() -ca3b8fe91 Fixed build -e1c3dcb40 Don't try to send the PS third-party feature request to the Logitech G815 keyboard -c309546e8 Fixed warning: no previous prototype for function 'SDL_GetGameControllerTypeFromString' [-Wmissing-prototypes] -0e913a22d Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android -be29ca018 Use the application requested size to determine automatic orientation on iOS -f892ae10d updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. -674e89457 Added mapping for the RX Gamepad, e.g. Pandora Box 7 -b1ad45acd Fix memory barriers on ARMv5 -eb1b9b418 SDL_audio.c: Fix crash if we switch from direct output to streaming, and if the buffersizes change. -7b4f1ef01 yuv2rgb: warning fixes and comment out unused code -41bf6b5a5 Add basic rumble support to Steam Deck -0fc357446 Updated copyright for 2024 -d649f9572 Use GNU sed if available -4f8dd2d39 Speed up processing of update-copyright.sh -b02c8267f sdl2.m4: Call $PKG_CONFIG rather than hard-coding pkg-config -0f8f4f676 Sync SDL3 wiki -> header -8030e7546 Fix static build with libdecor 0.2.0 -5dfb0c19c Fix static build with libdrm 2.4.116 -2afbb5713 Add Access Controller -3b1e0e163 Try SDL_UDEV_deviceclass to detect joysticks even if in a container -857e5b08c Fixed trying to add a game controller mapping for the accelerometer on iOS -49eb375a5 Added SDL2.framework to the embedded frameworks for SDL test programs -aeda6a8e6 Record the initial input report mode and only restore simple mode if that's what we started with -fe76c4071 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) -884c21c56 Use common generic syscond for platforms with no cond implementation -557d8e2f2 PS2 use WaitSemaEx for waiting for semaphore with timeout -3a8032f49 Make sure the string is terminated, fixed invalid read in SDL_PrivateGameControllerParseControllerConfigString() -e7c457571 Use crc16 return value when calculating GUID -39a001390 Makefile.os2: -DSDL_USE_LIBICONV to fix linkage for GNU libiconv option -ca26cde4e SDL_config_os2.h: enable SDL_JOYSTICK_VIRTUAL -eba591a91 Fixed Xcode project -919cd56b2 Use the original manufacturer and product strings for the joystick CRC -d76097dc5 fix os/2 and watcom builds after commit 7bb0e839a65 -2fecefce1 Updated Xcode project with Steam Deck controller driver -7bb0e839a Added Steam Input API support for game controllers -972067237 Fix compilation / same as sdl2-compat -5240071b1 Sync more Steam Controller header definitions for the Steam Deck -5773c347d test/watcom.mif: disable W201 warning for testautomation_stdlib.c. -3ac69c621 test/watcom.mif: remove a stale rule. -91f8b4dea Added a controller name for the Steam virtual gamepad -2aadef022 Pass through the name of the controller for the XInput mapping -7391cd34d XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice -d622c3c9c Verify that the %p format specifier works for 64-bit pointers -cfecc569b Differentiate between Windows Ink (pen) and regular touch input -867d8643d wayland: Handle mouse focus when receiving touch events -239b5278b Revert "Back out Steam virtual gamepad changes" -cc6d8eb72 tests: Fix whitespace -a78cdbd7e tests: Backport automated video test changes -33588662e Refactor away some additional integer types. -b620788b4 Add new file to OpenWatcom makefiles. -20cc64483 Add new file to vcxproj files. -bed789794 Add new steam deck HIDAPI controller to controller database. -0dbe9022f Disable lizard mode while steam deck HID device is opened. -a6b9d987e Translate steam deck HID reports to SDL events. -5718ba253 Implement steam deck HIDAPI initialization. -e7f03de46 Add steam deck detection and HIDAPI driver scaffold. -33843b093 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe -7d9412160 You should call present when using a software renderer as well. -79a8e8cf0 Make built-in joystick device lists extendable by using hints -6526c4d0f Refactor VIDPID list loading code -f0e7f3e7e Back out Steam virtual gamepad changes -10c292b05 cmake+xcode: use IMPORTED SHARED framework target -ddac84403 Fixed build -dd2863794 Use the Steam virtual gamepad slot as the gamepad player index -5b26d4e0c Sort Steam virtual gamepads by Steam controller slot -757c984dd gamecontroller: Backport 3.0 'type:' field to 2.0 -61cd57d37 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. -013467234 cmake: copy sources to binary directory in separate target -8f14dc699 Corrected comment -3381828cc Fix 3DS Analog Values (#8581) -be0e303ec document the purpose of SDL_SetTextInputRect -546bab0a8 Fixed the GameCube HIDAPI controller mapping -98ee4a529 Removed HIDAPI controller mappings -d42fa25a9 test: SDLTest_PrintEvent now reports key event mod state. -7d25a443c cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. -3fbaf737e test: Removed unnecessary line added by copy/paste error. -258849c9b test: testwm2 now displays keyboard mod state. -594a79c2f Set framebuffer_srgb_capable to the actual value obtained (#8634) -8d47e3bb8 Added support for the NACON Revolution 5 Pro controller -bbcf40e81 cmake: fixed iconv detection test program -0fb36f29a cmake: check if CMP0087 exists before setting it (#8613) -4339647d9 render: Clip lines before Bresenham algorithm generates points. -a391dd5fe rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. -657f5f791 autotools: fix actually wrong use of AC_MSG_RESULT -e9b486937 opengl: Creating a texture trashes the cached `texturing` state, fix it. -0a6b5abf4 render: GL-based renderers should treat adaptive vsync as vsync being enabled. -d8102bf66 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. -489e9b69d autotools: bump minimum needed autoconf version to 2.65. -baaac5cca cmake: Android expects SDL programs to be built as shared libraries -5abcfdb93 SDL_stdinc.h: fix compile warning when using SDL_PR[iux]64 on Android -8cf7e9e7d autotools, cmake: set SDL_SYSTEM_ICONV to OFF for windows (like SDL3.) -0e9d05029 psp: Hook up event subsystem init/quit. -87875a49b Removed some function declarations that don't actually exist. -17e62abb6 revise iconv detection: -4940b5dbc SDL_bsdjoystick: fix -Wundef warning on FreeBSD -3fb512417 cmake: add openbsd wscons sources to build, if supported -59b0a2d71 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV -dcd21d042 Improved GCController handling on Apple platforms -2d81beb81 Show the mapping used when a game controller is opened -4de4b1e7a Don't tickle PS4 Bluetooth controllers in simple mode -f33ab44f8 Extend blitting support for all <8bpp formats -67eb03400 Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB -cb5b8c974 testshader: Don't make local variables with the same name as GL entry points. -c331b64d7 audio: Tighten up possession of detectionLock during device open. -e51760e11 audio: Wait for device thread to set `device->threadid` before continuing. -c67ff8237 Avoid textinput events when pasting from clipboard on iOS. -42d979a23 audio: Just use the system default stack size for the device thread. -1bb5448fe Use the correct pixel formats for OpenGL ES on big endian -2222f44c9 use format string attributes for functions accepting va_list params, too -d81d98685 cmake: fix uses of undefined macro identifiers (-Wundef) -cc7c0a2da Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization -76cc24e34 Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. -0ec1209ea Fixed a memory leak at window creation. -925362a2f Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows -1de85491e Fixed mouse wheel scrolling direction on iOS -cc20d0147 Revert "Check to make sure the Windows joystick device has buttons and axes" -8c82b7302 Fixed the ROG PUGIO II showing up as a game controller -92d70f416 cpuinfo: Fix detection of physical memory above 2GB on NetBSD -63e9827b9 wayland: Fix DPI calculation with scaled outputs -f3419d8c0 Re-add SDL_assert() with non boolean ptr syntax (#8531) -c29df1699 Added shortened name for "Nintendo Co., Ltd." -4a0bd06d5 Added support for the GameSir-G7 Controller for Xbox -03f29c19d Added support for the Dragonrise GameCube adapter with VID 0x1843 -a14b948b6 [SDL2] pointer boolean (#8523) -4a3a9f3ad Older gcc does not support #pragma GCC diagnostic inside functions -d38ccfa88 x11: Ignore deprecated declaration of XKeycodeToKeysym -f0d65436f ci: re-enable Intel compilers on ci -dfc38ef46 Implemented VT switching for KMSDRM on Linux -adc088052 cmake: also install pdb files of static libraries -509c70c69 Allow the application to draw while Windows is in a modal move/resize loop -3900fca30 Fixed FreeBSD build -76ff25eed Fixed FreeBSD build -5d29f2280 Store the requested muted state -87bb0f5bc Don't mute the console input if we can't read the keyboard -f9baa3027 sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work -7e11bd1ac Removed useless branch test -af7fe2cf9 Actually we need to enumerate the 8BitDo Xbox SKUs -524ccf033 Assume all 8BitDo Xbox controllers have a share button -b1807797a Make sure joysticks are locked when adding and removing them -b07e5d38a Added missing calls to SDL_InvalidParamError("surface") -624905a7f Destroy the window surface if we've created it for the software renderer -4ace02df5 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) -70adacf08 Make sure we include the null terminator in XLookupStringAsUTF8() -fb92d150d Removed unused SDL_OSEvent -d9559ce1d Added subsystem refcount tests to testautomation -7526a87ff Handle subsystem dependencies recursively -171e306db Enable the 5th player LED on the DualSense controller -d6c725d52 Removed misleading comment -0c85173d5 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) -7555701de autotools: fix linux joystick breakage after commit 221d6ea8a8ca -065d80716 hidapi: Avoid memcpy'ing to NULL. -9d7feaaf9 coreaudio: If paused, clear any pending stream data. -d5896f901 Fixed memory leak in XInput code -64a7e75dd Only save ibus_addr_file after we've successfully read an address from it. -93e51dd33 fix a possible memory leak in SDL_vasprintf() -e8f4045d0 Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) -aa129c925 Fixed potential uninitialized memory access (thanks Mathieu!) -4c2eb6b95 Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding -e226008d8 configure: move HAVE_LINUX_INPUT_H to CheckInputEvents() -8b1b6734f cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H -97c2bdf25 Added patch note for SDL_GDKGetDefaultUser() -20ecd2afc Check to make sure the Windows joystick device has buttons and axes -517db6d88 cmake: reset check state before testing -fobjc-arc -20630b2e6 cmake: check -fobjc-arc compiler flag on Apple platforms -7774de0fe cmake: file(RELATIVE_PATH) needs 2 absolute paths -60e8ff16d wayland: Sanity check pointers and protocols before confining -19c3e125b wayland: Check the relative pointer handle before destroying -832afa81a Fixed making the EGL context current when resuming on Android -b29128994 CI: change FreeBSD CI runner to cross-platform-actions. -1db0bd3fc Added support for the HP HyperX Clutch Gladiate controller -cba609039 n3ds: Check that audio thread name starts with "SDLAudioP" -4194a902e Added support for "%[]" sscanf syntax -3823ba1de n3ds systhread - use 80kb thread stack size as default, remove hard cap -301ee21f3 n3ds systhread - prefer to put audio thread on system core -6623c87d0 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized -070f57820 SDL_n3dsaudio.h: use triple buffering -62266dbd4 SDL_n3dsaudio.c: separate mixer locks from audio device locks -d47c286b1 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) -259009a7e Add missing error reporting in Android_JNI_FileOpen() -90255914a cmake: install pdb's when present -e3e41b69a Revert "Check to make sure the Windows joystick device has buttons and axes" -44d872108 Allow building against old Linux kernels. -4aab2342e Check for device disconnection in HIDAPI_JoystickOpen() -df6db90dd Fix sdltest_randomAsciiStringWithMaximumLength() where it requests a string a size 0 seen with: ./testautomation --seed MILAFAP2AKVP3V4G --filter sdltest_randomAsciiStringWithMaximumLength -d8b34b099 pulseaudio: Stop the threaded mainloop before destroying the context. -2849ca404 x11: Properly check for XInput2 support before using it. -e417c6cff ci: stop FreeBSD job after 30 minutes -32587bd7d Sync wiki -> header -b7a0ef6bd artsaudio: revert bad arts_init return code check from commit ce5da5d. -701045206 tests: Disable mouse warp test under Wayland -e8c915dac wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session -25b008136 Backport #7697 to SDL 2 -c4a169a6f Fix automated video tests under X11/Wayland -1d8dbb289 wayland: Unref the libdecor window when hiding -43c57e323 triangle: don't read destination pixel when you're going to discard it anyways -2d5c05a69 blit_slow: don't read destination pixel when you're going to discard it anyways -321c2f8f2 ci: disable Intel compilers -f9dc49c21 Fix automated tests using the dummy video driver -71b7790be snd_pcm_plugin_flush was removed in QNX 7.1 and later -933ec9e97 cmake: add qnx support -a263cc236 Allow the use of posix_spawn() instead of vfork/execlp() -6b5eadb10 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms -9772d0512 SDL_iconv_string() defaults to UTF-8 -27f2df229 Check for NULL before dereferencing newly allocated memory -834e8898b SDL_dbus.h: define DBUS_TIMEOUT_USE_DEFAULT if not already defined. -60070d0b3 emscripten: Restore compatibility with existing emsdk releases. -330d420af Use EM_ASM_PTR when the return value is a pointer -2fcbf321f wayland: Fix drag offer leak -a683ce415 linux: Add portal drag and drop -95a6f986a update config.guess and config.sub from mainstream -37dee79b7 Fixed sensor timestamp units for third-party PS5 controllers -62e7049a4 Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ -fff3c2573 Fixed sensor timestamp calculation for third-party PS5 controllers -70a2ac2f1 x11: Always update clipboard owner -a8b941469 detect fanatec steering wheels -92dc22601 cmake: make sure SDL_GetPrefPath is run before testfilesystem -2adebcd6c ci: run tests in parallel -ce32c44b5 docs: Added Emscripten filesystem notes. -818a26f21 docs: Corrected/improved some Emscripten docs. -5e6a851d6 docs: Fixed some Emscripten details -f788a671e docs: Remove "more on this later" comment for something already covered. -bd77b9a0c docs: Rewrote README-emscripten.md -8ad043fc3 render: Enable clipping for zero-sized rectangles -b388f6e32 cmake: use MSVC_RUNTIME_LIBRARY to force MT -25eca09c7 include: Replaced old Bugzilla URL. -88299502b wayland: Ensure that the toplevel window is recreated when switching decoration modes -1d495351a Detect Simagic wheel bases as wheels (#8198) -365a36386 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. -242b25aba 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 -aa7ba6297 metal: Add hint to select low power device instead of the default one (#8182) -0b995f21e wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL -bb1fe302c wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's -f032e8c19 updated dynapi after SDL_GDKGetDefaultUser addition -24fcb6147 – gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation -6ff48dddc Fixed the report format for the Razer Wolverine V2 Pro -862a654b7 Accept key events from any source -8e27a6937 Updated to Android minSdkVersion 19 and targetSdkVersion 34 -9237f8edc video: Fixed small memory leak when disconnecting a display. -1f4e86d61 video: Minor cleanup in SDL_VideoQuit. -04ff593bf emscriptenaudio: Fire the capture silence_callback at an interval. -ddbbef88e emscriptenaudio: Don't bother undefining things about to be unreachable. -ae7f54f51 emscriptenaudio: Deal with blocked audio devices better. -0b9d8e679 Quiet spurious warning -4a0f56b67 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. -10135b2d7 Fix overflow when doing SDL_sscanf("%hd", ...) -f348370e1 Fix out of bound read of 'has_hat' array -951657c99 Fixed crash when running with the dummy video driver -7df721d4e Allow running tests with the dummy video driver -046522461 Sync -Wsign-compare warning fix from sdl2-compat -9d6b028e0 tests: build tests with fast math disabled -fcae9cd21 cmake: build with -Wdocumentation -e5f3b22d6 cmake: update cmake_minimum_required to avoid deprecated warning -64f17314a MSVC has __declspec(deprecated) -1d8806b0f Fixed testautomation --filter pixels_allocFreePalette -e56dc9c30 Fixed testautomation --filter pixels_allocFreeFormat -4bceea70c Added the Victrix Pro FS for PS4/PS5 to the controller list -8087c0a5d include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. -53d818e31 updated config.guess and config.sub from mainstream -f522c5380 wayland: Don't initialize OpenGL when the window flags didn't specify it -2304b4e86 Added a gamepad mapping for the G-Shark GS-GP702 -0f753d979 The Flydigi Vader and Apex series controllers all have the same VID, PID, and name -805fc29ae Removed Flydigi Vader 2 mappings -57f3c41b9 adjusted coding style in SDL_os2_joystick.c to match rest of SDL better -b58557a3a minor os/2 stuff merged from the bitwiseworks' fork -6a787b800 SDL_video.c: move ngage video before offscreen. -0deed07b3 SDL_video.c: move os2 video before offscreen. -ebf2c49b5 Fixed build -38c63afd6 Fixed duplicate key press/release events on iOS -030bb7282 Synchronize on-screen keyboard state with text input active state -335e9c769 Only pass keypresses up the responder chain when text input is active -5e9320f6b Revert "Stop beep when running iOS apps on ARM-based Macs" -e2afc1f37 Fixed build -2468fccf7 Fixed crash if a display is enumerated twice -dc5dda0f3 cocoa: Ignore first mouse motion event after enabling relative mode. -3030fd815 x11: Blocking for window maximization should wait 100 ms, not 1000. -5c3df60ec Revert "x11: check if window size/position has changed during SDL_ShowWindow." -8825fbf71 Fall back to Xlib if XRandR isn't available -82cd3bfe1 Add missing break -7cc324804 minor os/2 stuff merged from the bitwiseworks' fork -3e341021c fixed typo in prev. patch. -1ecf77d63 test/testnativecocoa.m: fixed deprecation warnings. -507be6c3f Sorted controller list -f4561db69 Add Steam Deck controller mapping to database. -2b0ca8711 SDL_atomic.h: __ARM_ARCH is not always defined for an arm platform -37d1ab83c Make sure the mouse and keyboard focus is cleared when a window is hidden -e7761aec3 update docs/README-os2 after the last os/2 audio patch. -890bee64a os2 audio refactoring and capture support -ba0c270c7 Removed invalid assert in testatomic -322dbdde4 ci: bump mymindstorm/setup-emsdk to latest tag -64294e456 Remove the unimplemented CloseIC in fcitx module -c4c034ca4 Don't fail to create a window if it's too large, just clamp it to the max instead -f7dc8c0ea Fixed LED pending check failing when the controller timestamp is very large -bb036ef54 Don't send k_EPS5FeatureReportIdCapabilities to Sony PS5 controllers -910dad505 Don't tickle Bluetooth PS5 controllers in simple mode with an effects packet -4b2b475ac remove unused vulkan/*.hpp files. -a4ad293d4 Relicensed testutils to match other test code -6089b3570 Fixed getting the CRC of virtual joysticks without a VID/PID -a99910085 wayland/video: Validate the returned window display pointer before dereferencing it -57e9a9eee ci: move 'set -eu' to after source_cmd -b9d16dac4 pulseaudio: Some fixes that seem to avoid an assertion in libpulse. -776a5e0d2 pulseaudio: eliminate include. -376c6a9dd apply commit 3aba9d44732d6e4538deb2c9e4389951fe5a0de5 to autotools, too. -3aba9d447 pulseaudio: We should be using libpulse, not libpulse-simple. -832b52418 pulseaudio: don't wait on pa_context_subscribe in hotplug thread. -29d461b62 need pulseaudio >=0.9.15. call pa_threaded_mainloop_set_name only if available. -e8b6edd5a RAWINPUT_RegisterNotifications() should return int, for consistency -34c5bde35 Improved RAWINPUT <-> XInput/WGI device correlation -9117b2e30 Fixed crash if RAWINPUT is not initialized -6bf5f5a22 Don't send k_ePS4FeatureReportIdCapabilities to Sony PS4 controllers -92fd2938e Minor cleanup -9cd7cbe13 Added support for absolute mice with evdev -823127881 Unaligned stacks on i686-w64-mingw32, may lead to crashes (#7607) -0ad822eb7 SDL_RWFromMem, SDL_RWFromConstMem: reject negative size parameters. -156c7badf Re-added mappings for older Xbox One controllers on Linux -547c8c288 Add kernel32 to SDL_EXTRA_LIBS required for cross-compilation to Win32 native -4b1dd54a5 Fixed mapping BTN_TR2 to right trigger -acdde129b X11: Use XFixes to detect clipboard updates -f8a0135ed Added WGI gamepad added/removed listeners for RAWINPUT -1f7bc0888 Don't tickle Bluetooth PS4 controllers in simple mode with an effects packet -de849d5e6 Lazily initialize the WGI gamepad support -a6228e7aa Added the hint SDL_HINT_JOYSTICK_WGI to control whether to use Windows.Gaming.Input for controllers -e16a83d39 Prefer using XInput for rumble over WGI, as it allows rumble in the background -a0a3957eb Continue running XInput detection while RAWINPUT is active -b90343e51 video(wayland): use both --icon and --icon-name for Zenity (#7897) -042243471 emscripten: Add JS library dependencies using EM_JS_DEPS macro -3054c0dc5 Fixed %p formatting when there is following text -52d63ba26 Do a full UCS4 zero termination on iconv converted strings -bad5431a1 Fixed wayland clipboard not always updating in response to Ctrl-C -1ab452fc5 Fixed printf formatting for "%p" and added a unit test to check it -2a946832b Added GetClientScreenRect() and fixed build for C89 compilers -488a91eb4 Fixed crash if mutex functions are used before any mutex has been created -f75c0e320 center cursor to client area (excludes titlebar thickness) -4d4c81d43 Revert "Update SDL_windowswindow.c" -1e6c128c4 Update SDL_windowswindow.c -1c6a64936 cmake: check whether SONAME actualy exists //Have include libunwind.h -0262f757e cmake: check whether libunwind can be compiled and linked against -8908d1628 cmake: explicitly disable WINDOWS_EXPORT_ALL_SYMBOLS for SDL2 -61808b03b Fixed resource leak and crash at exit in the D3D11 renderer -d65185a6a Made error handling more consistent in D3D12_RenderReadPixels() -bf277eb80 The clip rect is defined in terms of the current viewport -825b0324c fixed windows build after commit 7e8be3f -7e8be3f28 Retry to open the clipboard in case another application has it open -a6ba8a158 Removed spurious casts -e65ca6195 khronos: Fixed a typo in a Vulkan header, to match upstream. -e42a3a323 cmake: use SDL_CPU_ARM32 instead of CMAKE_GENERATOR_PLATFORM STREQUAL "ARM" -769bf2ebc rwops: Use SetFilePointerEx on Windows for appending writes. -fc0854651 Added Linux mapping for the Logitech Chillstream -e6f635ca1 wayland: don't use libdecor_frame_get_* functions when header doesn't have it -099e53f3a Fixed build -0f940cb6c Added support for the Nintendo Online Famicom controllers -1453cfa4e pulseaudio: Move to a threaded mainloop. -0ba93e4aa Don't crash if SDL_MapRGB() and SDL_MapRGBA() are passed a NULL format -170428b10 Fixed Nintendo Switch Pro controllers that don't have readable user calibration -950ff0056 hidapi: switch: Handle MCU input reports -38619bb28 SDL_FindFreePlayerIndex() will always return the next available player index -c6660afe4 Corrected the Victrix FS Pro as a PS4 controller instead of a PS3 controller -8acf72965 Removed 100 ms hitch when querying third party Nintendo Switch controllers that don't respond to request for info -dfbdaca2b Use default sensor calibration if we can't read it from the Nintendo Switch controller -657c34655 Apply DPI scale to mouse coordinates in SDL_WarpMouseInWindow() -ceece918e Updated to version 2.29.0 for development -ffa78e6be (tag: release-2.28.0) Updated to version 2.28.0 for release -4ce5c3a69 ibus: Handle error when getting the D-Bus machine ID -a3d4fd71c Added support for blitting SDL_PIXELFORMAT_INDEX1LSB -d97423eba Fixed DualSense controllers not being picked up by the HIDAPI driver -333a03f1e We don't know in advance whether a device is connected over Bluetooth in SDL2 -5b8fc907d Added support for the GameSir G4 Pro -76392f4fe Handle DPI scaling in SDL_GetWindowSurface -3a5abee51 Removed unused function -e7ee375f2 Fixed third-party Nintendo Switch Pro controllers shutting down when we try to set the home LED. -4aec54988 Allow switching licensed Nintendo Switch Pro controllers into gyro input mode -271e03f0d Added support for the PowerA Fusion Pro Wireless Controller in Bluetooth mode -d4f9be441 (tag: prerelease-2.27.1) Updated to version 2.27.1 for release candidate -1f5b21ead Removed more Linux Xbox mappings in favor of the automatic mapping -35c788492 Use the automatic mapping instead of a hardcoded one for Xbox controllers on Linux -3f6c4ec6d Cleanup for previous change, fixing typos, etc. -fc72f12e7 Added automatic mapping support for Xbox controllers on the 6.x Linux kernels -681f67d35 fixed build after commit d2372c853843def01b7adb9872cbb89b0d6079ec. -d2372c853 Added automatic mapping for Xbox Elite paddles using the xpadneo driver -7db23f4ef Fixed joystick vendor detection in Linux automatic gamepad mapping -36ff6327b linux: Improve gamepad mapping heuristic to accept Android conventions -26a38a0b2 linux: Reduce magic numbers when mapping gamepad axes -b3e1fd97b Fixed enumerating Steam Controllers on iOS -c77aaa5d9 Fixed n3ds build -e4e0a1290 Reduce the chance of destroying the joystick mutex while it's in use -2afb49ba9 cocoa: Warp mouse to center of window before enabling relative mouse. -154ad6faa SDL_dynapi.c: minor cosmetics. -2aa8525ec Fixed build -36033e383 Make it clear that you can't mix 2D rendering and the window surface API -320f3fffb Fixed querying device info on the MOBAPAD M073 -30b4d90f1 Only update the serial number if it hasn't already been set -1cdd6dc82 Fixed reading input from the Razer Atrox Arcade Stick using Windows Gaming Input -f5b3247aa further mouse relative motion fix for os/2 (thanks Andrey Vasilkin) -aa536217b x11: check if window size/position has changed during SDL_ShowWindow. -14f4fd3f1 git commit -m "cmake: set maximum policy to 3.5 -b1324fbc9 fixed os/2 mouse relative motion not working (thanks Andrey Vasilkin,) -4700fbcbd Don't bother re-encoding Latin1 characters in the ASCII range -2660da6f5 Always allocate zt in output of SDL_iconv_string() -7c86d96e8 Fixed SDL_iconv_string() truncation when handling SDL_ICONV_E2BIG -a1dea11d3 fix MSVC build error. -bfef7c302 Only convert the result of XLookupString() if it's not already UTF-8 -b9d1c483b Fixed building with the 16.1.4479499 Android toolchain -dc94cca8d Fixed typo in cherry-pick (thanks @HadesD!) -97fe777ab Steam uses a different VID/PID for the Steam Virtual Gamepad on Windows -f1bad83a2 Revert "Fixed detection of the Steam Virtual Gamepad on macOS" -7aa28ce27 Fixed detection of the Steam Virtual Gamepad on macOS -c89a46067 Fixed build if SDL_JOYSTICK_RAWINPUT_MATCHING isn't enabled -e3bfacde3 Don't use raw input while Remote Desktop is active -9c05098ed Fixed WGI immediately being correlated with raw input devices with no input -c39524042 hints: clarify support for comma-separated values for QtWayland orientation that's available since 2.0.22 -68e3e9908 wayland: reset orientation bitmask before reading values from hint on QtWayland -7f7ea909b testautomation_guid.c: fix integer warning in 32 bit builds. -379a6f4da x11: Attempt to wait for SDL_MaximizeWindow to complete before returning. -d275851df windows: Don't allow non-resizable windows to be maximized. -a9ded76df VisualC: turn on multi-processor compilation. -5007b9636 Fixed build warning -b2e88ecfe Disable SDL_JOYSTICK_RAWINPUT_XINPUT -d6cd45062 windows: SDL_Delay expects a 32-bit integer -e87577594 windows: SDL_immdevice needs SDL_timer.h include -72606d97e cmake: allow #include "SDL2/SDL.h.h" when using SDL2 as subproject -48e71ae87 wasapi: Deal with HDMI or DisplayPort-based audio devices. -730832555 Added support for printing wide strings using "%ls" syntax -9dea06f5b fix mingw build failures in CI with clang-tidy. -c68976360 Fix -Wunused-function warning when configuring with -DSDL_X11_XINPUT2=OFF -a535cc62a video: Only specify some GL context attributes if not the explicit default. -63b8af355 Disable unused local typedefs warning -3f1fd5abf Updated source to match SDL function prototype style -92f72682e Document the Android SDK versions checked in Java code -891c89eeb Fix unused variable warnings -e2b8d9652 wayland: Validate surfaces and window data before sending touch events -78a92b4f9 Fixed duplicate Joy-Con controllers on macOS -7b2b99a99 Fixed handling the Saitek P3600, which doesn't use the Xbox 360 controller protocol -b6d051e22 Fixed reporting backspace key if there is no text in the edit buffer (thanks @312937!) -0ad0347ac Use numeric codes for Android versions, to avoid SDK dependencies -a2f4783e7 Don't map the top keyboard row to numbers when using the one-handed DVORAK layouts (thanks @tormol!) -2001a891c Fix Xbox link error from IsRectEmpty -1ee9a437f Stop beep when running iOS apps on ARM-based Macs -69644346a Added the hint SDL_HINT_ENABLE_SCREEN_KEYBOARD to control whether the on-screen keyboard should be shown when text input is active -00b87f1de Make sure the sentinel is at the end of the current event pump cycle -beca41480 Undo name change for the controller list -43b12fd9b Moved the controller list out so it can be included elsewhere -e8ec8ba1d Added support for the Astro C40 in Xbox 360 mode -feeec9087 test/testgles2_sdf.c: type fixes from commit e26e893daf, style clean-up. -d361acdd4 testgles2_sdf: build with CMake + fix build errors/warnings -92a487f2e style fixes for SDL_PROC macros. -df9d0fb33 power: On Linux, compare status strings as case-insensitive. -4a0b9522b audio: Load .WAV files with format->blockalign==0. -32999798e dynapi: Accept a comma-separated list of libraries to attempt to load. -424bc4bcf SDL emscripten port: preventDefault should not be called on mousedown. Otherwise mouseup will not be fired outside iframe in Chrome-based browsers -0eea92c8f blit: Add a case for 8-bit blits that sdl12-compat exposed. -d42c303b2 Check to make sure the Windows joystick device has buttons and axes -237348c77 Changed all variadic macros into fixed (thanks @Wohlstand!) -86786ed54 coreaudio: Flush/stop the AudioQueue before disposing of it. -de9372867 Removed redundant __powerpc__ check -5e74365e5 SDL_blit_N.c: Move ppc64le swizzle outside of loop -3e64fec9f Fix bug memory acess -707e9397c Removed memset_pattern4() from SDL headers -f72213c4a By default, OpenBSD uses Linux controller mappings -132b88749 wayland: Destroy proxy wrappers and callbacks before event queues -8b39eb9b1 wayland: Fixes a memory leak wheere primary selection isn't freed -0f2322acf hidapi/mac: replace sprintf uses with snprintf. -5f344c17c hidapi/mac: import mainstream commit c1b9d2ad -a688ecd6f Check return value of SDL_malloc() -120bc77e9 Report PS3 accelerometer values in m/s2 instead of Gs -535ec1a92 cmake: allow users of sdl2-config.cmake to not add -mwindows to the link options -7ec9a4385 More defensive coding against dangling device pointers -6d7269815 Clarified the expected sensor value when a game controller is at rest -cb0cf1415 The latest Armor-X Pro firmware update fixes the sign on the Z axis of the sensors -7914234b2 Fix key code names for ISO keyboard layouts -51dcc3bb0 The macOS minimum deployment target is now 10.11 -f6363fde9 Fixed crash if joystick->hwdata != NULL && device->driver == NULL -f63391544 fix build after commit 22685556e5d9fc2e2a7023075e51b69fe770e64a. -57043825b Fixed crash if dbus can't be initialized -22685556e Don't probe for PlayStation controllers when we already know the controller type -f444eac55 Fixed analog triggers on the DualSense controller -eb0d214c1 Haiku: use a BLooper for events. -55f74c328 x11: Don't allow the changing of certain scancodes -2aeac8de5 include: Fixed a C++-style single line comment. -6d01ffcd9 Split up CFLAGS construction so it can be overridden -c2ee45f5f The Xinmotek Controller is used in multiple products with different mappings -0bf63175a Fixed gyro values for the Armor-X Pro controller -d043c8535 Fixed the accelerometer and gyro axes for the Armor-X Pro controller -d2a278778 Fix remaining -Wimplicit-fallthrough warnings -85fecbb10 video: fix warnings about unused variables when building without duff's loop -ec3e333fb testautomation_audio: fix -Wimplicit-fallthrough warning -1402d1355 video/blit: fix -Wimplicit-fallthrough warnings -03c239ded testsurround: fix channel names -16c9bad78 Safety fix: clear "_this->wakeup_window" when destroying the window -6574e5eb5 Safety fix: clear "_this->current_glwin" when destroying the window -4fa21ee5e Fixed bug #7515 - Window still grabbed after destroying -8bfbda1ea Fixed the accelerometer sensitivity for the Armor-X Pro controller -93c289b47 Increased precision for PS4 sensor data conversion -ed5a343d2 SDL_hidapi_steam.c: Fix compilation under c2x. -008117468 Fix clang-tidy error on LLVM 16. -cd64e0b6e SDL_blit_copy: Don't call potentially FPU using SDL_memcpy in SDL_memcpyMMX -51c10bef0 cmake: disable warnings in libm + warning about EMMS instruction -d1dc19520 Implement _intel_fast_(memcpy|memset) -5e5b029d6 cmake: add /Q_no-use-libirc flag when building a no-libc library -b58285b7e ci: test with (old) Intel compiler + (new) oneAPI compiler -e5ebbdafd cmake: add support for building with Intel C compiler -977781d3f testautomation_math: avoid equality tests with INFINITY -984af1a72 cmake: new LLVM based Intel compiler does not recognize MSVC's /MP -5aa76de35 cpuinfo: use __cpuidex instead of __cpuid -1158cff9e cmake: increase threshold for stack probes -ae3a34a38 byteswap: Don't use intrinsic byteswap functions with Intel C compiler -c0824cd49 events: Increase the size of the name buffer when logging events -6ed29f47c testgles2_sdf: Call correct function to get shader info log -9ed1b778e Made the Android documentation more clear and understandable (#7535) -b970dd1be Android: Fix mismatching JNI method signature -576df8724 Android: Fix missing type in SDLControllerManager -2dddaa7dc backport x11/sdl2 fixes -45a6ad8e5 wikiheaders.pl: make it work with older perl versions, e.g. 5.10. -b57a6a1ad Added gamepad mapping for Flydigi Vader 2 with the latest firmware (6.0.4.9) -d78072fcd Fixed SDL_RenderSetVSync does not update flags if simulated vsync is on -446e0943d wasapi: Force WIN_CoInitialize duing device open. -23bce27b2 Change SDL_BLENDMODE_MUL for gl renderers Add FIXME for PSP and DirectFB -c078dfcf6 Refresh generation of SDL_blit_auto.c after simplifying sdlgenblit.pl -18c4db678 Simplify SDL_BLENDMODE_MUL in sdlgenblit.pl -7d26ba754 Simplify SDL_BLENDMODE_MUL -bd70ce7f9 Refresh generation of SDL_blit_auto.c -ce4c54e2b cmake: get_filename_component(EXT) retturns extension including leading dot -57ae9f466 Ignore the PS4 packet CRC if it's not being set correctly -dca3fd830 Android: indicate gamepaddb entries where axis order changed. -ab1670386 Added support for the trigger buttons on the Victrix Pro FS for PS5 -76e9d64b3 Removed space between sizeof and parentheses -e9f9cb29f Fixed build warning on Android -3e1d7e6a1 Specify bash for androidbuildlibs.sh -ef347776c Uses integer arithmetics in SDL_ResampleAudio -5e3530991 fix bad merge of sizeof style patch -71dc7169d Added header for SDL_Delay() -1e6ffc629 Removed a duplicate delay accidentally added during code refactor -3f00fa16c Wait for the GCController framework to see IOKit devices -0d7638004 Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!) -46d143376 If the client rect is empty, use the last known window size -22de91a94 Removed guard around the enabled assertions support code -1c2f82523 Fixed incorrect modifier keys handling on macOS -d9c07d9ef Fixed the documentation for SDL_SetRelativeMouseMode() -8f7427c15 tests: Always set valid dimensions for the fullscreen mode -6a999d16f wayland: Always use a scale factor of 1 for exclusive fullscreen emulation -cfd6b34b8 Make mappings for "Retrolink SNES Controller" with `SDL_GAMECONTROLLER_USE_BUTTON_LABELS` both on and off -a70964aaf fix SDL_FindFreePlayerIndex so it can really return -1. -35c13196f Fixed uninitialized variable -bc8798331 tests: added -DHAVE_SIGNAL_H to CFLAGS in watcom makefiles -f5c0760c6 Disassociate the SDLOpenGLContext from the view before deleting it -63e6c19b7 Use SDL_GL_DeleteContext instead of Cocoa_GL_DeleteContext for context cleanup -1bd9ebf53 If we're not the current fullscreen window and we don't want to be fullscreen, don't touch the current video mode -e0e79419b Fixed which window we check flags for when updating fullscreen mode -8fc10ac95 Added mapping for the Xbox Elite Core controller connected via Bluetooth on Android -91ad208d1 Fix Xbox One gamepad axis assignment on SDL_JOYSTICK_ANDROID API (#7405) -6c495a92f cmake: use compatible interface properties to disallow linking to a different version of SDL -96a2a6b94 evdev_kbd: Use current keymap -fd4bb4154 dynapi: replace uses of deprecated SDL_assert_state and SDL_assert_data -46945354c dataqueue: Make thread safe. -f5bb286b7 dataqueue: Removed non-public SDL_ReserveSpaceInDataQueue function -f47a08ab8 Fixed typo in previous cherry-pick -660fc8996 Don't clobber an existing entry with a different version when adding a gamepad mapping -6ff3e49b6 Follow the same pattern for releasing the window data in the UIKit driver -e58a8639e docs: Removed bogus file from wiki bridge. -5b7b3da70 Sync wiki -> headers. -0a0dfdb2f wikiheaders: Sort pages before listing them in README/FrontPage.md. -8572e1932 wikiheaders: Use Windows endlines in the source, Unix in the wiki. -031348d37 Fixed SDL windows getting the maximized state after leaving fullscreen on macOS -462d95ab4 wikiheaders: ignore wiki's README/FrontPage.md -a48bb80ea wikiheaders: Bridge README files in the docs directory to wiki. -c0fb09242 Fixed locking up the Logitech F310 with the PlayStation controller detection -37de5d484 wikiheaders: fixed wikilinks in Markdown code sections. -715749f57 Added mapping for DualSense Edge Wireless Controller on Linux -0c7346ec3 USE_DEV_RANDOM close the file descriptor even in the rare case it can't read it -711a458be x11: Fix duplicate Xinput2 event reception -171fba320 wikiheaders: Fix wikilinks inside code sections a little. Not perfect yet. -ad09976ec Fixed relative mouse motion over remote desktop -7abb74813 Sync wiki -> headers. -858ae9900 wikiheaders: fixed see-also conversion -f87f0fe78 wikibridge: Fixes for manpage generation from Markdown format. -b3ea81b33 wikiheaders: Work to make the wiki exist primarily in Markdown format. -3bf9c70a7 Changed the VID/PID used for the Backbone One controller on iOS -ea7103088 Added support for the Backbone One PlayStation Edition -a3a45f670 Fixed view frame from flipping back and forth between landscape and portrait on iOS -5a7ea76ed fix MSVC build failures in CI after commit 1e5e8e2f -9403c9e95 resampler: Work at double precision on x86-64 machines. -13969f856 De-duplicate Google Stadia controllers on macOS -9be85b846 Rumbling the Google Stadia Controller over Bluetooth works on Linux and macOS -35c9b1042 Fixed the packet size for Xbox One controllers -31a57c05d Fixed the share button on the ThrustMaster eSwap PRO Controller Xbox -3dff5d3cb Added support for the Turtle Beach REACT-R and Recon Xbox controllers -4c9a79ddd Removed duplicated conditional -7c4f5e1de Fixed rumble caps for the Nintendo Joy-Con controllers -abe8dbbf1 Added support for the Razer Wolverine V2 controllers -0efb31ef3 cocoa/gles: do not unload EGL when context is destroyed -eb22fbc89 windows/gles: do not unload EGL when context is destroyed -479bc2d5e windows/gles: correct indentation -e6e654e25 include: Fix symbols in public headers that start with an underscore. -7b0600726 Fixed typo (thanks @Iniquitatis!) -7d55ccb8b Fix GetGlobalMouseState when xi2 is not available at runtime -da6bce4f7 SDL_x11dyn.h: include XInput2.h also for Xfixes -74e8a6451 Fix window size in X11 when window manager refuses to resize -f741adc86 Added other names for the DragonRise Inc. Wired Wheel (thanks @felimwhiteley!) -817141c16 ci: install pkg-config on Macos runner -e86f49431 Hold the joystick lock while opening the HID device on non-Android platforms -d948e6c3c Fix potential de-referencing null pointer in SDL_EVDEV_kbd_keycode() -e7376b7b7 Fixed Steam Runtime sandbox detection -69b2baec5 Map the Android MENU button back to the SDL MENU key -2c6995778 Fixed handling simple mode PS4 reports -22df57297 look for clock_gettime() in libc first, then in librt if not found. -634705851 cmake: really fix detection of pthread_setname_np() on Apple platforms. -1194f52a5 cmake: fix detection of pthread_setname_np() on Apple platforms. -45e5f0f10 Fixed bug #7302 - Memory 'leak' in SDL_SetMouseSystemScale() -a23d1af0a Guard against _USE_MATH_DEFINES redefinition -2b66ef0df Fixed audio -7285f0d44 Sorted controller list -ca3468cb5 Add Hori Pokken Tournament DX Pro Pad -7d2012af8 emscripten: Update deprecated calls to EM_ASM*. -17515f4ae Backport simplify flags PR #7220 -f71178a16 Fixed MFI controller being opened while HIDAPI controller was being opened -d77eb8a8d Make sure we synchronously re-enable USB reporting mode for Switch controllers (thanks @SortaCore!) -3fb9118cb Note the Google Stadia controller doesn't support rumble over Bluetooth -71fb4e3d7 Fixed mis-detecting the share button on the Xbox controller over NDIS -2518e32de Dynamically update the serial number if it isn't available at first -e8938fc66 Enable paddles on the Xbox Elite controller when connected over USB -fde632366 fix build after the Logitech ChillStream patch. -715460598 Added support for the Logitech ChillStream -c68cfcdb2 make sure to not enable SDL_PASSED_BEGINTHREAD_ENDTHREAD for WinRT -7bf3e28dc windows/SDL_systhread.c: remove some dead code. -3fa5a2f79 Fixed warning running a command queue without any vertex operations -af5efadd9 Setting the same mouse cursor twice is a no-op -5b5a72e33 Sorted controller list -58fa43e7c Added Elecom 8button gamepad -4266cf850 Add Linux mapping for 8BitDo Pro 2 Wired Controller for Xbox -4f7f72c25 replaced line comments in public header. -c5035d8ff include: add comment documenting the change(s) to SDL_opengl_glext.h -92779a5bd Adds Stadia BT mapping -0dc4373aa opengl: make SDL_opengl_glext.h's include compatible with macos -06b305d23 dynapi: cast GetProcAddress() result to void* -c4a493de9 Don't accept official mappings for controllers that aren't unique -4a87abc96 Fixed sort_controllers.py and resorted game controller database -2290d7133 Added gamepad mappings for the Xin-Mo Dual Arcade Fightstick -17ecb11ed macOS: fix initial Metal drawable size in certain multi-display setups -8800d4044 cmake: assume autotools static libraries with lib prefix and .a suffix -7ac43cfb6 Note that version.rc is public domain. -dfc56cfc0 Fix For issue #6948 (#6991) -c83428475 wikiheaders: Link to the SDL3 wiki in the preamble. -d5680c5d2 wikiheaders: Allow markdown in the wikipreamble string. -1069c8931 wikiheaders: Add a `\threadsafety` tag to document threading details. -507fc462d SDL_atomic.h: Update SDL_CPUPauseInstruction for Watcom. (#7157) -d9d84c8d7 ci: test PVR_PSP2 (gles/gl) and gib (gles) -e927e5d44 vita: add missing static libraries for using gles with pib -33ec2a5e9 vita: fix reformatting error in SDL_vtagl_pvr.c -a8a5bd3d6 cmake: allow disabling OpenGL support when building with GLES using PSP2-PVR -038ccd764 Support MIN/MAX blend on opengles2 -c0445c23b vita: PVR needs to link to sceIme_stub library -9670f233c Support MIN/MAX blend on OpenGL + ES -ea179abdb wayland: Enforce or override libdecor minimum window size -eabd88ed2 Update SDL_vitagles_pvr.c -a44b64610 Blacklist Konami Amusement Controllers From HIDAPI. -880ac537a typo fix to config.sub, -7b8f0ba8b wayland: Set `APPLICATION` scancode name to `Menu` -73a68c6ea regenerated configure script. -44dc90dcc autotools: Add check for libdecor get min/max functions -8efa1f8fc add support for libsamplerate's "linear" resampling mode -5d1e6b28d SDL_test_harness: fix memory leak when generated seed -c638b4a68 SDL_CreateAudioStream: check for invalid parameters -01a4cf8a1 ci: don't require EXTRA_ prefix on input environment variables -f51f7fbb9 n3ds: fix exported libraries of n3ds -b47b6e02f fix prefix path not resolving symlinks -381312a02 Use filesystem drivers -f836b465a Revert "wayland: Don't try to restore non-resizable windows" -a47a04512 wayland: Don't try to restore non-resizable windows -e8ae15558 wayland: Perform a round trip when maximizing and restoring windows -2cb422360 Fixed the hat_map to avoid segmentation fault -fa934dd4d hidapi: switch: Add user calibration support -6a5201772 SDL_dynapi.c: add extern "C" guards, just in case.. -32fd45cf4 Using UV instead of STQ -c5a09ca7a Remove dummy flag -b42503680 SDLAudioManager.java: Fixed the support for Android older than API 23 -0479df53c Updated copyright for 2023 -0b0d256a6 Fix loongarch64 support -d09d0aaab cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix -460b7b247 cmake: do all compile tests with -D_GNU_SOURCE=1 -ebc2fb411 Fixed infinite loop shutting down WGI controllers -0d5467a6e cmake: check for math library functions even in the absence of libm -305e7b55b cmake: fix detection of library functions when -Werror is enabled. -ad0d1e2ad wayland: Fallback to default cursor if chosen one wasn't found -7bf4319eb fix computation of alpha in BlitRGBtoRGBPixelAlphaMMX3DNOW (see #6990) -0ebda8742 Fixed bug #6990: fix computation of alpha in BlitRGBtoRGBPixelAlphaMMX -a09917275 Added support for the ThrustMaster eSwap PRO Controller Xbox -988866ca4 Fixed line wrapping for HID packet dump -2cb7a0a0b Added support for the ThrustMaster eSwap PRO Controller Xbox -b8d5fa4ae Improved handling of binding buttons and axes -0a9f61fbf Wayland / Drag and Drop: find the current window -c7f22f032 render/SDL_yuv_sw.c: fix build after commit d234f7a -d234f7a49 SDL2: backport SDL_CalculateYUVSize() that checks for YUV size overflow (#6972) -2fd9e63f1 Android: orientation, check for exact match to "Portrait". (see #6959) (Portrait is also contained in PortraitUpsideDown) -874ebed14 Android: inverse LandscapeLeft and LandscapeRight (see #6959) -5b904a103 windows: more HANDLE -> HMODULE changes. -0a8f9777a SDL_dynapi.c: LoadLibraryA() returns HMODULE. -78d3a713d Fixed documentation for SDL_JoystickGetDeviceInstanceID -74229d4a4 Fixed keyboard scancode mapping for parenthesis -29a4c5ebc Fixed getting the VID/PID of a virtual joystick -903df79b2 Make sure we match the same way when adding a mapping and looking up a mapping -d47ff8ae7 SDL_thread.h: fix SDL_CreateThreadWithStackSize macro for OS/2 -738442b82 SDL_thread.h: fix beginthread param of SDL_CreateThreadWithStackSize for win32 -68073c627 Fix SDL_CreateThreadWithStackSize not passing staacksize with win32 static api -920acb75c editorconfig: remove trailing whitespace in source code -3dbc6a40a render: only enable clipping when the rectangle is valid -af54c8213 kmsdrm: Fix wrong check on KMSDRM_CreateWindow. -232ed540d Add SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS. -c542aef60 Fix GDK OpenGL build error -abffa1194 Fix dynapi signature for SDL_GDKSuspendComplete -3b3c141ff gdk: Add support for building with OpenGL on Xbox -6969b3be3 Don't send Razer devices the Sony third-party query feature report -311b02f0b Android active driver check (#6850) -36c87d9f2 Android JAVA DetectDevices: 'is_capture' is inverted (#6845) -4e3fc0c1d Android: make Detect devices common between aaudio and android driver. (#6828) -187708e54 Fixed compiler warning -3b0cd4415 Fixed compiler warning -741499dea Android audio device selection (#6824) -a53382e46 Sorted PS4 controllers, note that the NACON Wireless Controller for PS4 actually reports as an XInput device -e99b9ca9c Note that the NACON Daija Arcade Stick is an arcade stick -8e72be311 testime.c: fix wrong {} in switch -7a9966af9 Fixed crash in SDL_PrivateGameControllerRefreshMapping() -d59caffe2 Added support for clang thread-safety analysis -582fb3901 DBus: add a reference to the connection -c70974187 Detect display change when fullscreen desktop windows move displays -817454cfe Don't try to open the Razer Huntsman Elite keyboard as a controller -e986c7984 wasapi: Fixed incorrect assertions. -dfd7efaf1 wayland: Set xdg surface geometry -802b5ef7d Added support for the STRIKEPAD PS4 Grip Add-on to the HIDAPI driver -e580e087f N3DS: Backport semaphore fixes from #6776. -b79732b96 cmake: use FindALSA.cmake to find ALSA library -faa7e3cc2 Update DYNAPI SDL_WinRTRunApp() prototype which was wrong (see #6783) -5efc9bd19 SDL_dynapi_procs: fixed SDL_UIKitRunApp prototype (see #6783) -4bae75387 docs: Note that you don't need to free SDL_GetDefaultCursor's results. -f57776836 Fixed build -569fa3f57 Added test event logging for SDL_WINDOWEVENT_ICCPROF_CHANGED and SDL_WINDOWEVENT_DISPLAY_CHANGED -be3b1cff0 Added logging for SDL_DISPLAYEVENT_MOVED -ab479b496 Make sure the display list is up to date for window placement -264da8c12 Added SDL_DISPLAYEVENT_MOVED to detect when display positioning changes -cfc7cac3c Fixed memory leak when removing existing displays -8b74be464 wayland: Handle the Num Lock and Caps Lock modifiers via modifier events -fc689a6cb Fixed build -b4d547905 Use the correct name for the DualSense controllers -4ee36a947 Added support for the DualSense Edge paddles -c2b2f2a71 Clarified where the paddle locations are -d1b481054 Fixed centering the D-pad on some joysticks -bcccbbd89 tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros -4e465f25d reverted const removal from SDL_NewAudioStream in commit d0bbfdbfb. -7ac66972b Detect Logitech PRO Racing Wheel as wheel -3e9ae3ea6 Fix wrong clang-tidy modification. This is an integer division. Thanks @meyraud705 (see PR #6725) -0a91a793c Fix Conditional jump or move depends on uninitialised value(s) eg ./testsprite2 --trackmem -07d6d116e Commented out syntax that causes Visual Studio 2019 to complain on every edit -b5483f2c6 Fix formatting on Wayland and Pipewire function signatures -b990e9145 build fixes after d0bbfdbfb881e5407911d84c12899bd5b442a130 -3bdc62215 Fixed Apple build after d0bbfdbfb881e5407911d84c12899bd5b442a130 -423c558e4 Detect the G923 (Xbox style) and PXN V900 (PS3 mode) as wheels -42238f88e Fixed build after d0bbfdbfb881e5407911d84c12899bd5b442a130 -d0bbfdbfb Clang-Tidy fixes (#6725) -e29c0661c Removed check for _HAVE_STDINT_H, which nobody defines -e57554ea6 SDL_main.h: added field to SDL_GDKSuspendComplete documentation. -09ee811f4 Small format changed (using clang-format 15.0.2-1) -b067ab920 restore SDL_malloc.c original formatting. -6e40c7a9b Added support for the Logitech Cordless Precision PS3 controller -01541bc35 Added support for the HORIPAD Pro for Xbox Series X -4504c10f3 Re-enabled support for third party PS3 controllers -7b1000013 Reverted code formatting for Apple platforms -9e997cc78 Fixed Victrix FS Pro V2 controller hang on reboot -d87048fd5 Fixed crash if GetRectDisplayIndex() is called before SDL_VideoInit() -6926d046c Fixed build after cherry-pick of 5750bcb174300011b91d1de20edb288fcca70f8c from SDL3 -b8d85c693 Update for SDL3 coding style (#6717) -5c4bc807f Revert "SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits." -8eeca8c7d SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits. -d7664a6ef Support wayland fractional scale protocol -5df106603 cmake: move platform detection to cmake/sdl/paltform.cmake for re-use by SDL2-compat -69f022347 dynapi: Abstract out the environment variable name. -724845110 video: fix error messages - do not overwrite error message set by SDL_InitFormat (SDL_AllocFormat) - set proper error message (Cocoa_Metal_CreateView) - protect against allocation failure (UIKit_Metal_CreateView) -84039e251 cmake: use target_link_libraries to pass -Wl,--undefined=WinMain -2d24baaad Fixed building on Windows with SDL_VIDEO=OFF -b7cc4dce7 Fixed bug #6698 - VISA: wrong check sceKernelPollSema -0b7a9a8e9 thread: code style -8cda5102f Fixed bug #6698 - VISA: wrong check sceKernelPollSema -ee13e8c76 thread: return -1 from SDL_SemWaitTimeout if semaphore is NULL -fcd7d658d thread: fix inconsistent return values - SDL_CreateMutex returns NULL when the creation fails (ngage) - SDL_SemValue returns 0 when the semaphore is NULL (n3ds) -89e9f7b42 Added support for the Xbox Elite controller paddles with firmware version 5.13+ -b6c875a92 Add support for the 8BitDo Ultimate Wireless 2.4GHz Controller in DirectInput mode -a65d1bfb1 Fix broken solaris build. (missing brace). -37d244ea8 Added support for the 8BitDo Ultimate Wired Controller in DirectInput mode, including the misc button and paddles -a937b5c4a Add 8BitDo to the list of Xbox 360 third party vendors -fb0ce375f Cleanup add brace (#6545) -0739d237a [skip ci] Solaris getexecname() returns argv[0] -814521210 SDL_ResampleAudio: Fix float accumulation error -2df39e64a Fix build with Xcode < 7 -8fddf146b Temporary hack to address performance issues in https://github.com/libsdl-org/SDL/issues/6581#issuecomment-1327987916 (thanks @icculus!) -3f5593d61 cocoa: Patched to compile on macOS SDK < 10.10. -dcd125236 cmake: test for lsx and lasx intrinsics for loongarch -edb75bc29 cmake: make all assembly options depend on SDL_ASSEMBLY and architecture -660cec69b cmake: find libudev library so it gets priority -a2611edcf cmake: add support for some BSD's wscons input -e19c532eb Add bitdraw.h, remove non-working stub class -e426617c9 cmake: add X11 include dir to check dirs -192cdf3d0 SDL_mfijoystick.m: remove VLA, so that projects can be built with error on vla -64a5e7be9 added missing FGREP to Makefile.in. fixed syntax. regenerated configure. -66bd15555 wayland: Fix build when not using the shared Wayland libraries -4c7156c1e Avoid use of deprecated egrep/fgrep -33e5de31d vulkan_metal.h: Make compatible with ObjC ARC -3eaf56894 wayland: Fix libdecor_dispatch signature -242ce20cb SDL_mfijoystick.m: fix build with Xcode < 9 -f52e7199d Check build-time SDK in LoadMainMenuNibIfAvailable -e12c831b1 SDL_cocoaopengl.h: ensure CVDisplayLinkRef is defined -cd399caf6 fix dynapi after SDL_GDKSuspendComplete addition. -f6144dfe0 adds GDK suspend/resume basic handling (#6596) -ac2fcfcb6 Sync SDL2 wiki -> header -4ac2d45a0 Testing the wiki, disregard this commit. -dce6ed56d Removed G29 from controller_type.c -e3d430b83 Revert "Added Linux mappings for the Logitech G29 in PS3 and PS4 modes" -511bab5bb .wikiheaders-options: Move SDL2 documentation to a subdirectory. -156bf7e6a android.mk: LOCAL_EXPORT_C_INCLUDES does not need to add include subfolder -938b720a9 Update SDL info and Xcode marketing version to 2.27.0 -44975d40e Update SDL info and Xcode marketing version with version update scripts -ea8f8b6dc Updated to version 2.27.0 for development -0bfeed061 (tag: release-2.26.0) Updated to version 2.26.0 for release -d167cd671 Added the Gunfighter Mk.III ‘Space Combat Edition’ as a flight stick -8b20b568b Don't report battery level for disconnected batteries -8ae46a49e Save the version in VERSION.txt instead of VERSION -802c624ab Strip trailing newline when reading the VERSION file -3bc4bad8f add missing strcasestr checks to cmake and autotools build systems, -fe396e306 wayland: Use the cached window size when switching from non-floating to floating window state -509939b1b Disable the third party PS3 HIDAPI driver by default, the L3/R3 buttons are unknown -ff99e56d3 Fixed KMSDRM window creation failing if OpenGL libraries are not available, but GLES 2.0 libraries are -da9ba3a2a If a CRTC doesn't have a mode configured, use the preferred or largest mode as the default mode -ea4ea27a5 Don't trigger an error if we try to delete a touch device after shutting down the touch system -81479d878 wayland: keyboard: Cache text input parameters. -6dc96aa74 SDL_UDEV_DelCallback: return early if _this is NULL -16824865c Cleanup of SDL_SetError that already return -1 value -3e70553c4 Unneed test before calling SDL_FreeSurface -920994294 Revert "sdl2-config.in: Deprecate sdl2-config" -769ae185d Revert "sdl2.m4: Deprecate AM_PATH_SDL2 in favour of PKG_CHECK_MODULES" -78ea6af2c (tag: prerelease-2.25.1) Updated to version 2.25.1 for release candidate -1f87e9e24 Updated patch notes for 2.26 release -71f2864b3 Fix usage of sizeof() in test/testgles*.c files -89572af6a Fixed bug #6537 - AIX: use PAUDIO_WaitDevice -cd0d5a5fc Don't compare pointer against '0', but NULL -ddad901c0 Remove unneeded semicolon -60c6cd554 Fixed bug #6533 - PS2_JoystickUpdate: some invalid condition -b7358e47d Don't compare pointer against '0', but NULL -77bcd269b Allow creating an empty surface with pitch 0 -a1702d463 ibus: Try to use org.freedesktop.portal.IBus first if available. -bb0b8adac mac: Fix handling of deprecated symbol. -913e403f2 Fixed error message when trying to create an OpenGLES2 renderer on macOS -fcc994e13 ensure that SDL2 does not set conflicting window flags (thanks @pionere!) -4192d1a1c Fix compilation. It needs to be casted to 'int' type -ce5da5d57 Don't compare pointer against '0', but NULL -1d7966df1 Remove un-needed check for NULL pointer. They were previously checked just before. -8ea96f365 events: Remove X and XKB keysym constants and headers -20af698b0 GDK: Updated MicrosoftGame.config files to use placeholder identifiers from the GDK project template rather than using Microsoft sample identifiers -389ffab73 Code style fixes, etc. -ec58a817e Fixes made in response to running a static code analyzer under MS Windows. -7ebdae5dc cocoa: Fix OpenGL deprecation warning. -7c760f7f7 cocoa: Update CVDisplayLink timing when screen changes. -1fd66cc89 Revert "cocoa: Backed out CVDisplayLink code for macOS vsync." -9d67686a5 haptic: Deal with deprecated macOS symbol. -6801d676c Revert "pulseaudio: Only use PA_STREAM_ADJUST_LATENCY if buffer isn't super small." -81fd45f72 ci: Disable emscripten build time tests -55534e277 cmake: add time out to tests to avoid ci timeouts -2e47016b0 ci: use Ninja generator in hop of accelerating the build -819b0143e cmake: enable SDL_TEST by default for emscripten -a22fcf77f cmake: older emscripten releases have a broken FindOpenGL.cmake -d8884b845 emscripten: fix warnings in tests -a71e558d8 cmake: testshader needs -sLEGACY_GL_EMULATION on Emscripten -55384db8a cmake: emscripten has libunwind.h, libunwind.a has missing symbols -6e46090a3 cmake: check ALL headers inside the look (including sys/types.h) -500bac0b1 cmake: include FIndPkgConfig.cmake through find_package -cfa76973f cmake: FindOpenGL.cmake shipped by emscripten does not have OpenGL::GL -76e3cf384 cmake: use custom add_sdl_test_executable macro to add test -903301c6a wayland: Always use integer scaling for cursors. -d8b1ef42a pulseaudio: Only use PA_STREAM_ADJUST_LATENCY if buffer isn't super small. -06492c598 CI, MSVC: update to use microsoft/setup-msbuild v1.1.3. -02ab7f374 Fixed release build using clang on Windows -98f93d0aa Fixed building without xkbcommon support -615901dbf Removed unnecessary header -c85518476 wayland: Handle virtual keyboards that don't fit the X mapping -d1858eb12 events: Add a helper function to get the default keycode for a scancode -0e446c54b events: Factor out the xkb keysym to scancode conversion from the X11 driver -44d7b8b91 egl: Check for a NULL pointer in SDL_EGL_GetProcAddress. -f3cc99fb9 x11: Minor style fixes for recent OSK changes -e6c4db816 The SDL2::SDL2 target in SDL2.framework needs to see the SDL2 include folder -70656b133 Don't recreate the window when creating a Metal renderer on an OpenGL window. -a71ad40ac CMake: Add option to use Ccache. -5e61f245a Sync SDL wiki -> header -80ff20f6f N3DS: Set keyboard focus to newly created windows. -491d0bcc3 N3DS: Refactor N3DS_FileOpen. -dcfa127fd N3DS: Document the SDL_GetBasePath behaviour. -de5fa89b5 N3DS: Prepend PrefPath with `sdmc:`. -7d536d524 N3DS: Put `SDL_Log.txt` in the proper directory. -bf4f9aaa6 N3DS: Use designated initialiser for drivers. -d080e3bf3 Silence `-Wmaybe-uninitialized` warnings in tests. -a40b7cde1 Workaround for views being in portrait instead of landscape mode on iOS 16 -9f784b188 The iOS and tvOS demos link SDL statically, not as a framework -b886f4c6c events: eliminate redundant code in SDL_SendEditingText -dad8df3ed video: check graphics flags the same way in SDL_RecreateWindow as in SDL_CreateWindow - single check to validate the graphics flags - check it before tearing down the window -eef4d3c86 wayland: Clamp wl_seat version on older versions of libwayland -674989261 Fixed warning -1b0277da6 Move SDL_mslibc.c into the source file list -c4b9f6216 x11: Add support for the Steam Deck on-screen keyboard -5f2a1231d video: check graphics flags the same way as the type flags -22354b414 video: simplify window-type check in SDL_CreateWindow -85aa9b8b6 wasapi: Favor the system resampler again, for now. -9f8b68a27 Fixed building without linux/input.h -b7e65a81f Fixed incorrect WGI controller state when the application loses focus -875e9b35d N-Gage: additional cleanup -afbafc2ae Remove redundant dependency to bitdraw.h, minor cleanup -d09edcbca video: sync Metal_CreateView with GL_CreateContext and Vulkan_CreateSurface no need to check if _this->Metal_CreateView, since it is already checked in Re(create)Window -b71d92742 video: add NOT_AN_OPENGL_WINDOW define (similar to NOT_A_VULKAN_WINDOW) -36c6ed4b6 video: add SDL_DllNotSupported - add SDL_DllNotSupported and use it to sync the behavior of SDL_GL_LoadLibrary with SDL_Vulkan_LoadLibrary -dd44cacbd remove duplicated SDL_hidapi_steam.c additions to watcom makefiles. -0dfc829a6 Added simple BLE Steam Controller support on all platforms -f430ef5dd Don't change the window position when creating it on iOS, it is already placed on the correct display -7c05ea0a0 Added mappings for the GameSir T3 and T4 Pro controllers -404cb2767 Added macOS mappings for the Nintendo Switch Pro Controller over Bluetooth -29cafa9c9 add SDL_ContextNotSupported and validate flags in SDL_RecreateWindow similar to SDL_CreateWindow -1008cc8e5 video: Add some braces to match SDL coding style. -ac3349faa solve FIXMEs in SDL_video.c -e5c599f8c fix SOLARIS_ATOMICS - use 'sizeless' int types (int uses 32-bit even if _LP64 is set) -b095df7f5 simplify MSC_ATOMICS - use _Interlocked(Compare)ExchangePointer in case of _M_IX86 as well - improve assertions: 1. add assertions to SDL_AtomicAdd/SDL_AtomicSet and SDL_AtomicCAS 2. use sizeof(a->value) instead of sizeof(int) -3dc88da02 Fix Dualshock 4 rumble stopping too early -6432f45a1 Don't treat the Nintendo IMU as a separate game controller on Linux -2e3b4f3fd Don't send rumble to the Amazon Luna controller on macOS -02bc359b6 Shorten "Bensussen Deutsch & Associates,Inc.(BDA)" to "BDA" for controller names -b0dc6709b coreaudio: Don't use deprecated kAudioObjectPropertyElementMaster symbol. -db01016dd revert replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES. -e873d6098 fix handling of SDL_EventQ.active - SDL_EventQ.active is a bool variable -> do not use SDL_AtomicGet/Set, it does not help in any way - protect SDL_EventQ.active with SDL_EventQ.lock - set SDL_EventQ.active to FALSE by default -eb670742f better SDL_AtomicGet(Ptr) implementation -64c93f780 replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES. -5dc93451d JANITORIAL : Correct some more spelling mistakes (#6489) -c2675d74c Revert "cocoa: Discard the IME Candidate Window immediately when Escape is pressed" -f2ce7c5fb Added the G29 as a PlayStation controller -9d1dbd2ad Added note about trigger rumble availability across third-party Xbox One controllers -e7a56323a Make sure we wait after sending the rumble packet when initializing the PowerA Xbox One Mini Wired Controller -6875e62af Make sure we don't send Xbox controllers rumble so quickly that it overwhelms the firmware -38af459dd Fixed potential clobbering of packets of different types using SDL_HIDAPI_SendRumble() -e45cb5b1e Fixed initializing the PowerA Xbox One Mini Wired Controller -0d76e2a8a cocoa: Discard the IME Candidate Window immediately when Escape is pressed -15a989091 Added SDL_HINT_HIDAPI_IGNORE_DEVICES to specify devices that should be ignored in SDL_hid_enumerate() -297ecb706 Added SDL_strcasestr() for a case insensitive version of SDL_strstr() -a4626dea8 Fixed initializing the PDP Xbox One and Victrix Gambit controllers -7e11b09b3 The PowerA Xbox One Mini Wired Controller works with the HIDAPI driver now -a2d66b6a9 SDL_GameControllerMapping() should return the string for the actual mapping that was used when opening a gamecontroller, rather than do a GUID match again -f3bf543e2 recognize game controllers connected via raphnet technologies WUSBMote v2.2 -24cdebe46 Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the Xbox button LED on the Xbox One controller -78f97108f audio: Avoid accumulation errors in resampler. -689218ebf Fix wayland reconnection paths -33a68f575 Added Linux mappings for the Logitech G29 in PS3 and PS4 modes -c70e67590 Wait a bit for devices to initialize before trying to enumerate and open them. -084fa4c3f cocoa: Reset IME when sending composed text -61297f703 cmake: on Apple, check for presence of an OBJC compiler -04bcc910e cmake: don't do enable_language(OBJC) -b50e42935 Fix compilation for .m files extension -4c704ecfd cmake: use SDL2-static as static library output name when prefix/static == ""/".lib" -70a41f9bc wayland: Read `window` data only if `window` is valid -b75d31877 Sometimes the HID open doesn't succeed immediately after being notified about the device -27ee8c8e1 Fix mismatch between Init and Quit -33a430056 wayland: Don't modify the mouse capture flag in relative mode -a66cb8cf2 sdl2.m4: Deprecate AM_PATH_SDL2 in favour of PKG_CHECK_MODULES -e0d904e90 sdl2-config.in: Deprecate sdl2-config -678ef7977 SDL_KMSDRMOPENGLES.H: Correct spelling mistakes -8b9c82e14 SDL_RENDER_PSP.C: Correct spelling mistakes -3369b0163 SDL_PS2_MAIN.C: Correct spelling mistake -d7a46a16e SDL_SYSLOADSO.c: Correct spelling mistake -6a881302a SDL_IBUS.H: Correct spelling mistake -61f3662c9 SDL_QSA_AUDIO.C: Correct spelling mistake -57973cd37 SDL_HINTS.H: Correct spelling mistake -571ff1a3a wayland: Prepare cursor implementation for reconnect support -9c8b1fd8b wayland: Cleanup work to aid reconnect support -f6b1e028a Allow vendor matching for hid_enumerate() on all backends -c360ca992 Add UWP-ARM64 Support. -4556074e1 Re-set the maximize state if we were maximized while fullscreen -ab06a307d Don't report windows being maximized when fullscreen on X11 -b9e1d1b4d events: Rename SDL_SendKeyboardKeyComplete to SDL_SendKeyboardKeyAndKeycode.+ -922154811 emscripten: Make an attempt at correct keyboard scancode/keycodes. -0ddec7e42 docs: Add notes about Emscripten audio quirks. -a8f019b1f Using ST and removing warnings -f2ebedae9 adding texture function -5de01eb0a Make render to use new functions -f500c1476 Fixed DirectFB build -9e8d2f394 video: Don't use texture framebuffer on Windows Subsystem for Linux. -4223e6ac7 wayland: Early-out sooner when requesting fullscreen on a popup -11a24a34e Sync SDL wiki -> header -41d38c0f6 shape: More robust handling of failure cases in CreateShaper. -c8d20f96b shape: Free platform-specific shaped window data. -30c2dac78 wayland: Remove duplicate #include statement -25d0473aa Removed Razer Onza Tournament Edition mapping -e837debc2 Bindings should have a trailing comma, so the CRC can be appended -b6cf889af Use ScreenCount() instead of SDL_GetNumVideoDisplays() -c74ea994a Added support for the Razer Raiju Tournament Edition controller in Bluetooth mode -72f6e216d Disabled debug logging -e3f5744db Don't use XIWarpPointer() on multi-display configurations -393acf636 Sync SDL wiki -> header -98dfc9296 build-scripts/fnsince.pl: Deal with new point-release system. -5fbf8f6cf Adds DualSense Edge -da478d1f6 Fixed build -a6018ae57 Added support for the NVIDIA SHIELD controller v1.03 to the HIDAPI driver -20beed302 SDL_EGL_GetProcAddress: remove unnecessary underscore-prepended search. -053b5f85f SDL_windowsevents: minimize white screen flash on window creation -b6e7c743d SDL_cpuinfo: define __ARM_ARCH=8 for _M_ARM64 -d2300516c cocoa: set sRGB colorspace on nswindow -019e9d4c9 SDL_cocoavideo.m: add missing SDL_cocoaopengles.h include -dd72f3f03 Added comment for #endif -3d35c0858 fix a few 'unused but set variable' and 'unused function' warnings -f4d1f5ed5 SDL-HIDPS4: fix PS4 Slim controller over BT - it sends the same input report as the it does over USB, but with a larger packet size -5bd13dec1 Merge commit '8db3a33872cfbefcdfb059beea92338a7873f89e' into main -e6742d05f Merge commit '413500ab69d9ac288a73946073d4414376ca17d2' into main -5373ad6ff Merge commit '2ebaafa6c9334071b664b15d045656250690dd96' into main -7acab5045 Merge commit 'c3b13346e0a2200f1521cf064b9a602c8196e6a6' into main -f07673a12 Merge commit 'd4d99e8c29da350379c991a8360d544d2c9eaa32' into main -d41fb3c48 Merge commit 'cfd5d8eb29c8958de3333632a96032d3481816e5' into main -9c7b9e08b Merge commit '4ca5ea5b7e8333b2cde1b7cdddf167c67cc3f23c' into main -869635090 Merge commit '2dc788cb9ffa83a2840e62f5ad2d0a7055cfcb19' into main -e45ef5a6c Merge commit '5b8f830e342b296d255969bbaec5a1a3522f1083' into main -491d59497 Merge commit '0e1d19cf680fc51635b3c52a9afa33fe03881bb5' into main -26c9620a6 Merge commit 'a905a7869f18332579ff06ba3f7f3777708a3007' into main -e738cf80d Merge commit '65a38a4015e54add093bdb3fbd2ad1cdc1770c72' into main -da4c97250 Merge commit '3f1b5efccaa727745b335b546a42bd650694ca08' into main -b3ba8f406 Merge commit '3d415bc5d61e625189ccca6348ff1b70c469e45c' into main -2d3e21ab0 Merge commit 'f37db957f8c5d9de53bdd58b2a95a2da0937307d' into main -8047ece18 Merge commit '5ed091c12d4edefb366d78217b72cb75b563bfcd' into main -ef62b767f Merge commit '0823b5973a28ebad2ca6d34058c12602bc8a69f0' into main -e5fe52219 Merge commit '4264c0b67469896fced5ba8ac4c0e75acbb13ff1' into main -57a98aa5e Merge commit '96361fc476a9f0a91ac021133bb44e6d97b16f11' into main -b5712c1be Merge commit '11d53c84a7663d5a5861f3672990ca4b32376e3e' into main -0d5fb2a0c Merge commit '94ac8ae08b19210efedd0e73b0c60010fb9308a0' into main -be3dc1acb Merge commit 'c6e89619794ed6307f9efb0b242a2cdb605e1dc3' into main -3bc84aceb Merge commit 'd542f43b2aa23966913c08e4973793150e8073d0' into main -f20c2759f Merge commit 'f28cf2b0d3fa6b4b9c692b0aa04f2875a09e0dfa' into main -284df27b5 Merge commit 'e7ab581d796aa83f7d028ea4249fdc66600df173' into main -8db3a3387 #6433 Fix WINRT_IsScreenKeyboardShown on Xbox -413500ab6 Replaced mouseWheelGesture with GCMouse support on iOS (thanks @russelltg!) -2ebaafa6c Use translationInView for mouse wheel event -c3b13346e On x86, pass -nodefaultlib to linker when wanting to avoid the C library -d4d99e8c2 workflows: Check we can screen-scrape the SDL_REVISION from Linux builds -cfd5d8eb2 build: Regenerate ./configure -4ca5ea5b7 build: Add a mechanism to mark builds with vendor info -2dc788cb9 build: Expand version info in SDL_REVISION and SDL_GetRevision() -5b8f830e3 Virtual joysticks don't need initial axis jitter protection -0e1d19cf6 fix build errors resulting from -Wmisleading-indentation -a905a7869 Clear the previous bitmap when calculating a new window shape -65a38a401 hidapi, libusb: remove os/2 symbol load hack after os/2 loadso updates -3f1b5efcc os2 loadso improvements: -3d415bc5d loadso, dlsym, SDL_LoadFunction: cleanup the underscored name path. -f37db957f Use -lpthread on OpenBSD -5ed091c12 cmake: fix reporting of SDL_TESTS -0823b5973 cmake: fix finding wayland-libdecor -4264c0b67 os2: fix error message for SDL_LoadObject() -96361fc47 cmake: create and install sdl2.pc for MSVC & WATCOM -11d53c84a cmake: use pkg-config's library dirs as hint for finding a shared library -94ac8ae08 cmake: else() does not need an argument -c6e896197 Define _USE_MATH_DEFINES for Visual Studio (thanks @pionere!) -d542f43b2 cmake: add SDL_INSTALL_CMAKEDIR cache variable to override location of cmake config files -f28cf2b0d Also remove the OpenBSD comment about OSS -e7ab581d7 coreaudio: Dispose of AudioQueue before waiting on the thread. -5b6d36fd9 Merge commit 'aefc6b5bb57cd3aadc6964e26f2caac1d1c5f624' into main -764e7c4f4 Merge commit '965ba1e09712fc57968d87c1cf60c541529fbd20' into main -8b6f72654 Merge commit 'dfbb93dd0c4bcdea2a3edc0e3cb0f5dae153d16e' into main -86695af48 Merge commit 'e8a4c23ce560dad786922e8d51496da2687e1723' into main -8f7577d70 Merge commit '790fa3156cfee847a7c0b34986de0cd7fdd7438f' into main -ac68c34f7 Merge commit '3ec4c9b3b9a29f17482ad2e130d6b14d79c5cb97' into main -66226f652 Merge commit '3d99d31026bb69e208ac82c30c67e62ca1333141' into main -aefc6b5bb Renamed variables, index is the singular of indices -965ba1e09 fix SDL_SendEditingText when long composition text is enabled and strlen(text) == SDL_TEXTEDITINGEVENT_TEXT_SIZE -dfbb93dd0 SDL_Renderer / GLES2: add specific list of indice to render rect (see #6401) -e8a4c23ce Revert commit 790fa3156cfee847a7c0b34986de0cd7fdd7438f. SDL_BLENDMODE_INVALID case is probably used for custom blendmode -790fa3156 Fix warning: enumeration value 'SDL_BLENDMODE_INVALID' not explicitly handled in switch -3ec4c9b3b Merge remote-tracking branch 'refs/remotes/origin/main' -3d99d3102 Fixed bug #6401 - back-end can choose the order the triangles when rendering rects, attempt to fix small glitch rendering. -428b5ae54 PSP: Reorder extra imports -285cbf6fd Revert commit 485bb3565b6da24620e4eedde837fbfbc5cee6d2. "Fixed bug #6401 - change the order of triangles when using RenderCopy, RenderCopyEx and RenderFillRect" because the glitch reappears on other backend -0bc852ce5 Revert "Disable the RAWINPUT joystick driver by default" -7e1088167 Fixed command modifier on macOS -cdf312c83 Fixed mouse warp after resizing window on macOS. -7c7cd2a60 Fix issue #6037 (incorrect modifier flags on Wayland) -3903f4c88 PSP: Use vramalloc instead of conflicting valloc function -333935ff3 Make sure we completely unlock joysticks when opening HIDAPI devices -47ba997f0 Disable the RAWINPUT joystick driver by default -5025f2403 Don't use RAWINPUT joystick driver on Windows XP -f4e3af15a Simplify OSS test by removing OpenBSD specific location of the soundcard.h header -485bb3565 Fixed bug #6401 - change the order of triangles when using RenderCopy, RenderCopyEx and RenderFillRect -70dfd6dd1 Added mapping for Xbox Series X controller -ed412c138 wayland: Cleanup event source comments, headers, and error reporting -22461383c SDL_audiocvt: Respct the SDL_HINT_AUDIO_RESAMPLING_MODE hint -e8fdb861e Removed redundant masking when loading the IMU calibration -a6573f94a Fix bugs in IMU calibration loading for Nintendo Controllers -620476865 wayland: Don't block on libdecor_dispatch() -e89389ba0 wayland: Use MAP_PRIVATE when mapping the keyboard keymap file descriptor -5129a0770 Steam Controller support defaults off, as documented in SDL_hints.h -6af17369c Added mapping for Qanba Drone on Linux without HIDAPI -93b719676 Only update the battery level if we're on Bluetooth -120a957d0 Added support for the Qanba Drone Arcade Stick -6bb0c2a5c Added documentation for some scancodes -91ff88451 Disable "The key you just pressed is not recognized by SDL." message by default -139192140 Fixed reported cases of "Keyboard layout unknown" messages -2c1923859 Don't remove entries from an existing scancode keymap -99f2a5039 X11 scancode mapping cleanup -f5afb7d11 directfb: Fix return type of DirectFB_RenderPresent() -fc73386f4 Fixed the mapping from raw joystick values to the expected [SDL_JOYSTICK_AXIS_MIN, SDL_JOYSTICK_AXIS_MAX] range. (thanks Tas!) -eea9f638e CI: Update to actions/checkout@v3. -7d230af51 testevdev: Explain why the test data is encoded the way it is -81dee3194 testevdev: Add a static assertion for supported sizeof(long) -5b9608e08 Remove D3D9 workarounds for Watcom. -2d7816e35 dynapi: Disable support for API call logging by default. -f69e004d0 Android default to dynamic API disabled (see #6381) -f6ff87788 Android default to dynamic API disabled (see #6381) -6836273d1 Use XIWarpPointer if compiled with xinput2 -fb32effd1 testevdev: Fix detection of word size -e710440f5 Vita: Fix typo in CI CMake command. -be2cb0006 wayland: Check for the input handle before checking the keyboard handle -df1bd07de d3d12: actually execute the pending commands before processing resize -0b88e609b wayland: Raise wl_seat maximum version to 8 -41c718edc Fix memory leak in PSP_CreateTexture -6f224e4d9 Made timestamp_us of sensor events increase monotonically for Nintendo controllers -4227a0b4f Vita: Turn on `SDL_WERROR` in CI. -e99b05d6c Vita: Install bash in CI. -fefd48eb9 PS2: Turn on `SDL_WERROR` in CI. -8117bfe5d PS2: Ignore warnings from toolchain headers. -047279460 PSP: Turn on `SDL_WERROR` in CI. -5ddac7e02 PSP: Fix type mismatch warnings. -c1317175b PSP: Fix `Wformat` warnings. -669532d52 PSP: Remove dead code. -17322e2be dynapi: Optionally log every call into the SDL API. -450708350 Fixed build -680d0f043 Added support for undefined or centered position for shaped windows -b737833d3 N3DS: Turn on SDL_WERROR in CI. -6784d84c9 N3DS: Fix `-Wformat` warnings in tests. -43a2b0b1e N3DS: Use macro to correct axis. -49c25b1da N3DS: Fix PrivateSensorUpdate call. -cb1972b3b N3DS: ZL and ZR should be considered as triggers. -86a8714fe N3DS: Refactor joystick module to avoid globals. -392f3882d N3DS: Use SDL_Sensor instead of Joystick sensors. -27557b62b N3DS: Prefix timer sources with `N3DS_`. -efc93e685 N3DS: Don't set `num_display` by hand. -c7c0e81c1 N3DS: Update README. -83ec6062a N3DS: Move gfxInit and hidInit from main to video. -266014faa N3DS: Use SDL_Touch instead of the Joystick touch. -f9785702a N3DS: Deduce screen from window's display. -46a13ad97 N3DS: NEON is likely not supported. -af2bc2ed0 N3DS: Use osSetSpeedupEnable instead of PTMSYSM. -03bbbcd85 N3DS: Use CreateJoystickGUIDForName. -2b2693ae9 N3DS: Use asprintf instead of snprintf. -655275378 N3DS port (squashed) -61b5360e1 Only check to see if the ICC profile changes when the display changes or we gain focus -6ffc45b0e Removed "undefined" argument for Apple platforms. -ec1137dfb cmake: Apply CETCOMPAT fix from ef988fe1 to tests -f99fc3268 d3d12: fixed window resize handling -490c20f93 d3d12: reset the vertex buffer size when it is released -efdb390ca Disable the HIDAPI Wii driver by default as it doesn't work with the dolphinbar -6391ad970 wayland: Factor out common libdecor frame commit code -b0a9396b0 wayland: Remove XDG surface geometry calls -b91ddbc3e wayland: null-terminate drop data -9df1af352 Sync SDL wiki -> header -d02203952 testhaptic: fix watcom "&array may not produce intended result" warning -151c23415 ci: Add SDL_WERROR to a few configurations -eb8eb621b SDL_x11modes: fix -Wunused-variable -01498d3ac SDL_render_psp.c: fix -Wshadow -4298e7988 SDL_offscreenframebuffer.c: fix format '%d' expecting int instead of Uint32 -b8a4b8d1c testautomation_mouse: fix format '%i' expecting 'int' instead of 'Uint32' -b51a88a95 SDL_malloc.c: fix variable 'used' set but not used -5c150ddc2 SDL_mslibc.c: fix unknown pragma ignored [-Wunknown-pragmas] -37beabd11 SDL_mslib.c: clang-cl does not support `/GL-` -85fd40faf Fix -Wunused-const-variable warning when using clang-cl -7ae5d8d40 testmessage: fix conversion from `intptr_t` to `Uint32` -02b200ef0 testoffscreen: fix '<': signed/unsigned mismatch -7a7980faf testnative: fix conversion from `time_t` to `unsigned int` -877068952 testmouse: add explicit int-cast to avoid warning about converting `float` to `int` -3c251ec41 testintersections: fix conversion from `time_t` to `unsigned int` -b771d9bee tests: avoid MSVC preaching about unsafe functions -ebae142aa testhaptic: fix conversion from `size_t` to `int` -18c776e15 testspriteminimal: fix conversion from `time_t` to `unsigned int` -f3389f13e testgeometry: fix conversion from 'double' to 'float', possible loss of data -2105c7f6e SDL_thread.c: fix unused function SDL_FreeErrBuf when building without thread support (emscripten) -07225d2e2 cmake: fix check for -marm -45da13399 cmake: don't error on apple when using deprecated declarations -274ec0258 testautomation: avoid format related warnings by using a few pragma's -d04fa0ef7 controllermap: use enum to avoid '-Wmaybe-uninitialized' -a905db9d6 testcustomcursor: fix Wswitch warning by casting the arg to an int -bb527678a testgamecontroller: fix -Wshadow warning by renaming global axis+button textures -57c886551 automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("") -be5f55c47 watcom: add ENABLE_WERROR option to makefiles -335c67249 autotools: add --enable-werror option -77822ed16 cmake: add SDL_WERROR to conditionally enable/disable -Werror -1064fdee8 cmake: append to COMPILE_FLAGS property -68e20501d autotools: by default, disable x11 on MacOS/iOS -b18c361b0 Updated variable name for mouse coordinates in mouse wheel events -4f318c904 Add cursor position to mouse wheel event (thanks @meyraud705!) -5490505a2 Added a note to update the website after a stable release -17b43b0fd Don't try to create a semaphore for the mutex implementation if threads are disabled -33050fea3 Only open HID devices that might have a HIDAPI driver available -31991ab85 Fix \sa to a valid function in SDL_metal.h. -484d5fd6c audio open: ensure 2 devices don't get the same id -5ec1cef6b Further fixes for the sndio CMake detection -e714d4d72 regenerated configure script. -f48823181 Use the pkg-config file when checking for sndio. -fc720321b Fix rare deadlock when opening a HID controller on Android -689409fd9 Fixed the start button on the Nimbus+ controller on tvOS -b4aba1015 Reverted game controller buttons from interacting with message box dialogs -893c87b27 Fixed game controller buttons being unresponsive when the on-screen keyboard is up -914a65e09 wayland: Don't unset min/max values when entering fullscreen via a compositor event -69cf5fb0e wayland: Remove surface type helpers -c2b0c41c0 wayland: Set/unset the opaque regions on surfaces when transparency is toggled -ea5958009 wayland: Set the damage buffer size when supported -a8cb7bbe2 wayland: Add dedupe logic to window geometry configuration -f687cbd4c Clarified that GNU sort isn't required, we just need the -V option to be supported -8c587636d GNU sort isn't available on older macOS and some BSD systems -e3b2830f9 updated VS project file -d2160c29d iOS: implement SDL_GetWindowSizeInPixels. -fa7ffa4e8 change the iconv configuration option names to be more verbose. -4ca86dae2 Sync SDL wiki -> header -ddc3de602 Added mapping for PS5 controller over Bluetooth on Android 12 -81afb3e30 Need to swap endianness when extracting the CRC from game controller mappings -294ccba0a better wording for --enable-iconv description -92c71ae38 [iOS] respect initial status bar configuration when displaying the launch storyboard -5b1313647 [UIKit] handle app lifecycle events in a custom object instead of AppDelegate -c9f60cce4 cmake+autotools: add option to enable/disable iconv -e41942e81 fix compilation error SDL_coreaudio mixing declarations and code -d0657fde3 cmake: Use DWARF 4 debug information when building using mingw -f18fae4c6 Use DWARF 4 debug information when building using mingw -cbb1cf0c9 cmake+xcode: only create SDL2::SDL2main target when it does not exist again -fdef96e23 Android: remove "nativeSetComposingText" since it's not used anymore (and it may fail registering at init if code is cleaned with proguard) -eac3d6d3c SDL_video.c: fix variable 'i' may be uninitialized when used here "_this->name = bootstrap[i]->name;" -ad29875ee Wayland: Emulate mouse warp using relative mouse mode -9e3c4b9f3 Use the correct platform defines -5291e5cb7 Added version checking to SDLActivity.java -3607f8316 Find out if a controller is wireless using WGI (thanks @DJm00n!) -321ca1091 opengles2: Texture names are GLuint, not GLenum. -01c5554f0 opengles2: SDL_GL_BindTexture() should bind all YUV textures. -f8f562dac iOS: remove dead pre-iOS 8 codepaths. -bbeacd72c Fix some credit comments. -cf331ef3f Fixed build -34b28002d Sync SDL wiki -> header -64ea6cefa SDL_ResetHint() no longer clears the callbacks associated with a hint -19ecb64e0 Fixed build -bd6afc231 Fixed sensor axes in vertical mode -b4c25f571 Remapped the side button and trigger as paddles for the mini-gamepad mode of the Joy-Cons -f58a6506a Added paddle mapping for combined Joy-Cons -37dfa2629 Added paddle mapping for combined Joy-Cons -a00565b8b Fixed displaying more than 18 buttons -6c8bf3af4 Add vertical mode for Nintendo Joy-Con (#6303) -0672dc8d8 Fixed combined Joy-Cons after https://github.com/libsdl-org/SDL/commit/aa2e2f4843567cfe4e6f2f4ffa3f0b74dd98f1ba (thanks @happyharryh!) -bac54b3d2 Android: add script for building prefab archive -5e654a4bf Fixed Mac compile errors when OpenGL is disabled. -c29629a5e fix permissions of Android.mk -6acc7a562 Mark the editbox as multi-line so the return key is always visible -257cacab1 Android text input now works like iOS, where you get text in progress and then backspaces and new text if autocomplete changes it or the IME commits it. -28572702b Properly backspace over text that was entered when autocorrect updates text with the iPhone on-screen keyboard -e6640ef2d coreaudio: Possibly fixed another shutdown race condition. -7567c4cb0 revert executable permissions from Android.mk -82e341bc9 Android: use real editable text and mimic the edit operations to generate key events -1b895912a docs: Note the lowest supported Emscripten version. -cfab203f9 emscripten: Remove use of EM_ASM from SDL_timer code. -a97d2e695 GitHub Actions: bump Emscripten version used to build to 2.0.31. -1b52145ba Makefile.w32: no need for the description field, we have a *.res already -0d6c4ff62 testaudioinfo: Initialize deviceName unconditionally -1ea1a90ed testaudioinfo: Also test SDL_GetAudioDeviceSpec -40893821f coreaudio: Add support for SDL_GetDefaultAudioInfo (#6277) -69bbe4ce7 Fix memory leak in VITA_GXM_CreateRenderer -e17f0c283 wayland: Call the Wayland hide/show functions directly when changing decoration modes -8bcbdc706 hidapi, libusb: backport read_thread indefinite loop fix from mainstream -379d47805 dbus: guard against uninitialized D-Bus -57b5c9107 kmsdrm: only negative devindex's are not allowed -508cc225a Update README.md -f648c000b build: Fixed some references to renamed test-versioning.sh -f6565c329 coreaudio: Remove redundant variable. -411582c71 coreaudio: Don't crash on shutdown in a race condition. -d843d61cc Moved test/versioning.sh to build-scripts/test-versioning.sh -4471d22eb Updated iOS demos Xcode project -13c443f22 Removed obsolete search path setting -26997bc15 Removed unused framework entries from the Xcode project -229315b01 Updated SDL Xcode test project to build for iOS and tvOS -bb74af1e1 Allow including SDL_uikit_main.c in Apple multi-platform builds -3a6b4835f Updated macOS Xcode test programs -8e1464775 build-scripts: Added update-version.sh -a2c575735 video: check for "software" with SDL_HINT_FRAMEBUFFER_ACCELERATION. -d76f0cc75 Android.mk: Build android SDL2.so with `-Wl,--no-undefined` -70214ed3e cmake: append to CMAKE_MODULE_PATH instead of overwriting -a193a03d8 cmake: add -Wno-declaration-after-statement to cpu-features.c alone -7becbd7d4 Add joystick locking for controller notifications on iOS/tvOS -18eb319ad Added sensor timestamp for Nintendo Switch controllers -5e3a40309 Added sensor timestamp for Steam Controllers -57b20e7b9 cocoa: Fix new windows setting SDL_WINDOW_BORDERLESS flag incorrectly. -77c7836c2 fix vita build failure after commit 2c518747b -36e767014 Sync SDL wiki -> header -2c518747b Added microsecond timestamp to sensor values for PS4 and PS5 controllers using the HIDAPI driver -d71df6448 Fixed bug #6287 - SDL_FillRect failed for SDL_Surface with BitsPerPixel == 4 -1e1be0b95 Updated logic to match between PS4/PS5/Switch controllers -8c40a6b0c Drop PS5 Bluetooth reports that fail CRC check -db075ff3b Removed unused variable -2ccdd0667 Handle DS4 dongle controller connection and disconnection -653e433c0 cmake: only add -Wl,--undefined=WinMain when building an executable -18046b9aa Fixed crash with a NULL serial number -67fa6a935 Don't wait a long time for zombie Bluetooth controllers -67db8a910 Wait for input before reconnecting a Bluetooth device -71fb91f7e evdev: Fix build with libudev and joystick subsystem disabled -2cc917613 Removed debug logging -2c98c8af0 Use better default values for Switch controller calibration -a205c5e26 Use separate extents for simple and advanced reports -2f9c9b5f8 cmake: make sure check_* uses 2 different variables for clock_gettime -81d326676 cmake: make sure check_* uses 2 different variables in CheckX11 -a9524ffa9 cmake: make sure check_c_source_compiles uses 2 different variables in CheckOSS -bfecd7815 cmake: use check_symbol_exists to check dlopen + need for dl library -4e375996d Added a hint to return the version in the old format -b7fddb4c0 Minor tweaks -39adcc0a6 Prefer USB input over Bluetooth for PS5/PS5/Switch controllers -17d7d03ad Added detection of the joystick type for third party PS4 and PS5 controllers -6b75a592a autotools: revised and silenced esound detection a bit. -3a6b7c9c6 testiconv: Print the total number of errors at the end -8d2cb1555 Added an entry for the ZEROPLUS P4 Wired Gamepad -cb063db64 Moved XInputPS4 controllers into the PS4 controller section -5b3b7e6e7 Separated PS4/PS5 effects support into individual capabilities -33619aa2e Added support for the ZEROPLUS P4 Wired Gamepad to the HIDAPI driver -e888c99fa Fixed the entry for the Nacon PS4 Compact Controller -4ea64fee9 Fixed manufacturer/product name deduplication for the Razer Raiju Tournament Edition controller -56b91ea72 Fixed feature detection for the Razer Raiju Tournament Edition controller -f6c9b0656 cmake: output libSDL2-2.0.0.dylib like autotools, not libSDL2-2.0.dylib. -4a06cc0f7 wayland: Apply modifier changes to the text of repeated keys -467c82c77 wayland: Add mappings for the Escape and NumLock keys -34f928abb Generate the correct name for ASTRO Gaming controllers -6ddef7c23 Generate the correct name for Qanba and Mad Catz controllers -c2ae2ccc3 Added feature support for the Razer Raiju to the HIDAPI driver -5ea9886bc haiku: Fix when screen color depth was 24 bits, SDL_GetWindowSurface would always fail with 'Unknown pixel format' error -51fefd1c3 Added support for third party PS3 controllers to the HIDAPI driver -5b4c10fc7 Return true from IsSupportedDevice if it's a device that we _might_ support -1d34a5249 Fixed shadowed variable warning -010d3e644 Fixed function prototype mismatch -b7940c29c Allow HIDAPI controllers to override the default joystick type -899a1e7cb Skip PS4/PS5 probe message if we already know it's a supported controller -fa2063fb4 Improved detection of third party PS4 and PS5 controllers -7312b93d3 Fixed crash if a game controller is disconnected while the connect message is in flight -aa2e2f484 Make sure HID devices can be opened before making them available to the application -2857e3c74 Added an entry for the Mad Catz FightStick TE 2+ PS3 -6812f1b5d Fixed the entry for the HORI Fighting Commander 4 in PS4 mode -99e85cc27 Accidentally reverted https://github.com/libsdl-org/SDL/commit/172865ff137532123ec06177119be163ba1811f5 -6cbdc6665 Fixed use of uninitialized 'size' variable (thanks @ozkan!) -0c4594ac7 Improved PS4 and PS5 third-party controller feature detection -399cb2f0d wayland: Only clear the key repeat flag when the repeated key is released -eb25f6c91 Fixed Xbox platform name, courtesy of @walbourn -098a7a043 add missing quotes to the fallback CHECK_OBJC_SOURCE_COMPILES macro -00b67f557 Fix potential memory leak in GLES_CreateTexture -301912a5b Fix: Use WIN_ClientPointToSDL for converting additional mouse coordinates -08a331847 Vita: fix controls on PSTV with opened IME -db225dec4 autotools: stop using AC_FUNC_MEMCMP and AC_FUNC_STRTOD -dc2a682a8 Use the right kind of 0 -246193060 Fixed build on RISC OS -887ae0c6e fix build failure after commit 2a8d00634ddf if strtod isn't available. -2a8d00634 Fixed scanning a negative number as an unsigned value -3f5c46663 SDL_vsscanf: fix an uninitialized warning -216e3f10b Implemented size_t format specifiers for SDL_snprintf() and SDL_sscanf() -c70ffc2a3 Added size_t format specifier test coverage for SDL_snprintf and SDL_sscanf -101306edc Do case insensitive matching on test cases -3b20e0ece cmake: only add -Wl,--undefined=WinMain when building an executable -c83329481 tests, watcom: silence lots of W202 warnings from new vulkan headers. -8598f05b4 Support loading 2bpp .bmp files -1f7a7fd93 haiku: Combine HAIKU_ColorSpaceToBitsPerPixel and HAIKU_BPPToSDLPxFormat -dd51787e0 Fix SDL_PIXELFORMAT_INDEX1LSB test case -43fc6d593 Fix incorrect return value in X11_GetPixelFormatFromVisualInfo -202dfea50 Vita: drop memory defines -7115ceb77 Vita: restore sceClibMemcmp -2e9f5b598 Added support for the HORI Fighting Commander OCTA (Xbox Series X and PS versions) -5fba31f6f SDL_HasPrimarySelectionText: fix -Wunreachable-code-return warning. -efe01faa8 Replaced Blit4to4CopyAlpha() with optimized SDL_BlitCopy() -c0baa6bf5 move SDL_windowstaskdialog.h contents into SDL_windowsmessagebox.c -82b40f097 Fixed runaway CPU usage in the metal renderer when the window is minimized -5892ed437 Fixed Xcode warnings on macOS -910d499c5 Fixed comment typo -172865ff1 Don't enumerate HID devices on macOS if we don't have input monitoring permissions -eb046958d Fixed build warning -8fc133ac2 Updated Xcode project with new offscreen video driver files -e2753e19e Calculate simulated vsync interval based on display refresh rate -208964f03 Reset the simulated vsync presentation timeline if it's been too long since the last present -1663cb419 Reset simulated presentation timeline when vsync status changes -d744aafb0 Added support for simulated vsync in the renderer -339f7a2f6 SDL_windows.h: guard WIN32_LEAN_AND_MEAN and STRICT macro defines. -c23fb235c SDL_render_d3d12.c: Fix uninitialized warning for CreateEventExFunc -d86cb8ec9 SDL_offscreenwindow.c: swap include order of SDL_egl_c.h/SDL_sysvideo.h -5bc85d678 Only advertise the SDL_PIXELFORMAT_EXTERNAL_OES format if we can build the shader for it -6de15ffcd Fixed building offscreen video driver without EGL support -cc9638f2f Regenerated configure -37effc770 Build the offscreen video driver by default. -2970710b5 Pretty print shaders for debugging purposes -bc57d3e35 Fixed OpenGL ES shader compilation on Linux -8a15a738f Fixed uninitialized variable warning -61201e06e Removed obsolete extension definitions -6dec78ed1 fix permissions of SDL_opengl_glext.h -2e24708af Makefile.w32: silence lots of W202 warnings from new vulkan headers -c49faabb6 Sync SDL wiki -> header -ac5b9bc4e Add support for X11 primary selection (#6132) -72fe6cc8f Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry -b5102a551 Fixed OpenGLES shaders failing after renderer has been created -228b9fb51 Update SDL_windowswindow.c (#6225) -929d5b80c wayland: Use the backbuffer size for determining if a resize event is required -4f1b408a7 Fixed button mapping for PS5 controllers -eb0bf2c29 vita: Drop memcmp redirect to sceClibMemcmp. -5b2884cb0 apply commit d0a3570300812bc81888e7a7eadb9311621dc9a7 to cmake side too. -d93649967 regenerated configure script. -d0a357030 configure.ac: fix configure tests broken with Clang 15 (implicit function declarations) -7f415ce58 android: fix some compiler warnings -6dfd7a17e cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB -c3495ec6e Fix value of SDL_HIDAPI_DISABLED -19b13aab9 cmake: mark hidapi as disabled when not found -edfb00c25 wayland: Only commit on move if the display was changed -97a5e7444 wayland: Remove duplicate code -78f843f74 wayland: Remove unnecessary function parameter -69e4c770f video: Make the mode switching function a NOP if mode switching is disabled -768b6728b wayland: Compare against the old scale when resizing -07aea476b wayland: Ignore content sizes from libdecor when hiding a window -6de12b4a0 wayland: Update the internal state when the compositor moves a fullscreen window -a7d345958 wayland: Trigger a commit on fullscreen update -707b561f9 wayland: Enable compositor fullscreen toggling -31979e2d9 wayland: Add missing static qualifiers -1c88a0522 Update Wayland cursors to match X11 cursors -9f4baeea5 Clean up thread local storage when quitting SDL -a3900a751 Lock joysticks when removing a controller on the WGI thread -12413ab31 Lock joysticks while attaching a virtual one -787cd580e silence unused function warning for SDL_endswith() on non-linux. -407157324 Don't try to second guess DS4Windows, let it remap things as expected. -a0f169603 Fixed the CRC in the mappings for PS2, PSP, and Vita controllers -90a480a10 Fixed bug #6199 - Broken clip behaviour on a render target (metal) -0ad8d9d29 SDL_IsXInputDevice() shouldn't return true if XInput isn't enabled -d93f9a778 The new Wii Remote shares the same VID/PID as the Wii U Pro controller -f398d8a42 Note that the Logitech Extreme 3D is a flight stick -0a05b281f Make sure we hold the joystick lock when updating the device state while opening it -d4e0d27c1 Added Wii Remote controller mappings for Linux -a7fde3f83 Allow mapping a controller other than the first one -42cf6d6c5 Don't treat the Wii extension controls as a separate game controller on Linux -87f8b6ff0 Don't mess with the state of the Motion Plus extension on Linux -c28da4892 Fixed build -638452ecf Assert that continuous reporting is enabled, so input timeout is a reliable way of detecting Bluetooth connection problems. -8dfe0e4be Removed checks not needed for the Wii U Pro Controller -4018f35ef Added left and right sensors for Nintendo Joy-Con and Wii controllers -30f55a5d5 Added initial support for the Wii Motion Plus extension -29f4a5ba0 Add GLES2 shader prologue infrastructure. (by @eloj) -4fd6bba25 Refactored for similarity to surrounding code -5ffede35d Fix https://github.com/libsdl-org/SDL/issues/6191 -10e1ef00e Fix compatibility with Windows XP -911524da4 fix DYLIB version inconsistencies and test failures after #6188. -d1fea10c0 Added support for the accelerometer in the Wii Remote -a61b823da Added support for the Wii Remote with the Classic Controller Pro extension -a0f143fc9 Add build target to Xcode project to create an xcframework for iOS (#6188) -8a08d62ff cmake: fix location of SDL2::SDL2test imported library -181265ba7 Removed unused variable -23be3ccc2 Note that we should regenerate configure before running test/versioning.sh -acf397b4d Actually, DYLIB_COMPATIBILITY_VERSION shouldn't be updated for a stable point release -612a86eba HIDAPI_DriverPS3_UpdateEffects: kill bad use of & operator on effects[] -b00e1b1b6 Added support for a ShanWan PS2 -> PS3 USB converter to the HIDAPI driver -fd93f817b Assume that stdint.h is available on Windows with compilers other than MSVC <= 2008 -ef988fe18 Only use CETCOMPAT on x86/x64 platforms -cf040f888 testmouse: Allow drawing rectangles as well as lines -a93258177 testplatform: Add LSX and LASX checks -5cac6c7eb Note that the Xcode DYLIB_COMPATIBILITY_VERSION should always match DYLIB_CURRENT_VERSION -4e98ba612 Set DYLIB_COMPATIBILITY_VERSION to DYLIB_CURRENT_VERSION to match autotools -cbc0d9fac test/versioning.sh also tests configure -03485db0a Android: understand HAL_PIXEL_FORMAT_BGR_565 as a returned value from ANativeWindow_getFormat() (see #6016) -1b4e08b89 Added an entry for the Hori Fighting Stick mini 4 kai -6bcf2c152 Fixed spinning at a very high framerate -47f2373dc Added locking for Android joystick events -e8f6b7503 Added mappings for the ASUS ROG Kunai 3 Gamepad -5770e87cb Fixed regression handling touchpad input with PS5 controllers using the original shipping firmware -253f6a913 Variable renaming for consistency -5002624e8 Fixed crash when extension controllers are hotplugged -7df571ffc HIDAPI_DumpPacket() takes a const memory pointer -b6d23d21d Fixed interactions with the Linux Wiimote driver -0c984360d SDL_hidapi_wii.c: fix a -Wshadow warning -b6b3fb002 This was intended to be Uint8 -5be157b3a SDL_hidapi_wii.c: fix -Wpointer-sign warnings -54356f41a Wii: fixed trigger axis reporting for the Wii U Pro Controller -a35642fa3 Wii: don't bother reading the extension type for the Wii U Pro controller, we already know what it is -c3ecb9d09 Wii: re-request the status if we get a communication error -0c24b46e9 SDL_hidapi_wii.c: fix build in c89 mode. -9874fc4e6 Reconnect as a different controller if the Wii extension hardware changes -5f3cb5497 Updated Wii support with @tellowkrinkle's changes in https://github.com/tellowkrinkle/SDL/commit/2f288e9d5bf596756f92b6c3c983b79dc783eac6 -785d784a9 Set the output value for ParseExtensionResponse() in all return cases -046aaa2d2 Use auto calibration for the Wii Nunchuk thumbstick axis values -8381e008e Handle hotplugging of Wii controller extensions -396411c09 Added mapping for the Wii Nunchuk extension -e19b36d87 Initial support for the Wii Remote with Nunchuk extension -c887cb02a Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers -0ffaf5b87 SDL_hidapi_wii.c: fix build in c89 mode and builds using watcom compiler -397672edf Added SDL_hidapi_wii.c to the Xcode project -c72e14e8f Added initial support for Wii controllers (thanks @tellowkrinkle!) -284769633 hidapi: really fix dynamic / non-dynamic libusb loading. -9d77945d3 fixed linkage libusb not dynamicaly loaded after commit 3f89d1704d -5767dc710 regenerated configure script after commit 3f89d1704 -4ebf34857 updated os2 config file after commit 3f89d1704d -3f89d1704 Fixed building with libusb not dynamicaly loaded -7708bf0f8 Try matching game controller mappings on CRC and version and fall back to no CRC and no version, in that order. -6c2c01e0d Fixed documentation to match function parameter -7861f924e Removed debug print statements -62f2379e4 Try up to 20 times to read the controller type -e5f161bda Restored accidentally removed code to guess XInput device -973a677a2 SDL_xinputjoystick.c: commented out GuessXInputDevice() -42d09a8f4 wgi: refcount the delegate objects -ca915b188 WGI_JoystickUpdate: bounds-check array sizes -cdaafcec0 The Kinvoca Joy-Cons are handled by the Joy-Con driver, not the Switch Pro driver. -b2c3237b7 Added support for the Kinvoca Joy-Cons -92d3fc488 Fixed deadlock when shutting down the Windows joystick system -371735e95 Silence unused variable warning -0e4baf1c4 Don't crash if SDL functions are passed a closed joystick or gamecontroller -675d90c70 Revert "wgi: refcount the delegate objects" -3fe6768ca Sync SDL wiki -> header -40bd4feed Revamped joystick locking -ff233fe30 wgi: refcount the delegate objects assert if calls become unbalanced. -f1e468580 Adding specific SDL_Hint for the dynamic VSYNC -2f08bf231 Added the share button to the Linux mapping for the third party Nintendo Switch Pro controllers -803924b22 CMake: Make SDL_SHARED/STATIC/TEST options -b2ac758f6 Added support for the Hori Fighting Stick Alpha to the HIDAPI driver -3c78ba570 dbus: Use xdg-desktop-portal Inhibit when running under Flatpak or Snap -e8cb4da71 Add utility function to detect if SDL is inside a sandbox -a3ce700de dbus: Add generic internal function to send messages with reply -1153aaae0 Fixed compiling with USB_GET_DEVICEINFO on DragonFly BSD -57cbec109 Added controller mappings for Xbox 360, PS4, and PS5 controllers on OpenBSD -0b8b321f9 Allow the product version to be different when trying to find a controller mapping -761b9d1e4 Use the HID usage for the button as the button number -a9d3935a8 Improved code to get the name and guid for joysticks on OpenBSD and NetBSD -32700294e Don't crash if SDL_CreateJoystickGUID() is passed a NULL name -bac8df4ab Fixed memory leak when out of memory -ffbad3617 Use the correct type for the device_instance -4a800ae14 Created a consolidated define enabling BSD gameport joystick support -42f90c629 Removed unused path variable -b7c1fbf9f WGI: Fix a couple of reference leaks -0db181304 Applied OpenBSD patch -b8af865f1 Fix candidate list size for Windows IME -644a4e5b3 Sync SDL wiki -> header -3cbfd75d0 Re-added the CRC to the joystick guid -b9e3cae57 Add more valid configurations to PS2 audio driver -d7fae3396 Regenerated configure -732e1530e autotools: Require GNU sort -b188a916f Fixed uhid device name for non-OpenBSD platforms -3f93ec470 Add support for OpenBSD's ujoy(4) -9a01eac57 Temporarily disable joystick GUID CRCs -3d516b841 Fixed macOS framework detection in sdl2.m4 -f6c2c22d3 Don't try to use the charging port for the PowerA wireless controller as an input device -f1aa84341 Don't report rumble capability for Nintendo Online controllers -9ce9c2530 SDL_windowsmodes: fix WIN_GetDisplayNameVista source identifier number -32c4996c0 cmake: add SDL_IBUS option to enable/disable DBUS + test sys/inotify.h -c8b56ee5e cmake: add SDL_DBUS option to enable/disable DBUS -032ff6404 cmake: OpenIndiana announces SunOS, which is the former name of Solaris -ce227aa69 wayland: fix build with SDL_WAYLAND_SHARED=OFF/--enable-wayland-shared=no -711846c1f cmake: fix build with SDL_WAYLAND_SHARED=OFF -679582e70 Fixed crash if there are no devices available -111626f4c Sync SDL wiki -> header -e4b85091f Document the range of trigger axes for virtual joysticks -40b249927 Fix building with SDL_DISABLE_WINDOWS_IME -babaa7d2b Fixed PS3 accelerometer values on little endian systems -d1e901563 Update .gitignore -05983fb8e Add Mayflash PC043 adapter -e7332cd81 Fixed zero CRC matching in the controller mapping database -a4f84803c Disable fileXio and patch fio -e6864d17b Update minimal required Android SDK version -2ceea4606 cmake: Enable CET compatibility for x86/x64 targets using VS 16.7+ -00452e47f Adding SDL_GetWindowSizeInPixels for window size in pixels (#6112) -70c781c80 Fixed build warning because of redefining string functions -5f79cd160 Fixed spacing -dd68eb5c0 free drm prop before returning -970344719 Fixed the Nintendo Switch Pro mappings on iOS/tvOS -1fc7f6811 Document that it's not possible to use the HIDAPI driver for PS3 controllers on Windows -5eb0f4328 cmake: always create SDL2::SDL2main target in autotools' cmake config script -dc2ef31c2 cmake: create SDL2::SDL2main target in Apple framework official release -645b0f6ab Enable HIDAPI PS3 support by default on macOS -3ed8e219a Fixed building HIDAPI libusb support on Windows -3d62ebdbf Fixed HIDAPI PS3 support on macOS -6ac6accd3 Added SDL_hidapi_ps3.c to the Xcode project -aaee6e242 Added missing file -7cfef177c Added SDL_hidapi_ps3.c to the Windows projects -b6f96b69a Initial HIDAPI driver support for the PS3 controller -50c5d23f7 Round coordinates so very small floating point values don't turn into 0x80000000 -b6a3d7622 Look up mappings by GUID in two passes: first with CRC, second without -4df64027f .editorconfig: Use correct path for wayland-protocols -277b033e7 Refactor joystick GUID creation -aae566e19 Use SDL_bool -e3ea9b5b7 restore vrr state on exit -450e9857c Use SDL_TRUE and SDL_FALSE -605b50fcd kmsdrm: added missing checks -c1e087394 Added the CRC of the joystick name to the GUID -20715fa01 Fixed build errors -92b3c53c9 Added a hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether to use system mouse acceleration on raw relative motion. -3ce3594e3 Split SDLSurface to public class Add SDLActivity method createSDLSurface -d166f5ef7 Fixed uninitialized variable warning -b2819e43a Send SDL_CONTROLLERDEVICEREMOVED for all joysticks because we don't know after the fact whether it was a game controller. -0e61c106f Don't calculate relative mouse motion if we don't have a valid position -b204db1e6 cocoa: change Shape data to use ObjC objects instead of C structs. -057086e38 wayland: Add high resolution scroll wheel support -d731ad769 wayland: Fix include order when building with libdecor -4ca7b378c x11: Specify windowed dimensions when creating fullscreen windows. -a7066c527 Sync SDL wiki -> header -996eb2edb cmake: add library directories & pthread to imported targets of sdl2-config.cmake -8fb1b50a9 Sync SDL wiki -> header -ffab13964 Fixed minimized window detection when handling WM_WINDOWPOSCHANGED -a204ef50b Use __ARM_ARCH instead of __ARM_ARCH__ -5a3adbfdb Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LED is set on Xbox 360 controllers -52b6899a6 Added hints for more fine grained control over HIDAPI Xbox controller support -bf327b52b autotools: run ./autogen.sh -2b93f6e14 cocoa/uikit: Use VK_EXT_metal_surface in Vulkan_GetInstanceExtensions -029a9b2fa cocoa/uikit: Support VK_EXT_metal_surface -ad874536a kmsdrm: enable vrr on displays that support it -6e9c14e55 Updated to version 2.25.0 for development -8c9beb0c8 (tag: release-2.24.0) Updated to version Updated to version 2.24.0 for release -6e007c36e Add null termination to Wayland_data_source_get_data() if requested -948dbe7d3 Don't include the null terminator in Wayland clipboard text -f6b81125b Always define SDL_COMPILE_TIME_ASSERT as static_assert() in C++ -3bae2d57d wayland: Set the libdecor app ID after visibility calls -51be30f3c emscripten-buildbot.sh: force `-s USE_SDL=0` -8acb4e45b Fixed interactions between mouse capture and grab on X11 -7da74eb5b wayland: Never commit with an undefined window title -99e9156ff testgles2: Fix typo in help text -09b6956dc opengl: Support NV12 textures on GPUs with only 2 texture units -2fcd8f889 Handle SDL_PIXELFORMAT_EXTERNAL_OES in SDL_GetPixelFormatName() -222f1a269 testgles2: Add --threaded option to use a render thread per window -9670d2bb9 Make sure we hold the joystick lock when disconnecting a HIDAPI joystick -26948f01a cocoa: Make SDL_MinimizeWindow() work with borderless windows. -650612fdc wayland: Eliminate excessive calls to SetFullscreen -cc9cc2028 video: Add video device quirk flags and apply them to the video subsystem -0cc8dfdb5 Added SDL_system.h for the declaration of SDL_iPhoneSetAnimationCallback() and SDL_iPhoneSetEventPump() -c6c688ab0 Add SDL_JOYBATTERYUPDATED event to SDL_JoystickEventState() -b72cf207f core: linux: Don't cache the RealtimeKit D-Bus connection -7d5ccae22 Fix memory leak when destroying texture -5b4b4fa1f Decrease audio thread priority when created -cf134235d Removed line wrapping in patch notes -cb46e1b3f (tag: prerelease-2.23.2) Removed unused variable -67cb3874e Fixed potential uninitialized variable usage -74bdb2115 wayland: Don't roundtrip in ShowWindow unless restoring a hidden window -3046d55d0 cocoa: Return an error if GetWindowDisplayIndex() is called too early -f1416ef2b Updated to version 2.23.2 for release candidate -08d17f47b Removed unused variable -be0cf257f Only force the resize event in the DPI changed case -b880709e9 Added libusb hack for Gamesir-G3w which needs the same adjustment as the Hori controllers -1b08cd20b wayland: Add roundtrip in SetWindowFullscreen() to get new size -780b031b1 wayland: Avoid duplicate resize events when entering fullscreen -a28f426ac render: Only update size/scale/viewport when moving to a new display, rather than all window movement. -cfbeb438c fix a bug if XINPUTGETBATTERYINFORMATION is nullptr -f42291ce6 Don't change mouse capture based on touch events -bf925b9ec Fixed build -24f97dd70 Added an SDL error to SDL_GameControllerMapping* functions -9f30d4981 Added note about CRC algorithm compatibility -f35bbe0c3 Sync SDL wiki -> header -3861c557d Added the hint SDL_HINT_MOUSE_RELATIVE_WARP_MOTION -c2db429f9 Added SDL_crc16.c to the Xcode project -e69838e74 add SDL_crc16.c to msvc and watcom builds -b4c4dd84c Added SDL_crc16() to be used in joystick GUIDs after 2.24.0 -a1e34b5e3 Don't send a resize event when the window is resized to the dock icon -879af7b5c Fixed mapping for paired Joy-Con controllers on iOS -5f682e77c wayland: Remove freed display from `SDL_WaylandOutputData->output_list` -aaec244cf Don't run the stdio automated tests if libc isn't available -e49321cec Fixed double-free in combined HIDAPI controller code -6ecfc4069 Sync SDL wiki -> header -d4192850c Added SDL_ResetHint() to reset a hint to the default value -3119d58ff cocoa: Change the new sync_dispatch hint to async_dispatch. -c6c0a8394 windows: If a display's friendly name is blank, try the generic name. -9ff498e78 Make HIDAPI_JoystickOpen() more robust against internal logic errors -bdc7f958f cocoa: Added hint to treat MacBook trackpads as touch devices, not mice. -73d8d0262 Test: Fix Exp base case for Win32. -8e782876b Fixed spamming the controller with reset IMU commands when they are failing -eab27b904 Make sure Switch controller initialization is synchronous and start the input timeout then -b4660e9d8 macOS: Add hint for blocking thread on OpenGL context update dispatch (#5708) -7eb13c21c improve behavior of SDL_SetHint(WithPriority) (#5309) -1db7d33dc Recover from Bluetooth devices temporarily out of range -6d012b2a5 Better fix for rescanning devices after read failure -483a010f0 Fixed accidentally deadlocking the rumble thread with combined Joy-Cons -5d63a3d43 Re-enumerate devices if a read fails -da50f1bd3 Bluetooth devices can recover from over a second of dropped reports -824f2d465 Added a second hint SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED to control the Home button LED on Nintendo Joy-Con controllers separately from Nintendo Switch Pro controllers -8aa6922fe Fixed detecting Bluetooth disconnection on Nintendo Switch controllers -3a9295e14 build-scripts: Removed winrtbuild.*, no longer used. -53141a56b Expand CMake documentation a bit (#5961) -a346c4bbe egl: Add support for SDL_GL_FLOATBUFFERS. -201484ff6 Don't duplicate the serial number twice if a child doesn't set one -d90c0d41c Include the child serial numbers in the serial number for a HIDAPI combined device -523bedac1 Sync SDL wiki -> header -aad2df7f0 Document passing -1 to clear the player index for a controller -8695d982d README-winrt.md: Updates for newer build details. -b599205d0 x11: Don't look up xinput2 devices unless we're in relative mode. -2dd765988 test: Fixed wrong arguments to SDL_SetWindowFullscreen. -07b0ec539 SDL_video.h: Added \since info to new APIs. -55882e43c Fixed invalid read when SDL_GameControllerSetPlayerIndex() is passed a negative player_index -df537a7c0 SDL_GameControllerSetPlayerIndex(gamecontroller, -1) means turn off the player LED if possible -5545be853 The player LED index wraps for PS5 controllers, like it does for other controller types -593d20d9c Removed debug logging -6204ae500 Restart the IMU if the controller stops sending gyro/accel data -56c1481ca cocoa: Don't mark fullscreen-desktop windows as non-resizable. -d58bec72a Fixed Joy-Con gyro axes in mini-gamepad mode -5aa438e80 WGI: fix interop with applications that have their own WGI code QI for Added/Removed events need to handle IAgileObject -ada55c690 Fixed Joy-Con type detection for the Nintendo Joy-Con Charging Grip -a35cff634 Sync wiki -> headers. -a547c185c Fixed crash if uevent info isn't available -7530bd74b Fix right, bottom computation in `SDL_GetClosestPointOnRect` which should be exclusive, not inclusive -98bac00dc Add `SDL_GetPointDisplayIndex` and `SDL_GetRectDisplayIndex` and re-implement `SDL_GetWindowDisplayIndex` in terms of `SDL_GetRectDisplayIndex` -20f9a1b8a Implement SetTextureScaleMode -47ebf0087 Fixed shadow variable warning -d355ea998 Add a way to avoid IOP reset -c5fe234d5 Improve SDL main adding usb drivers -0a307628e Fix wrong mapping in some ps2 controller keys -3f19e36d1 Disable declaration-after-statement warning on Android -0bcbdfe2b video: dummy: Support evdev psuedo-device with no video. -8f05b4f83 Fixed iOS/tvOS build -878259722 Added SDL_GameControllerType enumeration for Nintendo Switch Joy-Con controllers -4f19421ed Fixed build -29265d073 Use SDL_GetStringBoolean() to parse the hint value -8f5932dc2 evdev: Support user-provided devices via SDL_EVDEV_DEVICES in non-udev mode. -f790fc4fc Add contributing guidelines. -198d62d81 joystick: remove unused Xbox Controller Keyboard VID/PID. -2909f6374 Revert "Enable bitcode by default for iOS and tvOS builds" -dd2e31821 wayland: Use libdecor visibility toggle for hiding/showing the window -fbb440d16 Invalidate texture in the UnlockTextureMethod -52bf5b1de Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED to control whether the player LED is set on Nintendo Switch controllers -f810dede1 Fixed comment so script processing works correctly -bdaf9a92a Sync SDL wiki -> header -f600364b8 wayland: Mark window as MOUSE_CAPTURE while a mouse button is down. -e2452ede6 include: Added documentation to SDL_CaptureMouse about auto-capture. -a6179e85c wayland: Don't double-free clipboard sources if ours gets cancelled. -3da131c1c Check if port if closed and open it again -5858c7dfc Fixed OpenGL ES Shaders for systems that don't understand precision keywords -3685c64ed wayland: Round trip after window show/hide operations. -17b329d19 cmake: enable disabing hidapi -a4e6f3ca9 cmake: when there are alternatives, don't use libusb by default -d6a8b43cf Added support for the HORIPAD FPS for Nintendo Switch -a2d3be904 Implement create windows method -4a9ceb7be The HORIPAD S uses the Xbox 360 protocol on all platforms and shows up as multiple styles of controller, depending on what model you have. -28c01955b Fixed button mapping for the HORIPAD S -40b714318 Fixed button mapping for the HORIPAD S controller -16e699a76 Proposing exposing as public api the various arch dependent pause instructions so could be used in app infinite loops. A handful of games do already so we unify it in one place. -43b90484c Retry a little longer when writing to the Nintendo Joy-Con Charging Grip -293d29b78 SDL_x11xinput2.c: fix build for macOS -5907db56f x11: Attempt to deal with XInput2 devices with absolute coordinates. -dfd2c574d Removed unused variable -a2b4f4406 The Nintendo Wii Remote Pro Controller respects the SDL_GAMECONTROLLER_USE_BUTTON_LABELS hint -c84dea094 Fixed detecting the controller type of controllers over USB -ba297f12c Use the Nintendo controller type to determine whether to always use button labels -946f4777f Don't set Bluetooth controllers to wired power level -57c3b2c95 Don't rely on the device VID/PID to get the Nintendo controller type -b6aadb16b Added k_eSwitchDeviceInfoControllerType_N64 to ESwitchDeviceInfoControllerType -bdfb32de3 Added some additional Nintendo controller types to ESwitchDeviceInfoControllerType -ea7fbf794 Update in-flight SDL_CONTROLLERDEVICEADDED messages when a device is removed -5d50fa52d Fixed timeout opening the Nintendo Joy-Con Charging Grip -29cdb2c9c Added support for the Nintendo Switch Joy-Con Charging Grip -a8120104a The Nintendo Online classic controllers and Joy-Cons shouldn't show up as Switch Pro controllers -6e1ee1d4a sort the controller names -8ab9dc8b2 Fixed crash if Joy-Cons are disabled while a combined Joy-Cons controller is open -bcdef4aaf Added separate hints for Nintendo Online classic controllers and Joy-Cons -60d1944e4 SDL_video: Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR -0b9868b02 wayland: Use D-Bus to retrieve the cursor size and theme on GNOME -944111dbc Cleaning up video driver -3f7dda8c7 Remove deinit of video driver -83c117974 Adding SetViewPortCommand -a9f4cda3f Adding setcliprect command -fb1a205e7 Implement blend modes -075f9016f Remove some unnecessary comments -ed301b123 Updating supported format -1d1965b6e Removing the BGR_888 from texture supported -f75c35c07 Add invalidate texture when it changes -5bb965be3 Implement RenderLines -0f0e5b44d Increase size of pool for gsKit events -f758cad81 Remove non needed FillRects function -3cb124b98 Implement RenderPoints -df6ebc256 Implement FillRect -a152e467b Fix "implicit declaration" with memalign -33cbf9acb Fix some mixed declaration warnings -acf48f14a Vertex pointer revision -726180445 Add textured triangle prim -2a70d492f Destroy texture properly -7b0486d49 Try triangles -d5305ee09 Do properly color assign -b48c74a31 Add GeometryQueue -3bfc8f554 Removing some of the QueueCopy functions because they are legacy -be1219bd4 Implement setDrawColor -f1699ce73 Implementing Clear command and texture Update -c472b8dd4 Whole clean around render and video driver -cdf89fde9 Add triangle prim support -88e64f9ae Add natively supported colors -4564e8982 put files at the same line -90e0e5c29 Add point, line and rect support -147a71b97 Finish dummy driver -2660449c6 Add dummy driver -a81aa9929 Add prim video support -46f95a7a5 Create dummy PS2 Video driver -75f34fc5b Sync SDL wiki -> header -307b0b781 video: Add a warning to the docs about using SDL_GetDisplayDPI. -f1390780c Fix use after free when removing Windows audio device -59a104b80 Do not pass NULL to memcpy -42b232075 Fix memory leak of children for combined JoyCon -602b7dd0f Made the window ICMProfile filename per-window -cb107bef5 Fixed crash if all displays have been disconnected -12aa4d565 Added header needed for SDL_Delay() -aeb275149 Poll DirectInput devices to get their initial state -3a6cb7e7c Convert XLookupString Latin-1 text to UTF-8 -0cd5b08bf Fixed infinite loop when SDL_SendKeyboardText() is passed invalid UTF-8 text -954bbdf3a Allow emscripten platform to build without threads -e4cc076a7 Threads are used by many SDL subsystems and may not be disabled. -15bcf58d7 Fixed memory leak in the Windows driver -cf63af8ae events: Don't lose window RESIZED events during SIZED_CHANGED processing. -17f36c105 keyboard: Remove no-op calls to SDL_SetKeymap() -9515fb250 keyboard: Use SDL_SetKeymap() to set the default keymap -8b438f7b5 keyboard: Only send SDL_KEYMAPCHANGED when the keymap actually changes -a10c57dfe evdev: Report touchpad events with the correct device type -9a33c62e1 evdev: Use SDL_bool for boolean types -f9d1f34b6 evdev: Report a unique ID for each mouse device -574db63c8 evdev: Batch mouse axis updates until SYN_REPORT -7f42fb54a Applied DragonFly BSD patch -ce5a23bd5 Applied DragonFly BSD patch -6926ff3cd Applied DragonFly BSD patch -21100006a Don't conflict with usage of stdout as a stdio macro -6e9a606a8 Add more mingw-w64 build workflows -3bdc10f84 Update the list of required Ubuntu packages, and add Ubuntu 22.04 workflows -adb3e1a21 Add FreeBSD builds to GitHub Actions -22f25b03d core: linux: Favor xdg-desktop-portal for elevating thread priority -2241bd669 Added a command line option `--info event_motion` to show mouse and finger motion events -13e0c40ec Added mapping for the 8BitDo Pro 2 controller in DirectInput mode over Bluetooth on Linux -62c831661 Added mapping for the 8BitDo Pro 2 controller in DirectInput mode -41c363f7d Note that the PDP Versus Fighting Pad is an arcade fighting pad -47265f377 Sync SDL wiki -> header -36dfbe5d6 stdlib: exclude mslibc functions using SDL_STATIC_LIB macro -f8aa00d19 cmake: add HAVE_STDDEF_H to SDL_config.h.cmake -83f5bbdf2 cmake: define SDL_STATIC_LIB for static SDL2 library -bdd1d035b cmake: Don't add /NODEFAULTLIB to link flags when building SDL-static -181877ebe Added SDL_hidapi_combined.c to the Xcode project -f3c1194c0 Removed obsolete comment -aee179e46 Removed debug output -d8fd78736 Added entry for the Nintendo Switch Joy-Con controller pair -875b737c6 Added support for the Nintendo Online NES Controllers to the HIDAPI driver -45c1cc817 Compatible with including as -ab967475c Greatly improved Nintendo Joy-Con support using the HIDAPI driver -dfed862a6 Fixed variable shadow warning -2fa2f9ff7 Greatly improved Nintendo Joy-Con support using the HIDAPI driver -def60ce6f Fixed the name of the HIDAPI Joy-Con controller for consistency with other drivers -0f1be9401 Updated mapping for Joy-Con controllers using hid-nintendo -756978a23 Left and right single Joy-Con controllers are mapped as individual mini controllers -4990bd051 Added debug code to show available inputs on iOS/tvOS controllers -65473ae36 autoconf: use ax_compute_relative_paths -dbf794054 Enable capturing raw Xinput2 touch events and use to flag global mouse state as dirty -42165fe8d kmsdrm: slightly better device index hint parsing. -02c874717 math.h does not always provide M_PI -5da85376b stdlib: move all mslibc functions to SDL_mslibc.c -a169259f6 Actually we don't need to unlock to send k_eSwitchProprietaryCommandIDs_ForceUSB since we don't wait for reply -c51464d9d Put the Nintendo Switch Pro controller back into enhanced mode as needed -5c70e45c5 cmake: don't use result of 'find_library' for Android libraries -430c39082 ci: test 'sdl2-config --static-libs' + 'pkg-config sdl2 --static' on ci -4690689a4 cmake: on Apple, don't use find_library for frameworks + use EXTRA_LDFLAGS -613ce7850 Fixed interpreting SDL_KMSDRM_DEVICE_INDEX="" as index 0 -36d456797 CI: Fix CMake workflow. -cc982ea7a kmsdrm: let device indexes be > 2 digits. -c37c1f7ac CI: Make macOS universal build with CMake. -1f276a514 Fix Main Thread Checker warning on macOS -31d38f2f3 WhatsNew.txt: Note that minimum macOS version is now 10.9. -542a4da3d kmsdrm: check SDL_HINT_KMSDRM_DEVICE_INDEX hint in dri_getindex(). -218c3dbb3 cocoa: Don't crash if moving a message box created before SDL_Init. -f789bc7d5 Updated minimum OS targets on Apple platforms to match supported platforms using Xcode 13 -8ff738f23 audio: Report SDL_AUDIODEVICEREMOVED for unopened devices. -5d85c7d30 kmsdrm: Added a hint to specify device index. -20a76b0e3 video: removed unused devindex argument from bootstrap's create method. -cbb3f4ca3 Add SDL_guid.h to the global SDL header -12211df66 hide SDL_GenerateAssertionReport in case SDL_ASSERT_LEVEL is 0 otherwise SDL_PromptAssertion (and SDL_GenerateAssertionReport) can not be eliminated -a423848ea Allow floating point values for SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED -1e492b2f6 Improve behavior of SDL_events_need_periodic_poll() and SDL_events_need_polling() -d9bda89fc Fix updating SDL_update_joysticks and SDL_update_sensors in response to hint changes -0ec5bb4e6 Add missing controller events to `SDL_GameControllerEventState()` -f86ec47f8 ci: don't use ANDROID_NDK_HOME environment variable in Android workflow -4d6650173 Fixed building with 10.9 SDK -3ab1e303e joystick: Refactor and fix a few bugs in Shield HIDAPI driver -b8a554074 testgamecontroller: Add battery reporting -4d8bb89c4 Fixed mouse clip rect bounds on Windows -6bcde52d8 Further adjust implementation of `Cocoa_GetWindowDisplayIndex` -ce8aae141 Fix `Cocoa_GetWindowDisplayIndex` failing and causing a catastrophic crash -041666e6c video: wayland: Don't switch to libdecor path for borderless windows -405d1f659 video: wayland: Roundtrip after falling back to libdecor in xdg-decoration handler -fc2497b10 Revert "cmake: don't add -mwindows to link flags in sdl2.pc" -2fdedd17b Revert 6fa7d62 and 856c99e5 -856c99e58 android: target android-19 by default when building with build-scripts/androidbuildlibs.sh -832754b97 ci: install SDL when built as a subproject -6fa7d6240 ci: use android-ndk r25 (LTS) on CI -d211aaddc cmake: don't add -mwindows to link flags in sdl2.pc -d63a699e0 cmake: by default, disable install target when building SDL as a subproject -8c51cae78 audio/aaudio, audio/openslES: fix -Wdeclaration-after-statement errors -65647b341 SDL_Render: use high precision texcoords in ES2 shaders, when possible -f9beef760 Added support for the Nintendo Switch Joy-Con Controllers on iOS and tvOS 16 -aad7ef6ea Added support for the Nintendo Switch Pro Controller on iOS and tvOS 16 -59963473e Enable bitcode by default for iOS and tvOS builds -20f51b1fd Fixed crash if debug text wasn't drawn during a session -8cd515c32 better wording. -41b89aec1 video: Improve the SDL_WINDOW_ALLOW_HIGHDPI flag documentation -0a1641635 VIta: enable arm neon/simd optimisations -e5698d139 cmake: allow cmake re-configuration after installation of x11 library -192ae1e35 WhatsNew.txt: added line for the calling convention fixes. -9ad3711a6 cmake: only enable x11_xss/x11_xrandr/x11_xfixes when its lib is available -ac9e8691a cmake: only build testnative when X11 is available -aa7a6c0ea cmake: only enable x11_xcursor and x11_xinput when its library is available -8f33de846 cmake: set CMP0054 policy to NEW -a33b5449f WhatsNew.txt: Added audio channel support changes -f3008e4aa audio: 3- and 5-channel formats are now supported -45c3b59d4 audio: Turn off DEBUG_CONFIG logging again. -bec721f08 audio: Fixed dst pointer on channel conversions that grow in-place. -9f56c7cf0 audio: Remove 5.1->X SIMD converters, add SSE mono->stereo. -b83ae9f24 audio: Replaced some debug-printfs with debug-SDL_Logs. :) -f73d07da5 audio: Headers said 5 channel is quad+center, but it's 4.1. -49ec8db5f audio: Generate the channel converter code from a program. -f06cc3e94 audio: "SL" means "surround left" not "side left", etc. -5a0c81986 audio: Add channel convert filter _after_ choosing an SIMD version. -fe1608407 audio: LOG_DEBUG_CONVERT should use SDL_Log, not fprintf(stderr). -257277903 audio: first attempt at rewriting the channel converters. -be3a945a8 Added support for the 8BitDo Ultimate Wired Controller for Xbox -b700a3263 audio, pipewire: fix signatures of pw_get_library_version and pw_init. -6e210d379 audio, pipewire: pipewire_version_xx globals out of dynamic loading -78bad6677 video: wayland: Resize the window before sending the SDL_RESIZE event -53e685168 Fixed declaration-after-statement warning -6ad7fdecc Fixed infinite loop for values bigger than 0x40000000 -986818143 Fixed missing imports in SDLActivity (thanks @guusw!) -2be930141 Fixed comment (thanks @pionere!) -cef1514b0 Fixed some Xcode warnings -e3916993e Added SDL_utils.c to the Xcode project -b299cb3d3 Added a utility function to calculate the next power of 2 for a value -90b86b132 audio: Handle non-power-of-two spec.samples when unsupported -d21a18c65 WhatsNew.txt: Add line for Shield HIDAPI driver -cdf9010a1 Added new audio features to WhatsNew.txt -a09d62e4d directsound: Remove redundant SubFormat copy -c5e408ae9 directsound: For channel counts > 2, generate a dwChannelMask for CreateSoundBuffer -fff34f630 windows: SDL_IMMDevice needed more deinit code from the Win32 path. -37aecda2c pipewire: Use PW_KEY_TARGET_OBJECT to specify stream connection nodes -2201d8025 avoid -Werror=declaration-after-statement after last commit. -24b3efd08 (OpenBSD) Exe Path: Use PWD instead of CWD and use CWD as fallback -883409ea0 Added support for the misc1 button on the Nintendo Switch Pro Controller when using hid_nintendo kernel driver -9a4f200d4 gamecontrollerdb: Linux, add mappings for hid-nintendo driver and more Taken from https://github.com/gabomdq/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt -7e2a99695 Added a virtual joystick automated test -06c7d2265 Added mappings for the HORI Fighting Stick mini 4 on Linux and macOS -27d8cbf02 Added PowerA and Qanba vendors for Android USB device support -e24b971a3 Added support for the NVIDIA Shield controller guide button -c92ddddde Sort libraries by version and pick the shortest symlink (thanks @jpalus!) -b321eae51 joystick: Fix spurious battery empty events when opening a Shield controller -a0d8848ba joystick: Plumb SDL_JoystickSendEffect() for the Shield HIDAPI driver -deca77c16 Regenerated configure -d5b8cf72f Revert "autotools: relax soname pattern for dynamic loading" -36d8460c9 pipewire: Dynamically allocate the buffer for node strings -996cea31e pipewire: Update default audio devices during runtime -60da11f0e pipewire: Remove deprecated configuration key -4fa265339 SDL_GetJoystickGUIDInfo: byte-swap vendor, product and version values. -b8f30c021 SDL_endian.h: check for __powerpc__ and __PPC__ in big endian decision. -5d09b6315 Sync SDL wiki -> header -ecfbdce64 pipewire: Require version 0.3.24 or newer at runtime -2f0816adb Add SDL_GetDefaultAudioInfo. -15d061808 SDL_IMMDevice: Fix a WASAPI-specific leak, clean up Add() -ae105ae1c windows: Move IMMDevice work to common file, implement DirectSound enumeration support -2373da5d9 Exposed SDL_ResetKeyboard() as a public function -739155c44 We want to ship the CMake input file, not the generated file -2c22d7204 Fixed typo in description -cd2dcf54a regenerated configure script. -855363282 autotools: relax soname pattern for dynamic loading -6e712d244 joystick: Add HIDAPI driver for NVIDIA SHIELD 2017 controller -3242265ff joystick: Fix endianness issues in Xbox HIDAPI drivers -2f2164852 SDL_os2video.c: silenced -Wempty-body warning, along with minor tidy-up. -531647efb Regenerated configure with latest autotools release -4aad594a8 Update SDL_qsa_audio.c -c0eada201 Fix assumption that DRI_DEVNAME begins at 0 (#5865) -adf3ce7c0 Don't drop mouse focus on WM_MOUSELEAVE if the mouse is in relative mode; mouse-level is not meaningful for that case. -0253a4502 Fix format specifiers for WPARAM/LPARAM values, they are UINT_PTR. -f5cbc440e Merge commit 'ad0b91302d34336f8af8787fefeeddb553606ec6' into main -001969b32 Merge commit '98411c0d338933e75221cc9c25bf3d5b9ec977b9' into main -b76393f1f Merge commit '6187edd41e318f9c434ba178fb32a8ef2b07e5da' into main -d16a7bb9d Merge commit 'fdb86b8266947e225f058b32ebb77fa949f6ae42' into main -c36025322 Merge commit 'b085c18251bc0298b1a78a621025978702ca07f7' into main -8db084d5e Merge commit '51f75b8b309992252a1e18643e310f2774dec4ef' into main -21437ad3f Merge commit 'fcb99d783090cc15bc04cdebe877ab36a3697e3d' into main -8d7ea151b Merge commit '85bbf8eec9f5e422447807b6cabec8c9ec0859d9' into main -b0c913978 Merge commit '643f9e56d03d8be9adf774c4931fe95742225006' into main -e09233cd2 Merge commit '7d7c5b803cecdb87673b824103e4c1c0b3e29fac' into main -922184028 Merge commit '2a25b69ba580ff63ede93f2b19fa1bca09dab484' into main -c218b55c6 Merge commit '0a600b1df45558c16812995aa2c03f0b5f636afb' into main -89c393306 Merge commit 'cd79e9c4e25ffd15010953b15ae8cbc25b7e7a90' into main -23ff1c605 Merge commit 'f317d619ccd22e60cebf1b09d716d3985359c981' into main -95405d962 Merge commit '0025621b8064f5c72561d5d7b7a1fbdde860c236' into main -4615494f9 Merge commit '391dd0d94b625ae9f7edec2b7514a2f6ba9fb670' into main -85d6d83b6 Merge commit '89624485ccffa9e9b9f1743d431034297daaf251' into main -a9a79ddfb Merge commit 'e9d5060c4c2df66e8d4ef4f748f80e8ef32fc233' into main -91c7329ce Merge commit '209f457ea4eed6a2a3816f42049a17101c049d9c' into main -acc03716e Merge commit 'bdbf90e3fc27c123e699c03f54de3e35e51861dc' into main -6d3ce729a Merge commit '7ac5d616f3732b4d98010331d2ae0a24f883092d' into main -7ef298f7c Merge commit '37a517dc36b7ba8f703c82a408bef6e44e5786ba' into main -6b0e1adfe Merge commit '78089e6598240178b62d6720eec041cc698a5e7c' into main -fbc980030 Merge commit '3e114872e842879c048b2a7808f2cdbfeb2228fe' into main -d514f2483 Merge commit '4f732197947d39cf13b4e3de1811d9bcace3798c' into main -eaeaf55fc Merge commit '24251fb5442296b8066ccc7af6cda430bf2017db' into main -ad0b91302 android: Add missing entries to SDL_category_prefixes table. -98411c0d3 Added include: libkern/OSAtomic.h -6187edd41 Sync SDL wiki -> header -fdb86b826 x11: Don't try to use XInput2 multitouch if not supported. -b085c1825 make SDL_SetTextInputRect take a pointer to const -51f75b8b3 Fix fallback implementations of SDL_strchr and SDL_strrchr for '\0' -fcb99d783 Sync SDL wiki -> header -85bbf8eec Fixed coment after #endif -643f9e56d Rename folder created in test_filesystem -7d7c5b803 Improving mkdir creating parents folder -2a25b69ba Check if GNC is defined before checking its value to solve warns in msvc -0a600b1df Merge testguid into testautomation (#5873) -cd79e9c4e Removed comment text that looks like doxygen commands -f317d619c Xbox GDKX support (#5869) -0025621b8 Add a default URL in testurl -391dd0d94 Don't spin as quickly as possible in the checkkeys rendering loop -89624485c Updated the test bitmap font to cover the Latin-1 character set -e9d5060c4 checkkeys will now render text that is input -209f457ea Generate backspaces for the text we're going to replace when committing text -bdbf90e3f on-screen keyboard newline is reported as an Enter key -7ac5d616f Fixed backspace being delivered after committed text on Android 12 -37a517dc3 Re-enable IME text input on Android -78089e659 Remove unused internal header SDL_sysevents.h -3e114872e joystick: Fix redetection of HIDAPI joysticks after reinitializing -4f7321979 Fixed D3D12 renderer not working with batching, and got rid of the vertex buffer size limit -24251fb54 Fixed checkkeys closing when tapping the screen on a phone -0ad65277c Refactored code to send scancodes for an ASCII on-screen keyboard key -b51330ab4 Merge commit '0ad65277ce7ca025438694caf39f83b80d4eea4c' into main -47c432492 Merge commit 'a054a5f7f2dde31431cf890e421886faacdf5f54' into main -d54931e28 Merge commit '6a2e6c82a0764a00123447d93999ebe14d509aa8' into main -f0313044b Merge commit 'db7dfece16565352224ac534d6975b85f12d962f' into main -55840423a Merge commit '43555bd1a9f8188b6f83a7c7d45861a35df6a54b' into main -11c6c8c06 Merge commit '1d1fb95a61e6815ba08cd25ab954165a4d693e96' into main -3adf6bacd Merge commit 'f815580dde2de9667af5ca8b43f9590f2fac1aab' into main -d3b2e62e8 Merge commit 'd4e6047e3cc73698a0d6b3b4a2ce7b9b5e025b2f' into main -302a863ad Merge commit '7a02dcf3e662d2a087908a8b378872aee8c83587' into main -e022b12a4 Merge commit 'cddf095a16263734bef07cefbbac1a42bf70d171' into main -c2ba2e230 Merge commit 'b6f1c91862ae5b260f80cca2968cd9baefe41523' into main -ca18ab00a Merge commit 'cbd01874759dad39718e1496d241c4ae5eceaff1' into main -c75e780f8 Merge commit 'f25b4b27743d4b018393a3083e9d9061ab5ce07a' into main -48f2d2f83 Merge commit '6c536afdb7bdc9cece4152c7e1f9a18306976b46' into main -241755f4f Merge commit 'e4a80875519617775184e9f6be5ede51772850fa' into main -9bc2021c9 Merge commit '972391763790134796a353487faeadd451ccc046' into main -d800f95dc Merge commit '0a9a0a79e0a40a2843c1f6d33f7fa45bb1042fc0' into main -2170301c0 Merge commit '3b191580c392b7a2f7ee7c8a586020817dc7dc05' into main -21196f423 Merge commit '314bb5a1ed1a90276597b9aefef225a7c5027845' into main -b733e38c3 Merge commit '7fd46ec581d45ec3fea3fcfe226bbc2ae824fc7c' into main -3d10cc152 Merge commit '84d69da4e173365ddfdfe0a77ac5bc79b25f1972' into main -a4c1cf732 Merge commit '1f3ae75228e46d440e98bc13bbb8ffcfafcee920' into main -cc3563c76 Merge commit 'b2f07d94d2627b57226543981c5210a3f7642f4e' into main -ebb191f34 Merge commit 'ebe4f47f2b2e97deed78faa6c3e90ff51cd499a4' into main -e9908d840 Merge commit '51c6488f97f98aa3d216092c01d9601008be0fbf' into main -af53db110 Merge commit 'fa39f73552dc9dfd6a6a45aa499ac213f1907ef0' into main -dab3ba1fc Merge commit '787dc260a8a788a0d2319fe76f7756e0bc607e03' into main -892518f8f Merge commit '76f40e2b3b685b18a7f8db64bf425d3c87ddc896' into main -b85118f56 Merge commit 'ca30936314e1867c143475ea278988f82af95155' into main -43f55e6f0 Merge commit '118a2189fb203dedc274848833b5431273cb1db5' into main -02cbf8b70 Merge commit 'bd49696133eded6f441b20391b5bb4376b3834d8' into main -808edbcdc Merge commit '6dcb2868b03b21a4cfacf0d5804ee07cfde0a0c7' into main -88816d65d Merge commit '78a37516593dbcedb2b0d1a5177f37c348dbb528' into main -233e88f70 Merge commit 'c61367c2731dca1e7ea0e881f69d96317c0aaaab' into main -048da613a Merge commit '965c16453785279d921b584c92f14bd0ef034730' into main -4ff3d844a Merge commit '3617691fe0cb3b29ffcdeb5567d85126de91ba15' into main -c01ad8e24 Merge commit 'b3159714dbb1afe1de9a32e86f9ed8e40ae543af' into main -7d0ce0f71 Merge commit 'de409d2a816745b3eb02e780bc7af070a2cc8449' into main -327643676 Merge commit '2f321fb73c6408b368a20bb08bd08e6265e6ce38' into main -ec1ad6b2e Merge commit '3b0c86a36fd97d4fddc8d025d0473a7a6c6de3ca' into main -6b1199267 Merge commit '5f4e9fb9b3b53897cb9ed43791e2180a942b3377' into main -3420751c4 Merge commit '485b1037b061edb4e9768b6f3b08c35454a621ce' into main -fe00c1945 Merge commit '3e1021239a29b377fec7af9b45cd49b5d42531ca' into main -f716a9a27 Merge commit '4ad4fe67c7f832ec6e8e8a5c04b030691753f39a' into main -a054a5f7f Improve SDL2 main, adding memory card and usb drivers -6a2e6c82a Add SDL_HINT_DIRECTINPUT_ENABLED (on by default) -db7dfece1 cmake: fix name+location of SDL2.dll in configure generated SDL2::SDL2 target -43555bd1a regenerated configure script -1d1fb95a6 Removed double va_end() -f815580dd Fix SIGSEV in SDL_error. Re-apply same pattern on this uncompiled code (see #5795) -d4e6047e3 Fix SIGSEV in SDL_error (After removing the limit on the size of the SDL error message) (see #5795) -7a02dcf3e Add note to GDK docs about XCurl.dll -cddf095a1 'Refactored by Sourcery' -b6f1c9186 Fixed Watcom C build -cbd018747 Removed the limit on the size of the SDL error message -f25b4b277 Style: Flip `if` statement. -6c536afdb Fix C89 declaration for macOS modules. -e4a808755 Initial Audio driver -972391763 Use proper header for OpenBSD PPC CPU detection -0a9a0a79e Sync SDL wiki -> header -3b191580c Windows GDK Support (#5830) -314bb5a1e Fixed bug #5850: Android EGL_BAD_ACCESS because of viewport command while turning the screen off/on. -7fd46ec58 Initial PS2_Joystick implementation -84d69da4e Initial SDL_ps2_main implementation -1f3ae7522 Add ps2_drivers dependency -b2f07d94d Vita: create rendertarget color surface with same format as texture. Fixes #5844 -ebe4f47f2 Fixed __VA_ARGS__ in gcc when no args -51c6488f9 Add support for SDL_render_d3d12.c to compile in C++ mode -fa39f7355 cmake: add generated files to a custom target (#5851) -787dc260a autotools: properly enable the version static assertions -76f40e2b3 cmake: remove stray debug line -ca3093631 cmake: check and use clock_gettime by default on android -118a2189f build-scripts/wikiheaders.pl: ignore the 'FrontPage' wiki pages. -bd4969613 cmake: use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR (#5834) -6dcb2868b cmake: avoid use of possible non-available XEXT_LIB -78a375165 cmake+ci: fix+test sdl2-config + sdl2.pc for all supported platforms -c61367c27 cmake: do list(APPEND SDLMAIN_SOURCES) -965c16453 cmake: let cmake test script make use of the installed cmake scripts -3617691fe cmake: install Android.mk files for ndk-build -b3159714d cmake: set HAVE_STATIC_PIC for correct summary -de409d2a8 cmake: remove spurious UNIX_SYS in dep_option -2f321fb73 cmake: disable UNIX_SYS by default for Android -3b0c86a36 Merge pull request #5835 from fjtrujy/psp/improveJoystickDriver -5f4e9fb9b cmake: use add_custom_command to copy include files -485b1037b cmake: copy all headers to the build directory and exclusively use that -3e1021239 cmake: also add the recently-added include folder to the public interface -4ad4fe67c cmake: install generated SDL_config.h -2b41f497d Improve Joystick removing semaphores -c3a5e4aa7 Adding GetGamepadMapping to Vita Joystick driver -7adb08a79 fixed SDL_BlitMap typedef redefinition errors -12b371ee0 x11: Don't send diplay-add events for displays connected at init time. -c11bdeeb6 wayland: Round fractional backbuffer sizes halfway away from zero -ff735b3c0 SDL_Surface: don't implicitly declare struct SDL_BlitMap. -d460000b4 cmake: use add_definitions for compatibility with cmake 3.0 -9914e87fa Also send DPI change when expected resize. -af733c7a3 Fix DPI-raised SDL_WINDOWEVENT_SIZE_CHANGED with event callback. -2316e5682 SDL_windows.h: match WINVER value to _WIN32_WINNT. -22a29321e tweak _WIN32_WINNT value for shellscalingapi.h present but no d3d12 -bdcdbfc75 Enable D3D12 detection when using mingw-w64 with cmake too -48a232969 wikiheaders: Strip `[[wiki hyperlink]]` from See Also fields. -abe38bca3 Support SDL_AUDIODRIVER set to "dsound", which was used by SDL 1.2 -a8d41b3b4 check for shellscalingapi.h presence instead of WINVER >= 0x0603 -5f6d0abeb SDL_SendEditingText() has int parameters, so use that type for parameter calculation -00b95e989 Fix read of uninitialised variable -d51a8f530 cmake: freebsd: Fix -Wformat warning during tests build -12f14bdbe Fixed digit count in sscanf, e.g. "%1x" -906589751 Added test for digit count in sscanf, e.g. "%1x" -28ecdc6bc No need to cast from char* to const char* -53e307050 List the available tests if the filter didn't match -e7ad511b4 cmake: fix location of include dir for SDL2 VC sdk -eb7e29a8b Fixed crash when the joystick product name isn't available -83b766174 build-scripts/wikiheaders.pl: ignore "Category" wiki pages. -20c622f09 build-scripts/wikiheaders.pl: Allow a wiki preamble. -adc687587 Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!) -b0e827fb6 Enable improved rumble emulation on DualSense(tm) Wireless Controllers with firmware version 2.24 and newer -b19099d55 cmake: use find_package(SampleRate) to find samplerate + allow targets -59fb7acbf (tag: prerelease-2.23.1) Enable D3D12 detection when using mingw-64 -1eb247fa2 Fixed building D3D12 renderer with latest mingw-64 -b004133f0 Updated to version 2.23.1 for pre-release checkpoint -68beedde9 SDLActivity.java: Compatibility fix for debugSource -5c1b7f6ea Added instructions for updating Makefile.w32 for release -5d5488ca7 Fixed test/versioning.sh on macOS -269fc1bd7 Added more details to WhatsNew.txt -a5949d7b0 Fixed crash on Windows -16f55fbdb Separate the controller protocol from the controller style -94f608089 wikiheaders.pl: changes to make this usable with external projects. -017e23700 Removed the Qanba Obsidian Arcade Joystick from the unknown controller list -a9cf313ee Added the Qanba Obsidian and Dragon Arcade Sticks to the arcade stick list -bfe81a0c0 Added the name of the Qanba Obsidian Arcade Joystick in PC mode -a6a2cdbd7 Added the name of the Qanba Dragon Arcade Joystick in PC mode -fc78d0ff3 Fix Compilation CI -6b03c1adf Add filesystem driver -52f00833b Add Thread drivers -217d3a6da Add systimer support -7343ece80 Define available PS2 RAM -e4409f673 Include SDL_Log driver -f0a05ed47 Add some PS2 flags -580416d3c Initial CMake configuration -273d9e464 Fix atomic support for PS2 -161a316df Add PS2 readme -52f8d0357 Add PS2 CI config -5b4f53bc0 Added SDL_memset.c and SDL_memcpy.c to Xcode project -cd8f57ee4 cmake: freebsd: Don't REQUIRE libunwind.pc on FreeBSD -ae7446a95 stlib: Extract SDL_memcpy and SDL_memset to its own file respectively -a5d338bd2 Added support for the Qanba Dragon Arcade Joystick (PS3) on macOS -7d7c48302 Use python3 for sort_controllers.py -72fea0ed6 Added support for the Qanba Dragon Arcade Joystick -6bd3e0b18 Test: Check sqrt and atan against the epsilon. -cee47a9eb Test: Use inexact helper for log10 regular cases. -a52b8580f Test: Tidy up test descriptions and documentation. -4d7f12f6b Test: Add Atan2 tests to math suite. -8ebe640a3 Test: Change inexact tests to use an epsilon. -62fd6aad3 Test: Add Atan tests to math suite. -6a6e93bc2 Test: Add +/-0.0 tests to Acos. -6b4b6d8e5 Test: Add Asin tests to math suite. -43f6983a2 Test: Add Acos tests to math suite. -95f6edb9a Test: Refactor trigonometric tests into a helper. -3b9f47b85 Test: Remove early return in pow test. -6be430c7f Test: Add Tan tests to math suite. -af79b46f9 Test: Add Sin tests to math suite. -b06eda55e Test: Fix math suite build on Win32. -adb445eaf Test: Add Cos tests to math suite. -a864180cf Test: Add float header for FLT_RADIX definition. -7a55fa4e5 Test: Add Scalbn tests to math suite. -afd812374 Test: Add Sqrt tests to math suite. -c389c32d3 Test: Change assertion type in range tests. -5ecc75a4f Test: Add Pow tests to math suite. -6349ad731 Test: Add Log10 tests to math suite. -7041bbaf0 Test: Add Log tests to math suite. -dd30ff2e3 Test: Add Exp tests to math suite. -aacb5e177 Test: Extract range test parameters into defines. -75b9aab6c Test: Add Fmod tests to math suite. -0dbdf90e7 Test: Use SDLCALL in typedefs instead of ifdefs. -2ec48b36b Test: Fix OS/2 compilation in math suite. -43c22e5d1 Test: Refactor math suite duplicate code. -3d720ba38 Test: Refactor math suites edge cases. -a530fc919 Test: Add Copysign tests to math suite. -48a406db4 Test: Add Fabs tests to math suite. -2130dff0f Test: Add Round tests to math suite. -324b96153 Test: Add Trunc tests to math suite. -b09266a4e Test: Add Ceil tests to math suite. -9eb09d239 Test: Refactored and formatted math test suite. -0f630e917 Test: fix indentation in Makefile.in. -4e3a26e27 Test: Add math test suite to autotools. -e64acb619 Test: Fix for-loop for OS/2 in math suite. -a3a852e91 Test: Unrolled the array of cases in math suite. -c23216bf4 Test: Removed static from local variables (Math). -6208ed860 Test: Add math suite to Visual Studio solution. -6646edf69 Test: Fix Windows build for math suite. -d9ff6380a Test: Add math test suite to Watcom Makefile. -7389eba94 Test: Fix C89 declaration and math include. -b3faebb8a Test: Add Floor tests to math. -b72b5d0f9 Test: Add math automation test suite. -86f50ae7d ci: Test cmake build script on Android -18206446b cmake: collect SDL_LIBS as list + export PKG_DIRECTFB_LDFLAGS -b5f1fe500 cmake: Allow integers for SDL_ASSERTIONS + fix -DSDL_ASSERTIONS=0 -97711e99f cmake: no need to explicitly add a depency (target_link_libraries does this implicitly) -ad21c7040 cmake: fix CMP0072 warning by prefering GLVND -c90e1ec3e Remove redundant sizeof "size_t" check -12f9bcd2f Build tests for all CMake platforms on CI -f8ae3ef1e wayland: use libdecor resize edge enums for libdecor -163f66974 minor tidy-up to configury. -960b86dcb update SDL_render_d3d12.c after DPI scaling/highdpi support patch. -6d1dfc832 cmake: make sure SDL2::SDL2 is always available -69df26a0d ci: test clang+MinGW on CI -32df5aeb3 Check result of FindLibraryAndSONAME before use -8a2c6b604 cmake: don't link to libibus (not needed, I think) -c950018fe cmake: don't link to libdbus (see note in SDL_dbus.c) -fb7c03ebb cmake: install LICENSE.txt -afc350eef cmake: do 's#set(SOURCE_FILES #list(APPEND SOURCE_FILES #g' -ded6c22ef render: Corrected wrong SDL_memcpy() sizes for viewport, cliprect. -e427e80bf wayland: Use the output descriptions from xdg-output when available -714502d37 minor windows warning fixes. -e97498599 test: Add test coverage for surface size overflows -507ce36d8 video: Note unused SDL_surface creation parameters for removal in SDL 3 -535fdc3ad video: Detect and reject nonsense SDL_surface dimensions -8c9f7104e video: Harden calculation of SDL_surface pitch and size against overflow -6606ab8b5 Introduce EXTRA_TEST_LIBS variable for test-only libraries -e99a7144f Use list(APPEND EXTRA_LIBS) everywhere -851eecdf4 Don't add extra build linker flags to SDL2_static -63b3b9a55 Fix some typos in diagnostic messages -c95edd945 Fixed spacing -33f8a4ddc Sync wiki -> header -6258f2ef3 Fixed spacing -732153797 cmake: Fix static linking to dependencies with "-" in library name -bdf141335 autotools: fixed d3d12 detection result report. -9a0367675 windows: Get better name for the physical display, for Vista and later. -1963cccce CMake: Fix XCode CMake config file. (#5787) -b84ce0d48 Fix typo -fd8cafc72 Rename variables in SDL_egl.c to be more intuitive -e09551bc8 Fix WinRT build -283089574 testgles2.c: refresh cached SDL_GL_GetDrawableSize() on SDL_WINDOWEVENT_SIZE_CHANGED, not SDL_WINDOWEVENT_RESIZED -ab81a559f Windows DPI scaling/highdpi support -df36f926f testautomation: add video_setWindowCenteredOnDisplay test -448e05e3c add DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED define -1b797957c SDL_windowsvideo.c: add HIGHDPI_DEBUG ifdef, print DPI awareness at startup if defined -1488c4081 WM_DPICHANGED: remove some dead code, add comment -60ef11b3c Fix Watcom compile errors -d3b970d4d HighDPI: remove SWP_NOSIZE in WIN_SetWindowPosition -51ebefeee Support PMv2 DPI awareness, add SDL_HINT_WINDOWS_DPI_AWARENESS -81d3adddb events: Fix spurious early returns from SDL_WaitEvent()/SDL_WaitEventTimeout() -b3260e7eb Remove macro definition for SDL_ERRBUFIZE -4a3277b0f wayland: Always commit window constraints before entering fullscreen -78698a0ba wayland: Use a separate frame callback for setting the surface damage region -146ea9b0e wayland: Only set the surface opaque region if EGL transparency is disabled -a20516d4f wayland: Swap emulated mode dimensions in more cases -e1c835043 wayland: Add a hint to disable video mode emulation under Wayland -e9d3dcea7 wayland: Unify integer and fractional output scaling -4fde7dd83 wayland: Refactor the Wayland mode emulation and viewport logic -ce5763230 The backlight event is "change", not "add" or "remove" -68544be44 Added support for the Nintendo Online controllers -b75cd2b36 x11: Force window back to expected size after SDL_SetWindowBordered. -51db77544 updated windows watcom exports file after last commit. -9202df047 Implemented SDL_GameControllerGetFirmwareVersion() for HIDAPI PS5 controllers -e5a3acd6b ime: fcitx: Retrieve cursor position and selection -dd7bed9eb ime: ibus: Retrieve cursor position and selection -d11702ce2 ime: wayland: Make use of `SDL_TEXTEDITING_EXT` -74bcc5a0a stdlib: Add `SDL_utf8strnlen` -c7f410380 Special case for k_eControllerType_XInputSwitchController in the raw input path -e6cb08223 Fixed the default mapping on Windows for the HORI Fighting Commander -0a93ac129 Work around the lack of clock() on PS Vita -25367efcb Add missing library needed for locale functions on PS Vita -6f69bbc54 D3D11: Fix SDL_TEXTUREACCESS_TARGET not working if SDL_HAVE_YUV was 0 -8303c5d0a Added missing SDL_zero for renderTargetViewDesc -6bd49fc00 revert mode changes from commit d58d637ac -d58d637ac Added support for the Qanba Obsidian Arcade Joystick on Linux -526f41758 updated configury to silence ac2.7x warnings with minor rearrangement. -51d6d60f1 Updated to autoconf 2.71 -e201f338d ci: enable CMake test for Emscripten -0fcfaf9e9 emscripten: use MAIN_THREAD_EM_ASM for the fb/cursor proxying -b9c2ad839 Added additional check for HAVE_D3D12_H and missing SDL_VIDEO_RENDER_D3D12 in SDL_config.h.cmake -298ad937c cmake: wrap SDL_STATIC_PIC in double quotes (aka never trust user input) -ad272ac69 Set POSITION_INDEPENDENT_CODE property on SDL2 for CMake 3.0 -e8d89ce28 < should be <= -7a335df9c Updated CMakeLists.txt and configure.asc/script so that it checks for the required Windows SDK version before it enables the d3d12 renderer. Also fixed reported warnings in some builds. -5abd67691 Allow empty default values to the dep_option macro -2cc226043 Fixed bug #5768 - SDL_RenderGeometry's software backend failed to render when texture coordinates are reversed -168b97ca3 Updated Xcode project with SDL_guid.c and controller_type.c -7e71d08ab regenerated configure script. -ef4e0e921 Sync wiki -> header -408282182 DirectX 12 Renderer (#5761) -63e12cf60 SDL_windows_main.c: replace CopyMemory() with SDL_memcpy() -ec0204d24 x11: Don't use GetXftDPI() when XRandR can tell us the DPI per-output. -61115aebd update dynapi after the loongarch support patch -7cd165e2d Sync wiki -> header -50d8642fa Add optimiztion function with LSX in LoongArch -17f63e53f Add loongarch support -9703f2366 SDL_SetHintWithPriority: actually, this test is good. -30cf26e08 Show the firmware version in testgamecontroller -5f25a6ea7 Revert "SDL_SetHintWithPriority: better test if hint value has changed." -c391bdc16 SDL_SetHintWithPriority: better test if hint value has changed. -55a07d91f SDL_SetHintWithPriority: Allow setting NULL hints. -a236bf4f2 x11: Hook up display hotplug notifications. -6b4bd5a75 test_harness: Report if zero tests to run. -46624b4e1 Removed two distracting gcc-11 warnings -3807e9502 Sync wiki -> header -3a20274dd Refactoring: move GUID operations out of Joystick -4e07d4722 Build warning fixes for gcc-11.3 -b359282a5 regenerated configure script -20c76599f Fix MinGW SDK redist: sdl2-config.cmake needs to set SDL2_FOUND -fd3f38102 Initialize SDL_STATIC_PIC from CMAKE_POSITION_INDEPENDENT_CODE -65a3453b7 build: Compile with large inode number support where possible -3604ae1d1 Sync wiki -> header -423141bfc Added a function to get the controller firmware version -d6143ab36 Add -Wl,-Bstatic to "sdl2-config --static-libs" output -799d39a30 Make the sdl2-config script relocatable -142a3630d updated watcom makefiles after 17410887d05495c328d5cf8c2dd28cb2bafafa9b -17410887d Separated controller type data into a C file -2b59cb900 Added mingw package support directory to the distribution archive -f858d1305 ci: test installed packages using CMake -96e3733a1 cmake: make Xcode's sdl2-config.cmake compatible with the one from autotools -5a8ccf452 cmake: make VisualC's sdl2-config.cmake compatible with the one from autotools -5ec2d46f4 cmake: make SDL2Config.cmake compatible with autotools' sdl2-config.cmake -9ff8f29f4 cmake: Add mini-SDL2 CMake project to test SDL2 prefixes -67792767f cmake: Add CMake configuration files, meant for the prebuilt MinGW SDK -246f3ba52 cmake: rewrite autotools' sdl2-config.cmake.in with IMPORTED targets + no more -lmingw32 -6f3474db2 autotools: export relative path of an installed sdl2-config.cmake to the prefix root -8e13cc309 cmake: add 'compatible interface properties' to allow enforcing SDL2 sharedness -1087eaad7 cmake: install SDL2::SDL2test when configuring with SDL2_TEST enabled -ae2cc29f8 Make sure initial state is set correctly for the D3D renderer -345efdcb1 Wait for all the threads to actually finish before exiting -847539afe wayland: Only call libdecor_dispatch() if we've loaded libdecor -7fa46ec40 The Google Pixel fingerprint sensor also shows up on Linux when running on the phone -3c3c02518 Add Compatible Interface Properties to VisualC and Xcode SDL2 config file -4809bd356 Add documentation to autotoo'ls sdl2-config-version.cmake.in -774c50174 Add CMake section to the Xcode ReadMe.txt -423c7ef85 Don't set SDL2_LIBRARY, we need the Framework configuration on Apple platforms -37ef6a765 Use a full path for the framework header include path -f73c25648 cmake: attempt to use framework in Xcode's sdl2-config.cmake -4c3d1d32a Use INTERFACE_INCLUDE_DIRECTORIES in Xcode's sdl2-config.cmake -7c2a6ea5f Removed 64-bit check for Apple -e30b9993b Fixed warning about location of CMake support files -01492a24f Added CMake package support files to the SDL framework -2c591e408 Add CMake configuration files, meant for Macos framework -8ac8230bf Add CMake configuration files, meant for VC devel package -964e979d0 hidapi: Allow disabling libusb support at runtime -c87b0142f Fixed building with C89 compiler -4ddf85b1d Sync wiki -> header -f78f77523 ime: windows: allocate space for null terminator -fd2a2eea1 Fixed declaration-after-statement warning -d2c4d74dd Fixed build with MinGW-64 windows.devices.power.h -bd22ca762 Revert "Workaround for compiling with MinGW-w64" -efdf43aa9 Workaround for compiling with MinGW-w64 -001d2e2f6 Disable formatting not supported by Visual Studio 2019 -c02cd2035 Revert "Disable formatting not supported by Visual Studio 2019" -26a75add3 Disable formatting not supported by Visual Studio 2019 -bef9f2b2c Don't trigger device notifications when Steam Deck backlight changes -5968f3d82 gen_audio_resampler_filter.c: Precalculate loop-invariant bessel(beta). -822cf0b34 updated config.guess from mainstream. -347659e8c riscos: Ensure that last_mouse_buttons is initialised correctly -cb43eb43f riscos: Ensure the mouse focus is set when creating the window -6eda520f6 riscos: Add a basic implementation of SDL_ShowCursor() -4c711d2d4 testcustomcursor: Allow running without custom or system cursors -22d6e09a8 Don't try to call hid_ble_scan() if HIDAPI is disabled -195ca499c include/SDL_video.h: You can google it. -7ce311bea include/SDL_system.h: Fixed a link that was still hg.libsdl.org -bed96482f wikiheaders.pl: Deal with links better. -96a04cb91 wikiheaders.pl: Don't wordwrap truly massive words. -b28d304b2 Only include controller_type.h in SDL_joystick.c -a8e754879 Sync wiki -> header -9220f92ba hidapi/libusb/hid.c (read_thread): mark as SDLCALL -179765561 Sync wiki -> header -5dee08213 updates to windows watcom makefile: -412ceb84d video: Only check major version in SDL_GetWindowWMInfo -aeeccb5d1 CI, OpenWatcom: remove workaround now that setup-watcom is fixed. -d5e58049a Don't specify a specific SDK when building for UWP -12cc636c8 Make sdl2-config prefixes configurable again -6da6a6cba Make sure Objective C files are built with the same flags as C files. -e97b50624 Need SDL_stdinc.h for _SDL_HAS_BUILTIN -626a3c5ef Use _SDL_HAS_BUILTIN() instead of __has_builtin -f4fc4719a fix CheckCOCOA on modern CMake -1f48f8cd2 SDL_TriggerBreakPoint update using builtin instead of assembly versions if available -fe46569cc Fix potential memory leak in SDL_AddHintCallback -e4b5afa57 fix unused variable depending on YUV format -e59cba95a add libdecor_dispatch -1a1cc8028 Use a tagged version of OpenWatcom in CI builds -dc62fec5e audio: Fix locking in backends that manage their own callback threads. -a95f5a792 test: Use install(1) more portably -848d2008c test/Makefile.w32: fix minor typo -b1cf32297 Fixed HIDAPI PS4 controller being picked up when running under Steam Input with PS4 configuration enabled -83ae1b498 Convert the test executables to AIF in RISC OS CMake builds -d2b596589 Remove extra path separator in GetNearbyFilename -9edd411a8 x11: send move/resize events when waiting on fullscreen change. -b798e49c9 Fix build warning with MSVC -b0a27cb1d Avoid unintended float -> double conversion in SDL_FRectEqualsEpsilon -f0566702c Fix enabling SDL_DYNAMIC_API in OpenWatcom builds -3d52d0497 Remove the '_' prefix from symbol names in Windows OpenWatcom builds -aa51a9791 Run tests with OpenWatcom on CI -9dfa000bc Initial support for building for Windows with OpenWatcom -5ef36ead0 Add some missing tests to Watcom builds -306687312 Split the common code in test/Makefile.os2 into a separate file -5669743a4 Make sure SDL_CaptureMouse() is only called on the main thread -efa2e6a1e SDL_thread.h: use SDL_ThreadFunction for SDL_CreateThreadWithStackSize -15781a698 dynapi: fix SDL_DYNAPI_PROC for SDL_iPhoneSetAnimationCallback() -f5cf0e37f Remove unused and duplicate defines from SDL_dynapi_overrides.h -03ebc4397 dynapi: add missing SDLCALL for SDL_TLSSet's dtor param. -973424d9c Add for-each macros to clang-format. -501a49918 Add clang-format on/off comments where necessary. -c6a77971b Add a clang-format config file. -0e6d4baa6 Fixed compile warning on gcc 11 -c7dff3a22 Attempt to get the X1 and X2 button state on X11 by using the current event state instead of direct X11 query. -57130b75a Revert "x11: get x1/x2 button state in GetGlobalMouseState" -47f1cb550 Fixed picking up the correct mapping for virtual controllers on Android -f7b774a7e Fixed build error on Linux if HAVE_INOTIFY isn't defined -f9a9d3c8d Also restore previous capture window if CaptureMouse() fails -7044452dd Handle recursion in SDL_UpdateMouseCapture() -dbd54dd70 adjust dynapi after commit 0cca71a changes for SDL_qsort and SDL_bsearch -e19a9a793 Fixed a message box getting the mouse capture state out of sync -622311c01 Add extra XInput structures and defines for older SDKs -c8eea0207 Fix C89 build errors in Windows builds -0cca71a84 Use SDLCALL for callbacks in public APIs -ffab9f46b Avoid clashing with system headers when redefining standard library functions -4cb57bf19 .editorconfig: Automatically configure multiple text editors -06aca7eda Fixed warping back into the window when gaining focus with warp relative mode enabled -0ffd98597 Check to see if the file exists in the base path before returning it -c4cf63f81 improve test-configuration - testkeys 'NEEDS_DISPLAY' - 'disable' relevant tests in case DUMMY audio/video is disabled -b44241ab2 Don't send mouse events when warping in relative mode -ea1525322 fix GetNearbyFilename - fix memory leak due to variable 'base' - fix usage of uninitialized variable (path) -8c5bda6ac Vita: remove Vita-specific RWOps code -aa6ea607d Fixed whitespace -56665e1d9 cocoa: Try to use better system cursors. -a12ffbd53 testcustomcursor: Log the current cursor type as it changes. -e9c7b5191 macOS: Fix reference counts of internal window data. -a48004952 disable dynapi for os/2, at least for now. (see bugs #5667 and #5669.) -ec1a0f62d SDL_malloc.c: workaround calling convention issues for real_xxx procs. -1f2a24168 Add new virtual joysticks to the end of the list -3c3ccb1d4 Fixed crash if a virtual joystick was disconnected -2317a96c8 x11: Use XC_top_left_corner/XC_top_right_corner instead of XC_fleur. -48b6cd8bc Fixed whitespace -f0bc5c9cb Added effects support for virtual controllers -b3a18706e Removed unused variables -7e005bd84 Fixed mapping the paddle buttons with the virtual controller -e3fd8feae Fixed getting the controller index when specifying --virtual (thanks @zturtleman) -5953422c0 Sync wiki -> header -e78a72ec3 fnsince.pl: Fix next version value to match new versioning scheme. -bfac54b59 Added the ability to specify which buttons and axes are present for virtual controllers -49ca8bf52 Sync wiki -> header -94eeb587c First pass at extending virtual controller functionality -7ad15c5b8 Added game controller support for virtual joysticks -996b3dc37 Fixed warning building with Visual Studio -e0f3da497 Remove unused SDL_ASSEMBLY_ROUTINES define -f93e81078 Sync wiki -> header -6b9884d40 Fixed bug #4213 - update documentation to reflect SDL2 behavior of SDL_RenderGetLogicalSize -e4bb3c864 wayland: Fix build for configs without libdecor -6222bd314 wayland: Don't create a new libdecor context if one already exists -6f88cbe4c wayland: Support xdg_decoration requesting client-side decorations. -d7866ffac assert: Check for integer overflow. -737b4fc32 Added -fobjc-arc to support automatic reference counting on macOS -9b75fa016 N-Gage port: add changes from code reviews, overall cleanup (#5618) -2c2cbbe66 Fixed function reference for SDL_SIMDGetAlignment() -6da99d4a6 Don't use SDL_SIMDFree() if the pixels haven't been allocated with SDL_SIMDAlloc() -2f924020e Add SDL_SCANCODE_CALL and SDL_SCANCODE_ENDCALL -2bc373622 Add SDL_SCANCODE_SOFTLEFT and SDL_SCANCODE_SOFTRIGHT -f871c178b macOS: remove dead code for supporting 10.6 at runtime. -8ab3ae98f stdinc: Add a comment to clarify why inline functions are needed here -f7280dceb log: Check for integer overflow. -ec8fa5775 macOS: always use Objective-C ARC (automatic ref counting). -d35c737f1 macOS: change min supported OS from 10.6 to 10.7. -6422a5d25 updated config.guess and config.sub from mainstream -2a7948016 cpuinfo: Check for overflow in SIMD allocation -cf1daafa3 cpuinfo: Set padding to 0 if none is needed -d15f6e379 test: Add a unit test for overflow detection -f661654fa stdinc: Add overflow-checking add and multiply for size_t -6e6e425e2 workflows: Do the equivalent of Automake `make distcheck` -c71ee68b8 Fix enabling tests on platforms without testnative support -318b5577f Delete gcc-fat.sh -9ef688574 Fix MSVC ARM32 builds -b352b7834 Add 'static VCRT' cases to MSVC build matrix -0e63b514d Don't define memcpy(), memset() when using static VC runtime. -8cd908e0b Fixed building with Visual Studio 2013 -a3c1ca1fa Added support for the Backbone One guide button -95f9c3cf0 Makefile.os2: add SDL_BUILD_???_VERSION defines to correct CFLAGS. -0c1960211 Applied 0004-Define-crt-macros.patch.txt from vcpkg ports -fa5059705 Simplified autogen.sh, thanks to @smcv for the tip -db36664f2 configure.ac: remove unnecessary AC_SUBST's added by commit 38ef6789909c -f0c870b90 Rebuilt configure from configure.ac changes -b03e08f37 configure.ac: Use Autoconf quadrigraphs for character set in AS_CASE -c244bbc51 workflows: Install and run GNOME-style installed-tests -ce502054a test: Install GNOME-style installed-tests metadata -38ef67899 test: Add a `make install` target for the tests -76a7b629b test: Add some common code to load test resources -ecf1e15fe workflows: Parallelize Linux Autotools and CMake builds -dba79ade5 workflows: Run build-time tests -40bef98f8 test: Add a mode to skip tests that involve arbitrary delays -7d2808e30 test: Run selected noninteractive tests at build-time -b299f74d0 test: Make testevdev succeed if the feature is disabled -6fc7aa28e cmake: Add some missing test-cases -a45947976 workflows: Only run `cmake --install` on Unix platforms -79a16da61 workflows: Change how we make CMake verbose -4da47601b workflows: Remove redundant `cmake --build` -2a8297e42 workflows: Add a test to assert that all the version numbers agree -fff97c95e build: Mechanically generate ABI versions from version number -60d702ac7 docs: Document new versioning scheme -cd7c2f1de Switch versioning scheme to be the same as GLib and Flatpak -63814ec76 Add static assertions that the version number is consistent -22002d915 docs/release_checklist.md: Document how/where to bump version numbers -d4b82bfa4 Add static assertions for version numbers' limits -ba6f96275 Document SDL_VERSIONNUM as able to encode larger minor versions -e0daa2a53 Deprecate SDL_COMPILEDVERSION and SDL_VERSIONNUM, to be removed in 3.x -f9a5cf77b Make SDL_VERSION_ATLEAST future-proof against larger version numbers -50bc01369 workflows: Tell CMake and Makefile.in to show compiler command-lines -b398a847b Add SDL_FLOATWORDORDER for older ARM toolchains -adac3bd1e video: restore ability to disable fb accel via hint -85a77fb5f workflows: List files installed by CMake -90da399bb workflows: Add a workflow to exercise the Autotools build on Linux -3f813cf1e SDL_rawinputjoystick.c: fixed -Werror=declaration-after-statement -2021a1092 cmake: Defer test subproject until after defining install/uninstall -db9e14e50 disabled linux joystick debugging outputs and reverted unnecessary comment edit -3b53555bc copied default Steam Controller mapping for wired and wireless-dongle USB pids -13b1bf4f2 added default gamepad mapping for Steam Controller with new GUID (possibly caused by the firmware update to enable BLE?) -f7a19f9ea relaxed the digital hat deadzone slightly, and fixed typo in DEBUG_GAMEPAD_MAPPING define -3696e23d0 added hints SDL_HINT_LINUX_DIGITAL_HATS and SDL_HINT_LINUX_HAT_DEADZONES to control the new Linux hat handling; added define DEBUG_GAMEPAD_MAPPINGS to log messages when generating default gamepad mapings for Linux joysticks -0b8e796e2 added hueristic to differentiate digital vs analog 'hat' input axes and expose the latter as regular axes; added automatic deadzones to hat outputs, in case analog axes are still mapped to digital hats; updated automatic gamepad control mapping to more completely follow the spec -fbd230bb6 Add support for the Nokia N-Gage (#5597) -3fcc2cb50 x11: get x1/x2 button state in GetGlobalMouseState -f25a78eed Enable `SDL_TEXTEDITING_EXT` events in `checkkeys` test -6150245d6 Add new verbosity level for logging of `SDL_SysWMEvent`s -d1a3981bf Fix crash when reading background events for MFi controllers on macOS -bb0b6dd42 Fixed using WGI without XInput -5394238cd Don't include the internal header for a file intended for use by applications -41b919851 Fixed Xcode warning about Framework include style -829f6b3d7 These headers are system headers, not local headers -0687128c9 Reduce CPU usage in testgamecontroller -9e5cbf034 Disallow non-positive allocation. -f81419702 Document that SDL_MAX_LOG_MESSAGE is no longer meaningful -6c2928b4b Switch uses of MIN() to SDL_min() -ca26df340 assert: Allow messages of any length. -888899244 log: Allow log messages of any length. -645db217a log: Use malloc for long messages. -73448fe24 assert: Remove use of alloca() -97774cdf7 Move in va_copy() define block from stdlib. -7e636b03c Removed log message length limitation for Apple platforms -1aa9754d9 Add missing backslashes in README-linux.md command -2ccb0dfd1 Check for macOS 10.16 to support apps built with older macOS SDKs -a0cdc1fc3 Added declaration of SDL_LogInit() and SDL_LogQuit() -29694869b audio: Revert one of the resampler optimizations. -5c1f5a730 test: Correct invalid enum length. -0f45a4e30 log: Don't try to SDL_free the static array. :) -31e83cd14 log: Fixed build (sorry!) -fde9a7086 log: Make the message buffer static. -c4141bc11 log: Wrap the call to the logging implementation in a mutex. -2a4295228 log: Don't stack-allocate the message buffer. -12f15aaa7 fix build -05bd225a8 x11: If XRandR isn't available, add a generic display. -ccc70e644 x11: Fixed some compiler warnings. -7d7ec9c95 x11: Remove XVidMode and Xinerama support. -e551384a9 Added functions to get the platform dependent name for a joystick or game controller -b293888c7 Fixes an issue introduced via #5573 when building for i686 -5066910bf audio: Make pregenerated resampler kaiser filter more precise. -111c3add7 audio: Resampler optimizations. -de019568d audio: Prebake the resampler's kaiser table instead of doing it at runtime. -f6eb4b075 pulseaudio: Feed audio data in response to write callbacks. -01ef98a5d Don't force keyboard auto-repeat on, if the user has disabled it for some reason -795744fc7 Turn off relative mouse before window checks as well -e2d268a39 SDL_cocoamouse.m: SetRelativeMouseMode even if out of focus Should fix #3087 -d7c07d6b0 Read motion sensor scale from Switch controllers (#5555) -76afb8583 Introduces Cocoa_GetWindowDisplayIndex. This enable a proper management for dpi when switching between retina and non-retina displays. -c39df2fb0 joystick: get HID top-level collection preparsed data directly from RawInput API. -8c1584e8e WhatsNew: Start block for 2.0.24 -e9ff4fdd4 add SDL_bsearch -0b2a55ea7 Fix typo -3dcfe8608 Add joystick battery event -0964c84d7 Always use SDL_PrivateJoystickBatteryLevel to update battery level -fa29e2d7f Updated to version 2.0.23 for development -53dea9830 (tag: release-2.0.22) x11: revert checks for _NET_WM_STATE_FULLSCREEN changes. -981e1e3c4 (tag: 2.0.22-RC3) Fixed logical size synchronization issue on macOS -7a5743031 hidapi, libusb: import mainstream commit 536bad201e -fa073ed01 Revert "Fix relative mouse input for Unvanquished (unvanquished.net)" -8986efd64 Added support for the Backbone One controller on iOS -2ca083788 SDL: sometimes the PS5 controller doesn't report having to power even when connected over USB. Possibly related to being completely charged? Either way we already know that it's USB or BT so let's use the driver's knowledge instead. -04bf7c943 Fixed build -d9b5805ba Return a correlation error when trigger rumble is attempted without correlation -0288de852 SDL_Rect: Add \sa documentation block to SDL_FRect -ba62ead5e (tag: 2.0.22-RC2) Handle potential out of memory condition when working with hints -145824f6a WGI: Only call RoUninitialize() if RoInitialize() succeeded -00b2e10a7 WGI: Keep a reference to the MTA to avoid crashing on COM teardown -8982d9f40 windows: Fix RoInitialize() failure after a CoInitializeEx() call using apartment threading -923cb4463 windows: Fix calling convention for RoInitialize/RoUninitialize -d4a01bfef os2: SDL_DestroyMutex should ignore NULL mutexes. -a40405d72 hidapi: Wrap CopyHIDDeviceInfo in define checks. -5bc293342 test: Basic tests for SDL_FRectEquals -fc944859d SDL_Rect: Use a default epsilon in SDL_FRectEquals() -00feca27b Add SDL_FLT_EPSILON. -5d4a1f835 WhatsNew.txt: Add SDL_FRectEqualsEpsilon() -aeadbdd78 Remove an unused function prototype -c8c59a213 Fix a -Wshadow warning -d9009388c SceKernelMemBlockType to unsigned int -3753a7b1c Fix recent changes in VitaSDK -02225aa73 Fixed build -49a2e4b0e x11: Revert "Fix keymap updating for X11 backend" -b9fe6ba0e Fixed compile warnings -57927a245 Don't call scandir() inside of scandir() -1ede941f5 SDL_render.c: internally change viewport/cliprect type from SDL_FRect to SDL_DRect (double precision). (see bug #5547) -9919d1a7a Remove HWND_TOPMOST for fullscreen windows -009a0ff95 use explicit GetModuleFileNameW -de711e168 simplify SDL_GetBasePath on windows - use GetModuleFileName directly (as recommended) -7c140429a Enable evdev-based gamecontrollerdb on FreeBSD -e7b01ee74 Added controller mapping for the Thrustmaster Dual Analog 3.2 on Linux -2b5294614 video: Don't minimize fullscreen windows on focus loss by default when mode switching is disabled -c37090f9a wayland: Add support for TOOLTIP/POPUP_MENU -9e264b921 Certain audio drivers, like the RME "Pro" Audio driver, have resampling quality issues when using WASAPI. -254fcc90e Revert "video: Prefer Wayland over X11" -c1336b21e hints: Make SDL_VIDEODRIVER and SDL_AUDIODRIVER formal hints. -634b9edc7 cmake: Fixed indenting and some oldschool `endif(TEXT)` things. -dc5bc5237 Added CMake option to disable the installer -67e0f546c x11: Update the display when the WM changes a window's fullscreen state. -edb473cf4 video: Wayland: Always round scaled pointer coordinates down -13393a1c4 video: Wayland: Clamp fullscreen window dimensions to desktop -0adb67017 avoid NullPointer in SDL_GetRenderTarget -01b14e14e avoid NullPointer in SDL_GL_MakeCurrent -55a4e1d33 CI: update os2.yml to use open-watcom/setup-watcom -c36bd7847 WhatsNew.txt: Document new dependency on libwayland-client 1.18.0 -46616af72 WhatsNew.txt: Added SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR -9c2f46b0d Wayland: Add SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR -99ae6395b Initialise scandir argument -68b6fff24 test: Copy utf8.txt to build directory -b4256d03e testevdev: Adapt to a broader definition of keyboards -c2946902f testevdev: Recognise touchpads as such -f708cebe1 fix os2 timer in fallback mode -b75996138 Vita: fix VIDEO_VITA_PVR flag -b1831715a UWP: Require Windows 10 16299 or newer. -727eef706 audio: SDL_ConvertStereoToMono_SSE3 missed an unaligned load. -505d6a4a0 (tag: 2.0.22-RC1) Update version to 2.0.22 for release -a256e6ba7 Updated the patch notes with API changes for 2.0.22 -6d7d142b7 Fixed typo -c2093fab9 video: wayland: Set the surface damage region when using fullscreen viewports -ba0ba9ef1 direct3d11: Set the swapchain target immediately after creating it. -cb8163081 render: Update the size/scale/viewport on moves, in addition to resizes. -5613a5603 Make sure the UIKit message box is being handled on the main thread -2823534fe minor adjustment to os/2 watcom makefile -49b9e3470 Only update modifier state for keys that are pressed in another application -85977354f x11: Treat WM setting the window "fullscreen" like FULLSCREEN_DESKTOP. -6dbca7c91 Compile with recursive mutexes for emscripten -64c7896f0 Makefile.in: added missing CXX variable. -d1f7f9e35 wayland: Pin the fake window position at (0, 0). -279aeb59b wayland: Add a bug link for the detach FIXME -3ada694e6 wayland: Try to detach at the beginning of ShowWindow, just in case. -dcfb7fff0 wayland: Evaluate WINDOWPOS_CENTERED_DISPLAY for move events -7ea1b69dd Sort controllers by the js* index on Linux -0249df9d9 x11: Try to keep SDL_WINDOW_FULLSCREEN* in sync with window manager. -eb660e862 Cache the fact that a device didn't look like a joystick -138d96c8a Send key release event to input method. (#5281) -8bae343f2 x11: when waiting on fullscreen changes, not window position _and_ size. -268c2fa88 Don't resize fullscreen windows when hiding or minimizing them (thanks @madewokherd!) -def27267b Ignore focus change messages that contradict GetForegroundWindow. -ff5b67e5e IBus should use ev keycode instead of X keycode -27fc582b5 Minor cleanup -86acb1a34 Handle interaction between auto capture and the SDL_CaptureMouse() API -0e198a879 Added a define VERBOSE_MOTION_EVENTS to show mouse and finger motion events -006a5a9e0 testgles2: Fix buffer object sizes -a5672b858 x11: Wait a bit to see if window pos changes when changing fullscreen. -45372b1c2 x11: Don't unload libGL.so to prevent a crash in XCloseDisplay() -7b3449b89 Minor cleanup -6cd444f0f Visualise scroll wheel events in testmouse -57118fb7d render: Fix setting the scale mode for non-native textures -312c899f4 attempt to fix uwp build -c0bb39e5e check for HAVE_ROAPI_H in cmake and autotools, and -575dadb11 fix build against older SDKs after commit 8ebef12. -8ebef12d3 Use RoInitialize/RoUninitialize for Windows.Gaming.Input -1c9299b00 Add SDL_list to macosx xcode -78834b50d Add SDL_list.c/h -ad6bc521b Move SDL_List functions to SDL_list.c to avoid more merge with eventual PR -0d7edcb70 Fixed loading 32-bit BMP files -ea7d5307a emscripten: Proxy SDL_GetUsableDisplayBounds to the main thread. -fe79eb2fb emscriptenframebuffer: fix formatting -268cc2a49 emscriptenmouse: remove useless return statement -3136a5307 fix formatting and cast warnings -404158595 emscriptenmouse: remove old extra `_INT` -4dca8f7fb SDL2 thread proxying fixes -1c7bf478a x11: Ignore BadValue for extremely small XRRSetScreenSize resolutions. -db718998b Vita: fix readme -95c0fec51 Vita: PVROGL: fix indentation and ifdef guards -b5700ab31 Cleanup Spaces -8e5adc62e Update README-vita.md -8c542a359 Desktop OpenGL 1.X/2.X PSVita Support -2c04df8d6 joystick: Fix rumble issues on PS5 HIDAPI controllers -7e15ad2fc x11: Catch X11 errors in X11_SetWindowPosition and X11_SetWindowSize. -3425e9950 stdinc: SDL_COMPILE_TIME_ASSERT defines shouldn't have a semicolon. -cbdb67b4f Vita: add SDL_GetPreferredLocales support -178ac1961 Vita: add audio capture support -4d1905c9b video: wayland: Use viewports for non-fullscreen windows with fractional scaling -fa4c51989 video: wayland: Expose more resolutions for mode emulation -d875416ac wayland: Minor fix for old compilers -4d76c9cb4 video: wayland: Use wp-viewporter for fullscreen with non-native resolutions -aec86ba8b emscriptenaudio: proxy calls to main thread -96be9cddc Vita: add hint to select which touchpad generates mouse events -1db47d468 Fix potential memory leak in QueueCmdFillRects -a60986caa Correct default structure packing on Windows ARM64 -6d1c3cd69 Sync wiki -> header -95ed83137 Vita: Use preallocated memory pool for textures -2591f7e39 Sync wiki -> header -7ba4d24c2 Sync wiki -> header -0dcfa92e4 testgles2: Call correct function to get shader info log and add link status checking -6529bf3de Clean up formatting in README-directfb.md -0bc9e243b Remove URLs from markdown headers in README-visualc.md -7bc498d32 direct3d: Implement missing blend operations. -a630b0293 configure: improvements to libdecor discovery : -713a67540 wayland: Relax the check for mismatching output scales -5655be155 wayland: Avoid overwriting xdg_output position with wl_output position -40417b188 wayland: Work around a GNOME xdg_output scaling issue -94ed6b0a5 README-windows: Notes on building with Visual Studio/LLVM. -5acb4b70a README-windows: Wordwrap text file. -26bfee857 README-windows: Convert to actual Markdown text. -beecae31f testshader: use SDL_malloc instead of SDL_stack_alloc. -d6122704e Initialize compile status variable and check also program link status -7a1c45bd1 wayland: Optimize keyboard_handle_modifiers. -69d0b6e3c Vita: Fix NULL-pointer dereference -bf38fd467 YUV: fix invalid read on last line when converting from SDL_PIXELFORMAT_YUY2 (see bug #4841) -2891f0821 wayland: Use xkb_keymap_mod to set mod state -6d9ca9262 wayland: Enforce text capitalization manually, for remapped keymods -a75c6150e wayland: Add an xkb_keysym_t->SDL_Keycode mapping for backspace -ee96407ed iOS >= 10.0 silence GLes deprecation warnings -ab74b6a3c wayland: Remove some now-redundant casts -ee52ad08c wayland: Minor fixes for old compilers -b4d28085b wayland: Don't overwrite error message from SDL_EGL_CreateSurface -d5bbbd3f7 Avoid depending on libwayland 1.20 unnecessarily -d597a9b43 x11: Minor cleanups and corrections in X11_ShowMessageBox. -6c56193a2 Fixed bug #1650: X11 doesn't set KMOD_NUM and KMOD_CAPS to system state -2398c43be add some Thrustmaster wheels -4fe7b2cbd static analysis: Fixed several complaints from codechecker. -eadc064e2 Vita: add native YUV textures support. -0af2db6f2 Vita: support audio format fallback -0dae35bf3 video: wayland: Use xdg-output for retrieving the desktop dimensions -9125b244e wayland: Basic support for zwp_tablet_*v2 protocol -13337e17a wayland: The rest of the wayland-client 1.18 requirement... Git, please -f3ff0c568 wayland: Bump minimum requirement to wayland-client 1.18 or newer -2a4e0f8fd Sync wiki -> header -c23a7ad38 Add SDL_RenderGetWindow() API to get the window associated with a renderer (#5440) -57df1dfce Video: do not use hardcoded VIVANTE and VDK libraries -f5a980448 Android: add SetWindowResizable() implementation - which also enable/disable the orientation lock status. -006aafabc Fixed freeing a constant string (thanks @gnrlwart) -8df045cc7 stdlib: just cast iconv()'s 2nd arg to void *. -4b8d69a41 Avoid trying to use texture framebuffers on emscripten -25203222f optimize the SDL_str(case)cmp functions -aec58d820 make SDL_strcasecmp standard compliant -b59ca92e8 use != '\0' comparison instead of SDL_strlen in the functions of SDL_getenv -b944dc8f2 Also fix Android crash when SDL_HIDAPI_DISABLED set to 1 -2302b2d5e Add mapping for Logitech Precision Gamepad -83df4a354 SDL_render.c: remove unsused case, since renderer target has been forced to NULL previously (see bug #4213) -f782abe5f hints: Added SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE. -34fd83ca0 Don't try to hide foreign windows when destroying the SDL window representation -74680f5c4 regenerated SDL_blit_auto.c. -dd6c46cb3 blit-auto optimizations -9dc201d44 Fixed bug #2962 - when SDL_RenderReadPixels format = 0, used format of the target texture include/SDL_render.h, format: "0 to use the format of the rendering target " -7f1feee02 Fixed bug #2426 - SDL_RenderReadPixels result is unspecified and fails testautomation Call SDL_RenderPresent after calling SDL_RenderReadPixels. From "include/SDL_render.h": "If you're using this on the main rendering target, it should be called after rendering and before SDL_RenderPresent()." -2b3c16eb5 Sync wiki -> headers. -24ffcbd9a audio: Set error message on dsp init failure. -8f964576d Fixed parameter operation ordering for ease of reading -0517b61ed Relative mouse mode is tied to the window with keyboard focus -b559a4acc Fixed Android crash when SDL_HIDAPI_DISABLED set to 1 -a485ffc3c Fix "SDL_FALSE is not defined" runtime error for emscripten. -d81fee762 SDL_Rect: Added floating point versions of all the rectangle APIs. -4d9bef604 SDL_Rect: minor code cleanups. -c573ebe14 SDL_UnionRect: If both rects are empty, zero out the result struct. -fbbd0270e Fix "SDL_TRUE is not defined" runtime error for emscripten. -aef1e5673 Sync wiki -> header -40b7326b3 Added a note that SDL_RenderReadPixels() should be called before SDL_RenderPresent() -6c9621772 Added the hint SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, controlling whether the mouse should be constrained to the center of the window or the whole window in relative mode. -d3cc5764c Modern CMake doesn't need "LANGUAGE C" for Objective-C -1868c5b52 Start rumbling once a raw input controller has been correlated -3167ba342 Fixed freeing the Windows blank cursor -0387bf821 Fixed memory leak in WIN_CreateBlankCursor() -5ff42438e Added a hint to capture the mouse when mouse buttons are pressed, defaulting on -09b8152fa Use SDL_Log instead of printf -b22ce2b5a Workaround for bug in Microsoft WGI support -d40627851 Try not forcing activation when grabbing the mouse in fullscreen windows -4e784fce4 When updating grab state, only activate windows that are grabbed, fullscreen, and shown. -e5f45455c Added a hint to mark a foreign window as usable with OpenGL -4e49b78a1 Fixed compile warning and comment typo -0bf8ccfb6 video: Add a hint to allow Vulkan surfaces on foreign windows -ecaa22cbe Don't warn if anyone peeps for events after quitting the event subsystem -331859079 Fix relative mouse input for Unvanquished (unvanquished.net) -829e15a49 Ignore unknown WM_SIZE types. -a164c9d24 SDL_cocoawindow.m: update fullscreen toggle when SDL_SetWindowResizable called -cc152103b Fixed warnings when building with cygwin -e8c3ff56e Removed problematic call to ISensor_SetEventSink() -bcb0f1de2 Fixed build when events are disabled -01bfde452 simplify SetDSerror - no need to keep the error in a static variable - always print the error code - reduce the required stack-size - reduce the number of snprintf calls (and code size) -01663238d testplatform.c: move static asserts out of TestTypes(). -f0d2747df use _Static_assert for SDL_COMPILE_TIME_ASSERT(), when available -dfbe1f724 SDL_GetBasePath() fixes for OS/2 -b2db570ce SDL_triangle_blit_slow: sync code with SDL_blit_slow to handle ARGB2101010 -93e7caab9 SDL_blit_slow: remove one nested 'if()' because of ARGB2101010 handling -56568ffb3 Remove 'reserved identifier' warning -1c1f5c180 imported two libtool mainstream commits 28fbcb6a and b55b1cc8 -2c6a9c519 minor optimization (SDL_audiocvt.c) -85dff3e45 emscripten: obey enable-misc/SDL_MISC settings -123b9aaa4 Adjust gradle dependencies to enable the build to position assets for the APK -5905696e6 SDL_audiocvt.c: minor cleanup. -61a93d3c4 minor whitespace cleanup. -d1e4367f5 SDL_windowskeyboard.c: fix build with SDL_DISABLE_WINDOWS_IME defined. -1ee196b48 INSTALL.txt: Say "macOS" instead of "Mac OS X" in modern times. -90b13e148 Merge remote-tracking branch 'refs/remotes/origin/main' -c44966b78 Fixed bug #2691 - re-enable surface_testCompleteSurfaceConversion for ARGB2101010 -f3e86b9fd Fixed bug #2199: make SDL_blit_slow handles SDL_PIXELFORMAT_ARGB2101010, storing as RGBA -67848b653 Fix name of macOS platform and link to README file -3bebdaccb METAL: clip rect w/h must be <= render pass -7c421fec1 SDL_audiocvt.c: Don't byteswap 8-bit streams -363c36781 Fixed: Incorrect assumption that mouse button is released when window is allocated -7495b9814 Make SDL_VIDEO_OPENGL_EGL optional on Android -0ad606b48 Android: add comment to set render target to NULL when going to background (bug #4041) -ecc1c871e SDL_endian.h: use endian predefs from newer gcc and clang versions. -ee6bfcdd6 SDL_blit_N.c: removed duplicated const (fixes bug #5401) -3ab739aff cmake: Make test code use proper C main functions. -072db7b00 SDL_windowskeyboard.c (IME_IsTextInputShown): remove unused local vars. -229297d97 Sync wiki -> header -d14a12638 IME Composition Truncation + SDL_IsTextInputShown + SDL_ClearComposition (#5398) -9de97e19c emscripten: Don't prevent default on filtered key events -afb0606f5 minor os/2 clean-ups. -50575aa18 Makefile.os2: fixed setting OS2DEBUG in CFLAGS. -677dc1015 rawinput: Fix double detection of gamepads on some 3rd party X360 wireless receivers -bf6986892 reduced a few ifdefs, fixed an unused warning if built w/o SDL_HAVE_YUV. -01d38e7ad Make Win32 fullscreen and borderless windows minimizable -09b652b70 Make sure the string properties are actually strings (thanks Nat!) -c6eef542a Removed dead code -911ba8d34 hide impossible branch in D3D_UnlockTexture -ea5b482bf Remove unused warning -45833a148 Prevent shadowing static variable '_this' with local paramter '_this' of SDL_CreateWindowTexture -a4a80c860 Fix variable may be uninitialized when used here [-Wconditional-uninitialized] -04256a537 Fix compilation (see #5313) -0983fcee5 fix memory leak in D3D11_CreateRenderer -3f8b450de extend the code hidden by SDL_HAVE_YUV -ce1883e1e fix compile error with disabled SDL_HAVE_YUV (vita) - UpdateTextureYUV is not defined if SDL_HAVE_YUV is not defined/zero + calling SDL_free suffice if the VITA_GXM_RenderData was just allocated -14db417e1 Reenable getting the serial number on macOS -c3ca3445b Prefer HIDAPI on macOS, as that has extended functionality -6a787619e Allow reading background events for MFi controllers -b064ad6ac Allow GL_ARB_texture_non_power_of_two environment variable to override OpenGL 2.0 check -1b7669374 Fixed the SDL controller type for USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER -41e7d1baa Add SDL_GetDisplayDPI implementation on Emscripten -f03215bc7 fix linking with SDL_PULSEAUDIO_SHARED=OFF and SDL_X11_SHARED=OFF -b2463a917 events: Add logging support for several missing event types -bdafe1e04 Fixed whitespace -2e801b1ae Split long text input into multiple events if needed (thanks @zreedy!) -232c3556a Sync wiki -> header -ae73ea9c0 Clarified documentation for the trigger rumble API -13756b5c7 Add X1 and X2 button support to mouse test -2f7b885df Fix 'potentially uninitialized local pointer variable' error in UWP builds -b7f8117d4 Build the standalone MSVC projects with GitHub Actions -550b8377b Combine the MSVC and UWP workflows -98353533e riscos: Report keyboard repeat events -af40cb6f0 Added support for the Razer Huntsman Analog keyboard in controller mode -669a7f855 Sync wiki -> header -4a43321c8 cmake: Fix bug #5361. -94d43186f GameCubeAdapter: Add suppport for all rumble modes This adds support for all 3 of the gamecube controller's rumble modes Rumble: 1 Stop: 0 StopHard: 2 This is useful for applications that need the full range of support This also adds a hint to control rumble behavior, defaults 0 to maintain compatibility -b946e31ec video: Allow unaccelerated SDL_HINT_FRAMEBUFFER_ACCELERATION renderers. -60ddb74cf video: rework how we prepare a texture framebuffer. -08d27dfd7 SDL_openslES.c: Detect float support in runtime and use it -293a0aa80 opengl: If GL version >= 2.0, NPOT textures are supported, so favor them. -9299a3e79 Workaround for crash in CoUninitialize() -978fbc325 Fixed compile warnings -6c531c433 Correct handling of sentinel events when polling without removing events -d90bd261f wscons: Make USB keyboard input layout independent -9d86ec857 Palette format: software Render Jitter in rotation (see #5143) - same fix applied for rotation with palette surfaces - allow other 8bits format (eg 332) -ceb09ee74 Fixed #5143 - software Render Jitter in rotation better precision calculating rotated coordinates and interpolation -18032979d Added the hint SDL_HINT_JOYSTICK_ROG_CHAKRAM to control whether ROG Chakram mice show up as joysticks -75ffa24e3 Software Render Jitter in rotation (bug #5143) The output surface doesn't necessarily to have even width and height. -61abc4e5b PSP: SDL_RenderCopyEx rotation and global scaling around the wrong way (see #bug 3070) -18b76fcc5 Fixed bug #3070 - SDL_RenderCopyEx rotation and global scaling around the wrong way (software renderer) -e366ad128 Fixed bug #2308: SDL_RenderCopyEx rotation center precision (software renderer) -66ee79bd6 [PSP] Don't swizzle streaming textures -f97a29f6e Use the real device VID/PID when seeing the Steam virtual controller -85e650006 X11 Segmentation fault with multiple windows and renderers (see #5256) -4cb618180 Do not build loadso test eboot for PSP -a75041e8d Fixed bug #2140: basic support to convert 16 colors palette PIXELFORMAT_INDEX4, to allow conversion to SDL_Texture -abc8198a1 Render all sides when drawing rect on PSP -5b41844c7 Fixed bug #5322 - register virtual input devices as SDL_Touch device, fix compilation -3a9bbf604 Fixed bug #5322 - register virtual input devices as SDL_Touch device because they can send SOURCE_TOUCHSCREEN events even if getSources() doesn't declare them. -59f1e2875 Android: add debug function to display class/sources -228db3528 audio: pipewire: Tidy up formatting -9da9e85cb audio: pipewire: Reset all hotplug values and pointers on shutdown -5b36a527e audio: pipewire: Remove redundant locks -48b4d1c41 audio: pipewire: Convert atomic hotplug conditional variables to SDL_bool -67f12ede3 move bug #5333 fix to headers -54304b971 Fix rotation direction and center point on PSP -2b572dff8 Make RenderCopyEx rotate around center -2df2da11f Android: handleMotionEvent() is checking for SOURCE_JOYSTICK. So don't handle DPAD GAMEPAD (see #5322, #2718) -1fc5dba3d Android: test for SOURCE_KEYBOARD / SOURCE_MOUSE. Don't compare to 0, since there are several bits (see #5322, #2718) -7935cfacc SDL_mfijoystick.m: use __typeof instead of typeof. -9b817248c SDL_spinlock.c: define HAVE_GCC_ATOMICS for windows/clang builds, -f18571120 Fixed bug #5310: Android, Undefined reference to AAssetManager_fromJava -68dd84f1d Android: TouchDevice -1 is reserved for SDL synthetic devce (See #5322) -94e5c3f30 testgesture: display device name with SDL_GetTouchName() -580d23182 Sync wiki -> header -e7e44df03 Dynapi: add SDL_GetTouchName() entry -34d4f5b14 Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!) -8ce003a42 Vita: credit cpasjuste -14bc3bf4e Android: fix typo to register TOUCHSCREEN device (see #5322, #2718) -53091e36a audio: pipewire: Remove the hard upper bound on rates and buffer sizes -66866249a audio: pipewire: Condition variable doesn't need to be atomic -0cb39ed46 cmake: Fix SDL_LIBUSB_DYNAMIC soname -b0dd4c7d3 SDL_Render OpenGL: do batching like in the GLES2 backend (with no VBO) -90f0d2ce4 Revert OpenGL point drawing performance, do to proper batching -423feac69 haiku: Actually remove BDirectWindow and fix OpenGL handling. -940354367 cmake: enable_language(OBJC) only for APPLE -3c9ac4489 cmake: enable_language(OBJC) to fix check_objc_source_compiles(). -686a0f345 cmake: include CheckOBJCSourceCompiles for cmake >= 3.16 -6d5592a20 minor cleanup of SDL_CreateRenderer -e8c48981f pthread/SDL_systhread.c: always include errno.h -5c4fff7f6 Don't fail to get battery status if the upower refresh call fails -c8cee0b8c OS2_HasClipboardText: store the boolean result before closing clipboard. -b5614d0c6 cmake: fix UWP joystick. -c93e55206 minor update to winrt/SDL_sysurl.cpp -050a5e1a1 removed unused SDL_config_wiz.h -c459eceee removed unused Makefile.wiz -3b9e6c1ce SDL_os2video.c: fixed HasClipboardText() semantics. -86b7a0642 Add additional VID/PIDs for Anne Pro II -dd69c28d6 Added a mapping for the Xbox Series X controller, firmware version 5.11.3118.0, connected to Linux via Bluetooth -b59e75c25 Handle menu button press from controller -2005dd959 UWP build (#5299) -2cfc83eab sync D3D_RenderReadPixels with D3D11_RenderReadPixels -3bef4a5da cleanup error-handling in SDL_egl.c -b5c505260 cleanup error-handling in SDL_bmp.c -19df4af2a simplify SDL_DUMMY/OFFSCREEN_CreateWindowFramebuffer -ecd922b5c Fix touch holding detection after #5244 changes -df0d696a6 RISCOS: attempt to fix compilation ERANGE -87b02d379 Linux thread name limitation: test for ERANGE (see bug #5283) -daea9fa19 Remove SDL_config_psp and references -ff5f5d0ef Updating Readme-psp info -ec632aba1 Remove legacy and unused Makefile.psp -220a9596f Remove testing instruction (see bug #5283) -9e46a512b Fixed bug #5283 - limit thread name to 16 characters when using pthread_setname_np() -b11dfd761 Only generate key repetition for keys that should repeat on wayland. -a90a2e758 Fix text_input_v3 preedit string -03c4405b3 Fixed D-Bus battery refresh call -e1cf8d874 Sync wiki -> header -4fa21dd65 Sync wiki -> header -d46cc18af Fix function comment -d224a63bd Fix compilation for non Android -61b6a2cad Sync wiki -> header -fe2ed6cf6 Fixed bug #5221 - Add SDL_AndroidSendMessage() -97269e143 adjustments to ime_candidates - allocate ime_candidates on demand - allow write to the whole allocated memory of ime_candidates - ensure ime_candcount is set to zero in case the candidates can not be queried for any reason -6f404d0f0 cleanup IME_GetCandidateList / UILess_GetCandidateList - move IME_ShowCandidateList, ImmGetContext and ImmReleaseContext to this function - set ime_candpgsize to MAX_CANDLIST if dwPageSize is zero - comment out deselection of ime_candsel in case of korean language for the moment (LANG_CHT does not work anyway) -ec8e3104c Refresh the battery state before we query it on Linux -0b34f1804 audio: pipewire: Don't double free properties on init failure -f7d3abddb Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport. Handle the case when there is blending -8b139e26a regenerated configure script. -a5c610b0a revert 'Changed to use 0xFE instead of 0xFF for better sound quality.' -43f0271b4 Revert "fix compiler warnings in SDL_windows_gaming_input.c" -a70bb259c drop handle parameter of OpenDevice -47ddb04e1 cleanup/sync the main loop of *_OpenDevice functions to pick audio format II. -2eafe4340 cleanup/sync the main loop of *_OpenDevice functions to pick audio format -3939ef72f cleanup SDL_GetAudioDeviceSpec - drop unnecessary hascapture check - call SDL_InvalidParamError and return -1 in case the index is out of range - do not zfill SDL_AudioSpec - adjust documentation to reflect the behavior -113109f83 cleanup SDL_GetAudioDeviceName - drop unnecessary hascapture check - call SDL_InvalidParamError in case the index is out of range -f91211eb1 cleanup WASAPI_PrepDevice - reorganize the loop which checks for the right wave-format - use the return value of UpdateAudioStream - ensure SetError is called in SDL_NewAudioStream -c9e8d1573 re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory II. -1043dd8c0 adjust handling of iscapture - drop iscapture parameter of OpenDevice - use SDL_bool for iscapture -e2f70a2df cleanup SDL_EventState -32c7d5d35 cleanup IME_UpdateInputLocale - do not store the HKL in a static variable - always set the ime_candvertical value in case the HKL is changed -25aa7244d cleanup IME_GetId - use assert instead of a check (it is a static function with constant parameter) - assume it is called with 0 first (simplifies the logic) - reuse dwLang value instead of a new 'call' to LANG() -60deadba5 re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory -ebdd53667 use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError -4a17612bf get rid of BeginLoopIteration -0770c5829 get rid of PrepareToClose -e0236c02c audio: Removed an unnecessary commented-out line. -0dda8a7f4 cleanup init functions of audio - use SDL_bool if possible - assume NULL/SDL_FALSE filled impl - skip zfill of current_audio at the beginning of SDL_AudioInit (done before the init() calls) -6fcfcc3d6 get rid of SkipMixerLock -3c85cef46 cleanup SDL_RegisterApp - fix memory leak when RegisterClassEx fails - set style according to the documentation - eliminate duplicated SDL_Instance setter -0af391cbe build with Release config on push and pull_request -ff2d62d89 dlopen is not a subsystem -a633a3c33 add audio/video dummies if nothing else available II. -398f9a0e4 fix have_audio/video flags, add uikit to SUMMARY_video in configure -fa8075c4f add audio/video dummies if nothing else available -39c723fc9 fix HAVE_SDL_VIDEO flag of CMakeLists.txt [IOS OR TVOS] -3dba2a73f fix HAVE_SDL_AUDIO flag of CMakeLists.txt II. -014e2bbdb use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT -3936af99d fix HAVE_SDL_AUDIO flag of CMakeLists.txt -21510387c fix CMakeLists.txt vs. configure inconsistencies - atomic subsystem is disabled by default (changed in configure) - SDL_WAYLAND_LIBDECOR is disabled by default if SDL_WAYLAND is not set (changed in CMakeLists.txt) -95f30c7a4 fix compiler warnings in video/uikit -11cdde01f fix MacOS build with disabled SDL_SENSOR + get rid of the double-check (SDL_HAPTIC depends on SDL_JOYSTICK) -176941a4f allow MacOS build without SDL_FILE -b1b2ad725 sync handling of subsystems II. (+) -eb80f2c65 sync handling of subsystems II. -65e9415b9 sync handling of subsystems - add DUMMY-define in case the subsystem is enabled but not available (filesystem/misc/locale) - add missing PSP/VITA-filesystem defines - sync the order of filesystems in SDL_config.h.cmake/in - add option to disable locale subsystem in configure -ea8cf4bd0 add 'Misc' subsystem II. -118de8620 more conform vulkan/metal configuration -606d2ea87 bugfix for "add 'Misc' subsystem" -998117b3f add 'Misc' subsystem -942b01a54 do not use RWOps in WIN_SetWindowIcon -739f350f4 add SDL_LOCALE_DISABLED to SDL_config.h -bf66720a4 fix mixing of U16 audio -905e2e22e cleanup of SDL_MixAudioFormat -d7110b449 fix compiler warnings in SDL_windows_gaming_input.c -e11ba0f5d do not load/unload opengl library when SDL_WINDOW_METAL flag is changed -f5911bdc5 GLES2: disable texcoord when not using it (see bug #5235) similar to opengl backend code: - glDisableVertexAttribArray doesn't need to depend on 'drawstate.texture' value - move binding code to SetCopyState() -096fe37bb GLES2: revert https://github.com/libsdl-org/SDL/commit/7bf8c5a388bc41dde830e4baabcb53d507e64448 -a988ce554 Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport boundaries -7bf8c5a38 GLES2: disable texcoord when not using it (see bug #5235) -5b7445925 Update SDL_joystick.c -19ae71b2d video: Don't add SDL_WINDOW_(METAL|OPENGL) to new windows if unsupported. -d7e0c54dd PSVita: send initial SDL_JOYDEVICEADDED events -cc40f732f wayland: Round the refresh rate rather than truncating it -304431051 video: Don't add SDL_WINDOW_METAL to new windows if not using Cocoa or UIKit. -77a9ca6ba wayland: Fix SDL_SetWindowSize() being dropped right after exiting fullscreen -c6ec5a07f d3d11: Respect SDL_HINT_RENDER_DIRECT3D_THREADSAFE when creating device -f37e4a94d video: Don't check if we can use a "texture framebuffer" until needed. -71e06a536 cmake: fix Metal detection -8ceba27d6 video: Prefer Wayland over X11 -68a71f91c wayland: Try to avoid committing before the window is shown -84320266f Fixed the queue filling up with sentinel events when the WaitEvent call is passed NULL for the event -f0e768da4 wayland: Call SetFullscreen directly in ShowWindow. -8c660ccb6 Fixed bug #5256: X11 Segmentation fault with multiple windows and renderers First window is created and it triggers and 'EnterNotify' event which calls SDL_SetMouseFocus() and X11_ShowCursor() while the second windows hasn't finished to be created (eg window->driverdata isn't set) Just check for a valid 'driverdata' -e2d74bcbe wayland: Detach hidden surfaces in HideWindow, not ShowWindow -ca22b30e4 testgles2: Use vertex buffer objects instead of client-side arrays. -57bc90403 Add hint to optionally forcibly raise the window under MS Windows. -d7873e656 Disable tablet flicks under MS Windows. -15ebad6e7 emscripten: Implement SDL_OpenURL -99af3281e timer: Fix Emscripten declaration-after-statement error -53df0e661 Fix the erroneous generation of mouse-down events from touch-move events. -8f8b14cbb Synthesize a missing touch-up event. -d2456b6e4 os2, geniconv: default functions pointers to Uni*() API, -67cb548be Fixed build error with C90 compilers -a23b3c767 Add support for correlating trigger input -e1b4761c6 wayland: Avoid calling SetFullscreen in libdecor ShowWindow. -ed3442d7a wayland: Fix building with SDL_OPENGL=OFF -426c1f4b8 opengles2: fix comment about client-side arrays. -b3984df1c audio: pipewire: Use client config files instead of module names -381520ad9 updates for watcom optimization flags -a0e3c884d Updated to version 2.0.21 for development -1bfefb5b4 regenerated configure script. -a575e2cf5 Enable alloca on mingw/cygwin builds: -33dadbf13 'dnl' whitespace tidy-up in configure.ac -d3952a8a2 wayland: Avoid spurious resize events -b06866ef9 Entirely remove Xbox axis filtering, we don't want this at all. -09aed1020 Don't send output reports to the Victrix Pro FS v2 -85961b61a Disable Xbox axis deadzone handling by default -2a0cde8fd Always send SDL_WINDOWEVENT_SIZE_CHANGED when window is resized -1a50334c4 Fixed Xbox One trigger axis zero point -e9511f713 hidapi, libusb: don't use iconv on OS/2, it lacks wchar_t functionality. -9a2bbd8ac wayland: Convert URI to local path for DropFile -0abc0a6f3 SDL_string.c: tidy-up gcc2 va_copy defines after previous haiku commit. -d37c9777b haiku: updated for Haiku -bff867013 haiku: updated for Haiku -094e94402 haiku: Remove BDirectWindow, fix OpenGL handling. -407d4e470 cmake: simplify after the previous os/2 commit. -f199f832e cmake: added target_properties for os/2. -5b6e2d69a SDL_os2messagebox.c (_makeDlg): remove unnecessary casts -ae9e2149a os2-buildbot.sh: Use the 64-bit Watcom binaries. -42302d0a5 x11: Let apps specify a custom _NET_WM_WINDOW_TYPE. -f9b918ff4 opengles2: Use client-side arrays on everything but Emscripten. -bb9ebad74 Optionally disable generation of SDL2main and uninstall projects. -fcf0e524b cmake: Remove libunwind-generic as hard dependency -73434a964 Removed debian directory -c3a7cc34f cmake: sdlchecks.cmake: pass cflags to the appropriate cmake variable -ea0bca573 SDL_cocoamodes.m: fix build against older SDKs. -7527c8d3d hidapi, libusb: provide a wcsdup implementation if it is not available. -c6c4d4211 pthread: disable SetThreadPriority for OS/2 too -b26567761 cmake: initial attempt at adding os/2 support. -b424665e0 (tag: release-2.0.20) Sync wiki -> header -5e3f4ccc3 Sync wiki -> header -d8129c569 Mark internal function as static -3e1b3bc34 wayland: Horizontal wheel values do not need to be inverted -a29d3acc9 Updated Bresenham line drawing to match software renderer output -b9d98331c os2joystick: fix uninitialized use of local var 'maxdevs' -17da60068 os2joystick: fix -Wsequence-point issues. -f14c7bb44 added missing hidapi stuff for os/2 with libusb -1f32dd8ed Fixed overdraw with duplicate points, fixed not drawing single point lines -5d07c0361 psp: Force channels to stereo if user requested anything other than mono. -c275436f5 opengles2: Batching lines/points used wrong var for summing vertex counts. -9e6249fa5 wayland: Avoid spurious key repeats when not pumping events -461724d28 wayland: Refactor time fields in SDL_WaylandKeyboardRepeat -fb0c3040c wayland: Avoid infinite loop in keyboard_repeat_handle -3b083b991 Fixed compile warning -b82af9dfb Improved OpenGL point drawing performance (thanks @slime73!) -1a73c45a0 Fixed incorrect color in the OpenGL driver -3cdda8f8a PSP: use 'data' variable which is alread the driver data -9f1e609aa Document SDL_HINT_RENDER_LINE_METHOD in the release notes -4ef2529bf More efficient calculation of render_count -5346c93b6 Fixed assertion on number of points rendered -4b7196203 Prevent overdraw with connected line segments -63d10a0ac updates to config.guess and config.sub from mainstream. -09ece861d Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method -836a4ec7b updates to os/2 build -c1e607983 As an optimization, draw horizontal and vertical lines using rectangles -3da7c6305 Assert that we have drawn the expected number of points -9f56faeed Added line drawing using Bresenham's line algorithm (thanks @rtrussell!) -fe3a33a09 Use RenderGeometry for drawing lines at all scales -0696fc013 cmake: Split SDL2-static and SDL2main into their own target exports -1694782b2 Remove redundant work when render scale is 1.0 -2026a78dc Don't flush in RenderDraw*WithRects() -18e4d9fed Re-enable line drawing path in render drivers -dca281e81 Fixed getting different results for SDL_PollEvent(NULL) and SDL_PollEvent(&event) -93cab32db minor update to test/Makefile.os2 -4472b8312 PSP_RunCommandQueue: fix argument to PSP_SetBlendState() -df1474b46 psp/SDL_sysfilesystem.c: fixed a minor compiler warning. -21914b4e2 updated Makefile.psp and SDL_config_psp.h -f62b80717 wikiheaders.pl: Put the manpages in man/man3 -929463484 Updated to version 2.0.20 for release -cc2013378 render: Fixed some compiler warnings. -289c3fbb6 Revert "We only need to add the sentinel at the top of SDL_WaitEventTimeout()" -1085c317a Use the requested cursor size instead of the default cursor size -6d3b5d66c psp: draw lines with RenderGeometry, same as with the other renderers. -9cb2c549f Remove QueueDrawLines from D3D, D3D11 -b88b6b3c2 Remove QueueDrawLines from METAL -9aac55317 Remove QueueDrawLines from GL, GLES, GLES2 -8ea8b2e69 Use QueueDrawLine if provided, otherwise use RenderGeometry -c49872747 render: Use RenderGeometry to draw lines -4b38d4c96 Leave the Metal view active on the window when recreating the Metal renderer -88ac517df opengles2: Fix point drawing. -957c48b4c Fixed detecting focus change to child dialogs -c477768e6 We only need to add the sentinel at the top of SDL_WaitEventTimeout() -e9134b045 events: Only add sentinels for pumping done inside SDL_WaitEventTimeout() -954858846 Move special sentinel handling inside SDL_PeepEvents() -2592e6219 Clarify that timeout == 0 is handled at the top of SDL_WaitEventTimeout() -8ff216685 Only return from SDL_PollEvent() if the last sentinel is consumed -c9ff90b94 Clarify comment -31f8c3ef4 Fixed event pump starvation if the application frequently pushes its own events -e0c539911 Don't make psp eboot for testoffscreen -5d3f6b021 wikiheaders.pl: Added support for export to Unix manpages. -75ac944b9 check for tpcshrd.h and define HAVE_TPCSHRD_H if it's available. -515b5f2a3 Fix build errors in PSP port -34e34ad5a Remove debug code from PSP renderer -520c89a00 cleaning -09f4711f4 Fix LRU when destroying texture. -c3ec62d6a PSP lazier blend states, display mode report with 16bit option -0f5368fe1 PSP cached blending and texturing state, ABGR1555 stencil hack -fe405eb27 fixed LRU cache code -c1f152292 Spill render targets to ram on PSP -77d874e3c Attempt to make render to texture work on PSP -7967c9761 cmake: Do a more thorough test for the old bcm Raspberry Pi libraries. -f3255df9c Improve audio compatibility in PSP. Now it supports more formats and frequencies -16f5b9e3c Filter jitter on Xbox One controllers when using raw input reports -eca198d51 Don't build an eboot for testgesture for PSP -cd6cb959c Only copy resources to PSP eboot directory if it exists -9d0b4d85f Don't build EBOOT files for all tests for PSP -b2ca62f23 Make sure all tests have the resources they need -6d46e30fe Remove extra / in PSP GetPrefPath -33dccbb38 Make sure GetPrefPath also works without org -419ae29d9 joystick: Move WGI driver initialization after Windows driver -d73bd0d2f dinput: Don't crash in SDL_DINPUT_JoystickPresent if DInput init failed -3ea82eaaf Under MSVC, build project-sources in parallel. -565ef6387 SDL_rwops.c: simplify `foo <= 0` checks to `!foo` with unsigned types. -30f895a5f Update os2.yml -1d918a283 Update os2.yml -39fc1e87e os2.yml: OpenWatcom install fixes -eb3639d3c os2.yml: Fix wget command line -56813d020 Create os2.yml -8f924b82d kmsdrm: Remove gbm_bo_get_offset() -a201c9483 Build tests for PSP in CI -fcb638ff9 Copy test resources to correct directory on PSP -5e84f6384 Rename test directories for PSP and only build PRX if asked -bf2336078 Make tests build for PSP and make them able to launch -cd1f24a99 Add forgotten psppower library to link -120c76c84 Updated copyright for 2022 -8622eda9e SDL_RenderGeometry / software: TRIANGLE_GET_TEXTCOORD interpolates up to the max values included, so reduce by 1 -4b112620a SDL_cocoamodes.m (Cocoa_GetDisplayDPI): fix build using older toolchains -13a9cd479 Adding sysfilesystem driver to PSP -0403fa8aa X11_WaitEventTimeout: remove unreachable return -d0de4c625 Android: fixes build NDK 21d -8f8169986 Only clear IME display options if SDL_HINT_IME_SHOW_UI is off (thanks opxdo!) -e4000c028 video: SDL_GL_GetAttribute needs to operate on FBO 0. -2363ddc33 Fixed crash on Windows Subsystem for Android, which doesn't have a USB manager. -ab6d0d4d5 Fixed undefined behavior in SDL_memset() (thanks andrewrk!) -6a7b63802 Fix macOS cursor jumping to corner on first titlebar click -a35a7d250 Fix SigSegV from displayInfoInvalidate when changing resolution -1c41b5355 macOS: Calculate correct DPI by not using backingScaleFactor -724468ae2 GL renderer uses glDrawArrays instead of glBegin/glEnd. -a1e992b11 Fixed bug #5118 - [Android] PointerIcon leak in Cursor API -5ca0926d8 fixes to visual test MSVC project files. -b8d839c0c remove all unnecessary stuff from visualtest configury. -8a355116d silence -Wwrite-strings in visualtest -71c497a3a visualtest windows build fixes -449ef08dc minimal fixes to visual test, so that it actually builds w/o warnings: -505df1a99 autotools: Fix typo in libgbm print -0673e448f autotools: improved detection of windows.gaming.input.h -83583dc49 cmake: Fix WGI detection with older SDKs -398c0fdff cmake: simplify wayland-scanner 1.15 detection. -54d245106 sdlchecks.cmake: Small tune by @sezero -6c9907dd0 Fixed build on CMake older than 3.7 -3861afacf Fixed build on CMake older than 3.13 -840339c49 SDL_utf8strlcpy: store trailing_bytes explicity as unsigned type. -507d4bcd6 SDL_utf8strlen: run bit-test explicitly on unsigned char -82fc67ae4 SDL_joystick.c: cast the arguments to nibble() to unsigned char. -47d3e96b4 SDL_joystick.c: (unsigned char) cast to SDL_tolower() parameters. -881feca1f CMAKE: fixed cflags check for build type -c31a40246 Fix audio memory leaks due to invalid init (thanks Janiszewski!) -71e3998d6 Make SDL_VideoInit cleanup when errors occur before video driver creation. -8ed0cc430 Fix wrong value for thread priorities following official PSP Docs -44c84c0d8 GLES2/Big-endian: don´t swap datas for yuv textures (Thanks 0x1F9F1 !) -3a69828e8 Fixed GLES2 back-end on Big Endian Platform (see #5093) -61107494a SDL_gamecontroller.c: (unsigned char) cast to SDL_isdigit() parameters. -ced442cd3 SDL_test_common.c: (unsigned char) cast to SDL_isdigit() parameter. -48d1ef8fa another unsigned char cast in os2cp.c. code clean-up in os/2 geniconv. -dac651605 os2iconv.c (_createUconvObj): cast to unsigned char, to be safe. -2052b5bc3 os2messagebox: use proper UCHAR* typecast in assignment, just in case. -ca18bf11e Don't compare raw mouse button state with windows message button state -3d5fcb5da Fix warning -4342e6bd2 SDL_render.c: lighten the cast syntax -50d49c63e GLES2 backend: cast with SDL_Vertex and SDL_VertexSolid -4c9966eed wayland: Add a note for why we check 0,0 for fullscreen configurations -6101499c7 BigEndian: fix code that generates illegal instruction with gcc-4.9.2 on powerpc -0b7b0977f fix PSP texure artifacts -996f30b0e Use lightweight mutex -0341ec93f Improve performance when vsync is enabled and the game is not reaching the 60 FPS -67c4b9963 Fixed enabling udev hotplug detection on Linux -60c3ca49b Vita: disable arm asm blitters and add missing pvr dep -c326ff7c6 Re-enabled the O_CLOEXEC definition so config headers can be fixed -7f5339e6c Document the packed integer formats SDL_Color is bit-compatible with. -3a5e148b1 Renderer backends use SDL_Color instead of int for geometry colors. -086c74556 Fixed build warning on iOS -b08e57e92 Don't try to create a vbo if we aren't using any vertices -b7885abc4 Fixed bug #5087: SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color* -323ba6c00 d3d11 renderer: reduce vertex bandwidth and calculations. -2b6b69fb1 fix assertion failure in sndio audio caused by the recent hotplugging support -8927d73b1 RenderGeometry: simplify casting (Thanks Daniel Gibson) -d7f66ba1e Remove strict aliasing warning in opengles2 backend -3e43d6e34 SDL_RenderGeometry: remove some warning "dereferencing type-punned pointer might break strict-aliasing" -e2ade2bfc Fix build against wayland 1.20 -9da93d074 video: x11: Set XImage's byte_order field (fix #5081) -e7f84c20b Fix a typo in comment. -66fbf00e7 Temporarily ignore gl_config.driver_loaded check in Cocoa_GLES_SetupWindow. -cb8fa5f9c wayland: fix keycodes of swapped xkb modifier keys -615f7b445 more updates to os2 makefile for libiconv -b6d40b29a minor update to os2 makefile. -8d14e6ea4 replaced use of _MAX_PATH with CCHMAXPATH in os/2 code, -1940d289b SW Renderer: fix invalid read if VSYNC hint is initially set with an empty value (eg "") because: - GeHint return a value pointer. - SetHint free internally the pointer - The -now invalid- pointer is re-read -9409642e0 fix some warnings from vita builds (missing includes) -21d46b7e0 PSP renderer fixed -6f6382f8d Fix SDL_GameController API for PSP (#3) -da0f76de6 cocoa: Don't round scroll deltas from trackpads -8cee50eea removed stdlib.h from SDL_psp_main.c now that exit() is gone. -4facca0bf made Makefile.psp to build libSDL2main.a -00014dc2a fix some warnings from psp builds (missing includes.) -da5dbb476 Fix SDL2main on PSP (#5076) -2d673e5b5 evdev: Add support for REL_WHEEL_HI_RES and REL_HWHEEL_HI_RES -493d45f00 minor tidy-up in cmake script. -f266d9228 psp/SDL_sysjoystick.c: fix -Wshadow warnings. -801dcbc5e SDL_render_sw.c: fix -Wshadow warnings. -e17a3154e Fix build issue -7266cf66c Clean up PSP render code to fit C standard used better -07608bf45 Fix ISO C90 violations in psp render code -897c7cfa8 Make sure SDL_VIDEO_RENDER_PSP is set -bfbdf8969 Add automated build for PSP -a79b64263 Make SDL2 able to build or PSP with cmake -21fd0047e Initial for building PSP version with CMake -d09f80ef1 SDL_DrawPointsF: fix error message typo -6dafc8501 SDL_DrawLines: minor simpification: - scale is 1.0f, don't need to multiply - typo in error message - remap SDL_DrawLines to SDL_DrawLinesF -a0818a63e Fixed bug #5071 - Float conversion warnings in SDL_render.c (see also #5003) -9ae56cb35 events: Add logging for SDL_MOUSEWHEEL preciseX/Y fields -03019c912 autotools, cmake: tighten Xfixes check && explicitly test BarrierEventID -a709b5b60 video: wayland: Handle 0x0 xdg_toplevel_configure in fullscreen -2f0edc290 IAudioClient::SetEventHandle Parameter eventHandle Should not be NULL -b7a0200aa Update 2.0.18 release notes with CMake prefix change -a887b8e28 SDL_test_common.c: replaced all printf() calls with SDL_Log() -5056b29b0 Fix the wrong int size for fcitx capability. -d68b429cf [ios] Fix failing to link iconv when build using CMake -514f5858e autotools: disable static builds on os/2 -e14d10263 Change viewport and cliprect to float version: from SDL_Rect to SDL_FRect -7828362da SDL_Renderer software, D3D11: don't use "renderer->viewport" in back-ends, but use the one from SETVIEWPORT cmd -a2b13e585 SDL_iconv_string: avoid memory leak if realloc() fails. -f14a8bfa4 fix whitespace. -b71bfdaaf SDL_iconv.c (encodings): mark "WCHAR_T" as ENCODING_UTF16LE for OS/2 too -cbe97cbf7 Added a step necessary for running on a real device -66b0a6ee1 workaround for libmali gbm_device_get_fd() -0c7c4bfcf docs: Don't let Doxygen expand HOME environment variable -339f0d409 configure.ac: adjust os2 section for system iconv() use. -563ef2aeb regenerated configure scripts. -efa1aa9a8 initial attempt at adding os2 support to autotools -335546407 libtool upgrade to 2.4.6 - 18/n: SDL customizations -5ae2f0fd1 libtool upgrade to 2.4.6 - 17/n: SDL customizations -6a5aeaf94 libtool upgrade to 2.4.6 - 16/n: Fedora ABI-specific directories patch: -792d7c9f6 libtool upgrade to 2.4.6 - 15/n: -Xassembler and -Wa,* support : -8c44e0e0f libtool upgrade to 2.4.6 - 14/n: support for MidnightBSD -a6df1f7be libtool upgrade to 2.4.6 - 13/n: add mingw to systems not needing libm. -897efe183 libtool upgrade to 2.4.6 - 12/n: fix preloading symbols on Solaris 11.3 -b5dc1eedb libtool upgrade to 2.4.6 - 11/n: FreeBSD elftoolchain strip support -3cbd56169 libtool upgrade to 2.4.6 - 10/n: export AIX TLS symbols fix -27666089b libtool upgrade to 2.4.6 - 9/n: fix func_fatal_error function name typo -4be6ab269 libtool upgrade to 2.4.6 - 8/n: set file_list_spec to '@' on OS/2 -83a22d059 libtool upgrade to 2.4.6 - 7/n: fix an os/2 typo -e8881b0d3 libtool upgrade to 2.4.6 - 6/n: fix typo introduced in libtool-2.4.3 -8b13673c1 libtool upgrade to 2.4.6 - 5/n: fix linker error for powerpc64le -8e6206381 libtool upgrade to 2.4.6 - 4/n: fix m4 quoting bug -df4026825 libtool upgrade to 2.4.6 - 3/n: fixes for gcc/clang linkage -647514a5d libtool upgrade to 2.4.6 - 2/n: support macOS 11 -c8ddccdef libtool upgrade to 2.4.6 - 1/n -662ea5abe minor correction after previous patch and minor tidy-up. -70c5e91d0 os/2 optionally builds against libiconv. -b20484e80 minor os/2 reorganization for iconv -8c91cf7db Always create a full 256-entry map in case color values are out of range -056c09942 Updated iOS build instructions -a4c04ad23 Fixed building with iOS SDK prior to 13.0 -8589134f1 Fixed potential buffer overflow in YUV conversion -09465a908 hidapi, windows: replace a strncpy() with plain memcpy() -5fc901d4f Updated to version 2.0.19 for development -2e9821423 (tag: release-2.0.18) Aded a patch note for relative mouse mode over RDP -715d48127 windows: Fix GUI key state when grabbing the keyboard -b6bc3a6b0 Added a mapping for the PS4 touchpad button on Windows -4b571c624 Added an option to map the touchpad button for Sony controllers -f6fdbc1e3 video: x11: Fix an invalid SDL_LogError() call -3ba9276af Don't fail the sensor init if we couldn't create a sensor manager (i.e. we're running on Wine) -6872cb12e null-terminate the message buffer if FormatMessage() fails -b5d47aa29 Fix comment style for old compilers (`//`⇒`/**/`) -367684b0c Add patches suggested by @slouken in round 1 review -9c03d2554 Add back X11 legacy WM_NAME encodings -72e53e4b8 wayland: Clear driverdata before calling ResetDisplayModes -ede73b4cf testnativeos2.c: make its code style to match SDL2. -942973dd8 Use mouse ID 0 for raw mouse events -f1c15aa32 Tests cover the latest SDL features -976328bb0 Fixed ABI break in SDL test header -dd2f91118 Fixed warnings with Windows SDK 10.0.19041 -c2904c8ce Fixed compile warnings and errors -8f17af5e2 hidapi: mark libusb function pointers with LIBUSB_CALL. -6c25aed41 added hint for joysticks to stablize sixaxis & dualshock controllers (#5007) -a6cbe0ab8 Controllers are always centered at zero using XInput and WGI -aa1d76e82 Added a patch note about WinRT/UWP WGI support -09b7ca27d Get the current WGI controller list at startup -12895eca1 Fixed WGI initialization on Win32 -110e4e133 Use WGI instead of XInput for Windows 10 UWP apps -e04a0221e Fixed crash running SDL test programs on UWP -5a0ea7fb1 Check for O_CLOEXEC definition in fcntl.h at configuration time, -f903a39e1 haptic: Fix SDL_MouseIsHaptic() always returning SDL_TRUE on Android -11a9cd634 Fixed building SDL on UWP -3008b005c Include SDL_hidapi.h in the public headers -02021ae75 Return capabitlities from RawInput joystick -b786c1001 SDL_render_gl.c: GL_RunCommandQueue: always set viewport_dirty on macOS -4f683f01d Fixed potentially truncated entry in stack trace -5f1558ffe Fixed detecting Raspberry Pi 2/3 video support on Pi 4 -4e5839a5f Fixed compiling for Raspberry Pi -86c0cf2bb software: Draw a single pixel for a line with the same start/end point. -a2e856523 The Google Pixel fingerprint sensor isn't actually a joystick -cb2f3bedf tidy-up a comment in cmake script -67b5de5b4 Fixed build warnings -2ca2ad76d Fixed build warnings -b6c1cfb93 Added API changes in 2.0.18 -f90164a62 Fixed mapping for the G-Shark GS-GP702 -22e59cd10 CMakeLists.txt: update DYLIB_CURRENT_VERSION too 2.0.18 for release -7242075b2 Updated version to 2.0.18 for release -d86182046 SDL_JoystickGetAttached() doesn't need to be noisy for NULL joystick -30f04d63e HIDAPI is only reliable on Android 4.3 and newer -d713a6807 pulseaudio: wait until at least 1/8th (!) of the mixbuffer is available. -eb39e2058 SDL_endian.h: remove aarch64 asm. -53aa8eec5 minor cleanup for watcom _inline keyword. -3c71f8939 Sync wiki -> header -57520cbde Improve documentation for input grabbing functions -2fa35757a cmake: Weak link to GameController.framework to handle older OSes -bc409163a cmake: Detect SDL_JOYSTICK_MFI for macOS -d5813776d Release UDEV ressources -5cb85d611 CI: Add iOS and tvOS builds -b99510836 SDL_mfijoystick.m: Fix -Wshadow warning -e77cfb9a1 Fixed d3d11 renderer creation -d9f70878f don't use CMAKE_COMPILER_IS_MINGW -57366285d Only send display events for hotplugged displays, not the initial state -a3c05d2f3 Added debug output for display connect/disconnect events -b7f9c2089 cmake: handle warning flags properly (thanks to hgs3 for pointers.) -f8900583e removed windows winmm joystick driver -d2871a348 testhaptic.c, testjoystick.c: fixed -Wshadow warnings. -e6a4230de Revert testevdev libc changes -3eaa80bb0 testgamecontroller.c: fixed -Wshadow warnings. -370b8318a testmouse.c: fixed -Wshadow warnings. -381f99a3f Fix warnings: re-add enum forward declaration -dd6817b3b Fix warnings: static function, {} initializier, un-needed enum forward declaration -fae703490 Fix warnings: static, include, un-initialized vairables -2a24418bd More "Integer overflow generates Illegal instruction under sanitizers" (see bug #4995) -e5467af7c Minor change comment -9c72adc86 More "Integer overflow generates Illegal instruction under sanitizers" (see bug #4995) -8dd6edec0 Fixed bug #3232 - Integer overflow generates Illegal instruction under sanitizers + see bug #4995 -e18be04bc Fixed undefined behavior in QueueCmdSetDrawColor() -c878d9a0a Haiku: comment this should not be SDL_free() -c0029f01d remove 'free' in comment -aef710540 Use SDL_free -2004aaf3b SDL_wave: use SDL_free -0445c13aa Remove 'malloc' from comment -155db97d1 Remove 'malloc' from comment -c3633d2c9 Haiku: use SDL_malloc -79b37cc55 Pandora: use SDL_malloc -10ffcbb11 QNX: use SDL_malloc -e72beeb2a Remove 'malloc' from comment -38cfe25bc Remove 'malloc' from comment -4d566e5d5 VITA, PSP: use SDL_malloc -9fcc630fb X11: use SDL_malloc -19bf36db1 DirectFB: use SDL_malloc -8fb19d212 Vita: unneeded include -e702a4e52 PSP: un needed include -8e851a277 Remove malloc from comment -0ef9d2662 cpuinfo: remove malloc from comments -5699e0fa0 visualtest: use SDL_malloc -30338beb6 Minor comment -fb218e582 PSP: use SDL_malloc/SDL_free -f1582f549 Fix comment -5a7a7ba57 Don't use "realloc" in comment so that it doesn't show up -b4aeaa30a Use SDL_calloc / SDL_free -cb9f85e8d Don't use "round", so that it's doesn't show up while searching for the function -6fb50bd0a Don't use "exp" as a name so that it's doesn´t show up with searching for the function -161dd83c9 Don´t use "trunc" as var name, since it's also a function -d31251b01 use SDL's functions version inplace of libc version -35b7ce189 cmake: final report fixes for mmx, ssemath, dummyvideo, wasapi, xinput. -34d9c2e28 fixed typo: ervironment to environment -ee2afa00b SDL_mfijoystick.m: fix build using older toolchains -1927c0803 minor tidy-up to configury. -c97b72186 Added SDL_PremultiplyAlpha() to premultiply alpha on a block of SDL_PIXELFORMAT_ARGB8888 pixels -49369142b Fixed bug #4625: with integer scale, viewport (as reported by SDL_RenderGetViewport) becomes -2147483648x-2147483648 0 isn't valid scale. Min integer scale is 1.0f -a0cb079a4 Fixed bug #4982 - Failed to open audio_device on OpenSLES / Android 5.x with freq 96khz+ -ceb9e9a80 cocoa: Removed a debug printf call. -18715acb5 cocoa: Position non-left mouse button events in background windows correctly. -343fa6121 hid: fix inconsistent indentation -db60b2718 hid: Only enumerate IOHIDDevices that are likely to be joysticks -23b7bdef8 offscreen: Don't fail to create a window because of driver_loaded politics. -fadf41fc6 remove excess whitespace -504e7aa59 minor tidy-up for ifdefs & co. -cd86e269e Fixed bug #4982 - Failed to open audio_device. Android 5.1 should be ok. -aeff8748a configure: Allow building of the "offscreen" video target. -e86d4bde5 test: Makefile should copy unifont file, for testime.c to use. -61881eb0a docs/README-macos.md: Updated Xcode instructions. -b6e8651ae Audio 6.1 should be allowed now (see #4974) -b6d365677 Fixed bug #4982 - Failed to open audio_device on Android 5.x with freq 96khz+ -495ee42a8 testcustomcursor.c: replaced libc sscanf with SDL_sscanf -990fb668f tests: several -Wwrite-strings fixes. -665865eda If the hardware is in an error state, the final page flip may not come. -6828955dd Trim any extra platform strings from mappings when they're returned to the application -116a002b1 build-scripts/gcc-fat.sh is no longer supported. Use clang-fat instead. -881a67492 rawinput: Only access SDL_RAWINPUT_mutex if initialized -1237142be joystick: Quit drivers in reverse order to ensure dependencies are not broken -b67965979 SDL_hidapi.c: fix SDL_udev.h include path -3ed0c6267 SDL_RWsize: updated description -0fddda6e5 Sync wiki -> header -e52683099 Sync wiki -> header -3f978c0f9 include: Improved documentation of SDL_RegisterApp and SDL_UnregisterApp. -09bf12e03 fnsince.pl: SDL_UnregisterApp() also arrived in 2.0.2. -7f70f6e1e include: Note that several rwops functions used to be macros before 2.0.10. -319d2b3e0 Sync wiki -> header -83024f329 fnsince.pl: Whoops, it's SDL_RegisterApp and not SDL_SetMainReady in 2.0.2. -16a1721e9 Sync wiki -> header -46f12cc7f fnsince.pl: SDL_SetMainReady() originally arrived in SDL 2.0.2. -a7a54e645 wayland: Add support for display connect/disconnect events -c2464653d Remove unnecessary clang-cl check since Clang has __builtin_bswap. -6b66542e7 Fixing compilation errors for VS2019 Clang toolset (fixes #4702) -5be8a2211 Add audio conversion from/to 61 -dd6269b1e SDL_endian.h: added proper version check (VS2005+) to MSVC functionality -d2cf19193 hidapi, linux: merged a minor warning + code style fix from mainstream. -43d1b42a5 cmake: Sync build config options with autotools -7d3045f27 minor whitespace tidy-up. -29b79313a minor tweak for a slightly smaller configure script -68ffd24c5 autotools, cmake: don't define SDL_JOYSTICK_HIDAPI in CheckHIDAPI() -5cc23868e wayland: Add support for SDL_DisplayOrientation -40d808620 SDL_classic_joysticks defaults off -7ad64357e Updated Android build environment for examples -66058bbbd Fixed exception accessing Bluetooth devices on Android 12 -be5b4d980 Added nativeGetHintBoolean for Java code -9ec2b3514 Fixed the GLES2 shader count to be in sync with the enum -2f591fb0a Added android:exported="true" to the example Android manifest -b649314d6 Add comment to audio clipping (see bug #4104) -d4df5d33c GLES2: prevent batching if blend mode changes (see bug #4964) -92f2fdfc8 GLES2: batch non joined lines (see #4964) -17f156fae Fixed bug #4964 - opengles2 & batching = conjoined lines put back the initial switch case because groups of joined lines cannot be batched. -d8888e468 Fixed bug #4964 - opengles2 & batching = conjoined lines -193ab28fe Renamed README-macosx.md to README-macos.md -4edf2df5c Unix2dos'd README-macosx.md. -bbac1e9ad Don't include pthreads code when threads are disabled -93556e67e Update AndroidManifest.xml -b9c619017 [Android] Limit WRITE_EXTERNAL_STORAGE to SDK 22- -cc094f4d7 Fixed building with the macOS 10.8 SDK -d7d67af44 mouse: Fix Y value in motion events when confinement is active -fb6aba193 Updated SDL_egl.h with the latest Khronos headers -1cd3e8375 cocoa: Fix abort on touch event types without a subtype -781caec2b SDL_waylandevents.c (keyboard_handle_keymap): silenced -Wwrite-strings . -5c067906b wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR -3eb9bfac7 win32 rawinput & wgi joystick: avoid -Werror=declaration-after-statement -73a41f405 Removed outdated build-scripts/iosbuild.sh -c55ab9631 Added a hint for alternate OpenGL NV12 data format -8a6e48d46 constified SDL_RegisterApp() -7dfd22ac5 fix XGetDefault signature - its first and second params are _Xconst -c7aa04d03 SDL_test_harness.c: avoid -Wwrite-strings -be7b663c2 audio/winmm/SDL_winmm.c (SetMMerror): constify. -e4aa608a5 change (char*) casts to (const char*) in WIN_UTF8 macros -780f6cbd3 build libSDL2_test too with Makefile.minimal -eb98ff474 testmessage: Fix overread of stack variable -fbe810070 more fixes to standalone makefiles. -62b41f61d fix build of testmouse.c -2d1706069 fixes to Makefile.minimal -d1e6bd93d fix library name in Makefile.pandora -674f361de wayland: Fix memory leaks in clipboard code -3e2f8668b added some more missing sources to standalone makefiles. -c8061ed2d alsa: Fix possible uninitialized string -a2c27d39c SDL_hidapi_switch.c (ConstructSubcommand): lose use of '&' on rumbleData -6ad0fb846 SDL_hidapi_ps4.c, SDL_hidapi_ps5.c: use SDL_zeroa() -70c8d20a4 Revert previous commit a50ca98e2b9ca10368b62e93b6a0977dc68fd584 (see bug #4625) -a50ca98e2 Fixed bug #4625 - SDL_RenderSetLogicalSize issues viewport becomes -2147483648x-2147483648 when logical_w/h is greater than window size. division should be done with floats -a948ff849 SDL_hidapijoystick.c: worked around a bogus 'unreachable code' warning. -eb3f1462b x11: Fix memory leak in X11_CreatePixmapCursor() -f124259e5 testautomation: fix use-after-free when restoring hint value -704edf632 audio: Fix crash calling SDL_OpenAudio() after SDL_AudioInit() fails -78013aeef alsa: Fix use-after-free when reinitializing -e688a95ba updated os2 makefile for tests -2cf937427 minor update to docs/README.md -3dc7813ae more whitespace tidy-ups in SDL_os2messagebox.c -c2dd50a9a Fixed whitespace -4a1524350 updated linux dependencies for libXfixes-devel. -074e613bb Fixed typo -35d90f17e Better implementation of SDL_SetWindowMouseGrab() and SDL_SetWindowMouseRect() on macOS -fa3330bae autotools, cmake: test Xfixes along with XInput2.h: -c3a4a6a03 mark Android.mk as non-executable -5fc7a90a8 Fix refcounting in SDL_hid_exit -97c71371f If Android version >= API 31 PendingIntent.FLAG_MUTABLE "If your app targets Android 12, you must specify the mutability of each PendingIntent object that your app creates. This additional requirement improves your app's security." -162772aa6 Fixed build warnings on Android -544d2e6aa Don't try to load hidapi at startup on Android -33735d599 mark Android.mk as non-executable -50971577e dinput: Fix memory leak when SDL_DINPUT_JoystickPresent() returns true -ed05a0e9e Fixed exception trying to get USB permission -acb602d60 minor style adjustment -3bf7994fe Add and use `SDL_FALLTHROUGH` for fallthroughs -c877dd93c The hidapi code is now built into SDL, we don't need to load a shared library for it -9c3bcf8e8 Added SDL_hid_ble_scan() for pairing Steam Controllers on iOS and tvOS -abc12a832 Revert "Add and use `SDL_FALLTHROUGH` for fallthroughs" -36b2690e4 Moved SDL HIDAPI functions into a single block for the ABI -cfbae8b96 Sync wiki -> header -fe09a4930 joystick: Add APIs to query rumble support -afccabb88 joystick: Add capability flags for rumble and trigger rumble -1ccfbf963 joystick: Convert HasLED() into a generic GetCapabilities() function -1ba695dc9 whitespace between '#' and 'cmakedefine' does not seem to work.. -911d91c55 Retry hid_send_feature_report() if the ioctl() fails with EPIPE (e.g. the device stalled) -a3648e26d Sync wiki -> header -b15e880e7 Fixed open functions in the SDL_hidapi.h header -1e159bc6f Include standard wrapping for SDL public headers in SDL_hidapi.h -b9b0df40b Fixed Linux build -76e3bb55b Sync wiki -> header -c9ada1c14 Made HIDAPI device change notifications available via SDL_hid_device_change_count() -77a1ad1c6 minor update to os/2 readme. -63ae103cd wayland: QTWAYLAND_CONTENT_ORIENTATION can support multiple values as bitmasks -ebed961cb Fixed build with older Linux kernel headers -a0f8afb59 Separated the HIDAPI subsystem from HIDAPI joysticks -11ae43ca1 Only lock the pointer for mouse relative mode, there isn't really a concept of grab and confinement on iOS -66a08aa39 Add and use `SDL_FALLTHROUGH` for fallthroughs -828a0a4a1 Fixed mapping for PS4 controller when using the classic Joystick interface on Linux -dc9de1e2b Get the correct USB VID/PID information for /dev/input/js* devices -bd92a95f2 Cleanup for the /dev/js* support (thanks @meyraud705) -3090812e1 Convert last SDL_IOReady()'s 2nd parameter to flags -1c78b0800 Added support for /dev/input/js* on Linux -65a50b243 Re-enable udev joystick enumeration by default -dfb834d3d Track button state for each mouse input source separately -cb4491ca6 Sync wiki -> header -eda4c4073 Make sure the X event is an Xkb event before checking the Xkb event type -a1c125c1f fnsince.pl: Report unreleased APIs as part of the next release version. -b42ae3dbf Sync wiki -> header -98c983628 Don't clobber the error in SDL_ShowMessageBox() if one has been set at the platform level -dca5ce4ea Clarified that AAudio is only used on Android 8.1 and newer -dc4c7d953 Fixed infinite loop in SDL_vsnprintf() if the format string is too large for the output buffer -d5032582e Use consistent language between SDLTest_AssertPass() and SDLTest_AssertCheck() -6c4b4ee7a Don't assert on API parameters -fed857787 Update the orientation and display modes when the display settings change on Windows -c0f1109bd Implemented querying the orientation of displays on Windows -3a31a4502 End the scene before resetting the D3D device, since we'll start with BeginScene after that. -6b64c47b6 haptics: Enumerate XInput/DInput joysticks after haptic init -6f9909b60 These functions made it into 2.0.18 -0d9879369 testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936) -27ce91446 Send absolute mouse motion when in normal mouse mode and relative mouse motion when in relative mode on iOS -19c129fab Added documentation that the UIApplicationSupportsIndirectInputEvents key must be set to true in your application's Info.plist in order to get real Bluetooth mouse events. -a7e2e3a32 Fixed rendering in the iOS touch demo -7681929cb Don't send the initial joystick axis event if the application is in the background -d31f90d9e Don't send game controller touchpad or sensor events unless the application has focus -d2f756360 When making the window centered it should use windowed mode size since it doesn't affect fullscreen windows -1fc25bd83 Properly position the IME window(s) on windows -04f42e046 metal: Deal better with -[CAMetalLayer nextDrawable] returning nil. -8f63e9ff6 cmake: use generated SDL_config.h to build SDLmain static lib -3a82e432f cmake: Moved back to requiring merely CMake 3.0.0. -cfdbd6acc docs: Modernized README-macosx.md and cleaned up the Markdown a little. -0f2bf6293 Fixed building hidapi when libusb is available -7b9fe52e1 We're no longer building a separate shared library for hidapi -e8731933c Fixed warning: macro is not used -c7065bf42 Fix warning: declaration shadows a local variable -715e7bda2 haptic: Don't enumerate joysticks if the joystick subsystem is active -b2ce22a07 added src/hidapi/*.c to sources in standalone makefiles -ae67c7d2d Implemented SDL_SetWindowMouseRect() on Wayland -18e69827a Fixed Linux build -881f747d5 Always destroy icon -7fea557b9 SDL_windowsmouse.c: Remove LR_COPYDELETEORG flag -67c42cb44 Fixed Windows build -fd79607eb Added SDL_GetWindowMouseRect() -4db546b09 Implemented SDL_SetWindowMouseRect() on macOS -037030a7a Install SDL_hidapi.h -9c95c2491 x11: Use XCheckIfEvent() instead of XNextEvent() for thread-safety -e9dae813d CI: disable fail-fast to avoid aborting build when one platform fails -2d23d66a6 Fixed SetWindowMouseRect return value on Windows -7d21322df Implemented SDL_SetWindowMouseRect() on Windows -684b3b312 regenerated configure script. -4b42c05ba video: Add SDL_SetWindowMouseRect. -1a98dcb6a Revert "include: Updated SDL_config_emscripten.h from emscripten-ports." -dcc919096 autotools: initial adjustments after the recent hidapi changes. -2636d839e cmake: add hidapi to 'SDL_SUBSYSTEMS' -1739ef3ee sdlchecks.cmake: remove libusb/hid.c and SDL_hidapi.c additions to srcs -36067fa12 cmake: include hid.cpp in android sources -84138b771 minor update to os2 config file. -001aa4dab cmake: more hidapi fixes. -a3e8fd49e Cancel any accumulated mouse wheel motion in the opposite direction when the wheel direction changes -5dbbc8e61 Added mouse wheel deltas with floating point precision -d95a52c9a Fixed comment typo -fc998b8ec wayland: Return true for HasScreenKeyboardSupport only if no physical keyboard exists -4bbbe5f84 Fixed CMake build by adding hidapi files -b8327a4a4 Added SDL_HIDAPI_DISABLED so it can be disabled like other SDL subsystems -2a6feb501 Removed accidental debugging commit (thanks @DomGries!) -6c56e2751 Set both _NET_WM_NAME and WM_NAME so SDL windows can be shared in the browser. -301819cd1 SDL_windowsmouse.c: Fix WIN_CreateCursor does not scale with system cursor size preference -f61b10dcf Do more robust validation of devices passed to the SDL HIDAPI functions -dd8c35484 SDL_hidapi.c: avoid possible NULL pointer dereferences. -2a904aa1c os2: remove SDL_hidapi duplications in makefile, disable it in config. -5b646cd19 Build hidapi code into SDL as a new public API -94c1276a5 emscripten: Decrease vertical scroll speed by using deltaMode -6657cbce8 include: Updated SDL_config_emscripten.h from emscripten-ports. -f6dc47cae WGI/DInput: Fix SDL_IsXInputDevice() checks when RawInput is enabled -74f35a7cb Fixed documentation -301389cec Fixed iOS build -b3e909dc4 WGI: Fix SDL_IsXInputDevice() for Xbox One controllers -dd85cc019 Fixed whitespace -80d19282f If Android version >= API 23 PendingIntent.FLAGIMMUTABLE -b8c00bf91 Allow opening joysticks that are read-only on Linux -0323d983c Add the platform to the game controller mapping so it can be read back in without changes -d950b9e2d emscripten: Make timers work (if used with emscripten_set_main_loop) -fe2fe2904 Backed out accidentally committed PR https://github.com/libsdl-org/SDL/pull/4849 -86bc65a74 Fixed non-Apple builds -637bcd0b7 Fixed build warnings -e14358265 Cleanup sfSymbolName support and add them to the dynamic API functions -149e5c656 Support returning sfSymbolsName for gamepad controls on macOS / iOS / tvOS -cdb4d8f22 Added a test case for snprintf of 0.0 -3acb17253 stdlib: SDL_snprintf now adds decimal places for ("%f", 0.0). -2008f2a8a SDL_test_font.c: fix type of SDLTest_CharTextureCacheList -a0e055a7f testwm2: add mode menu, click on a mode to call SDL_SetWindowDisplayMode -70f7ebe63 SDL_test_font.c: add ability to draw on different SDL_Renderers -6312aaea0 WGI: Add workaround for delayed callbacks after WGI_JoystickQuit() -35b0baaa7 Unfixed typo -1d40c69a1 Fixed typo -2248a5493 Update the focus in case we changed focus to a child window and then away from the application -5de723749 SDL_config_windows.h: detect winsdkver.h using __has_include() -c48c81bd1 docs: List the required Fedora packages in README-linux.md -6407d4b0a remove unnecessary parentheses from SDL_abs() -6cbee0634 include: Swap parameter names in atan2 functions -7f308abb5 cmake: Only prevent MSVC codegen using the CRT if SDL_LIBC=OFF -d8b53e821 direct3d11: fix SDK version requirement for non-CMake build -802e17aad autotools: added windows.gaming.input.h (and SDL_JOYSTICK_WGI) detection -2371b247f windows: improve feature detection consistency between CMake and non-CMake builds -839ca0ea6 SDL_OpenURL (macOS): try to open path if the url cannot be opened (#4830) -e2ba84a53 testtimer: Be more like the C90's. -4ab7ee192 testtimer: Add basic sanity check for SDL_GetTicks*() -8593076da Fixed whitespace -62629c2b5 Fix 64-bit timeval/timespec delta calculations -6d5edfa73 Fixed crash on Android 8, due to bugs in AAudio implementation -c948b9366 Added note for Android 12 API level -43ddc59fa Export SDL_LinuxSetThreadPriorityAndPolicy() function (#4877) -848d7b125 Vita: Implement command batching -3f7a94fc9 Vita: Remove FillRects -f73376ae2 events: Add logging for SDL_CONTROLLERTOUCHPAD*, SDL_CONTROLLERSENSORUPDATE, and SDL_SENSORUPDATE events -2379c5284 os/2: Don't try to be clever with the 32-bit GetTicks fallback. -d78cb9e90 testtimer: added SDL_GetTicks64() calls. -228219dcd include: Improved SDL_GetTicks*() documentation a little. -cca79d32a android: Patched SDL_GetTicks64() to compile. -affb183ea unix: Fixed SDL_GetTicks64 function signature. -99c9727dc timer: Added SDL_GetTicks64(), for a timer that doesn't wrap every ~49 days. -0d631c741 CI: Build tests for Windows, macOS, and Linux -210713a60 cmake: Work around bug in opengl32.lib detection on MSVC ARM64 -77141e84e cmake: Fix test linking with MinGW -618b0d414 cmake: Remove SDL2_test_resources dummy hack -16845eef2 cmake: Add SDL include path when building tests -7e8469d19 cmake: Fix MinGW build break in WGI joystick driver -fba82ad1c Remove sceGxmFinish from RenderPresent on Vita. Make sure that rendering is finished on render texture during locking -f3640e26a tests: minor update to acinclude.m4::pkg.m4 -cc3fe1a18 tests: don't fail configury if libunwind is not available. -c40162779 testsurround.c: remove unnecessary libc includes and stdint.h types -e28e39933 testsurround.c: add missing newline at end of file. -a01aaf053 Fixed compiler warning -cd66c050f testsurround: Add surround sound channel tester -27369b3e4 docs: Add README-riscos.md -ce0938916 Add RISC OS builds to GitHub Actions -4d3da5b75 riscos: Disable the mouse pointer for now -1c256b892 riscos: Fix enumerating screen modes -5a3c97f3a riscos: Fix detection of the current mode -53b3db0c5 Handle the KMOD_SCROLL modifier on RISC OS -1268984ed Implement mouse input on RISC OS -f7f54f0d0 Implement keyboard input on RISC OS -f8a8ca3e1 Support proper mode switching on RISC OS -fe9bb7476 riscos: Refactor framebuffer code -25c71748a Add a barebones RISC OS video driver -a55986496 x11/wayland: Fix signal handling while blocking in WaitEventTimeout() -c97c46877 core: Convert SDL_IOReady()'s 2nd parameter to flags -81fe2ccb9 cmake: Add missing SDL_JOYSTICK_WGI in config step -8a4a282aa alsa: Make hotplug thread optional. -26706319d Ignore the ASRock LED controller, it's not a joystick -ac54d57aa event: Check subsystem initialization before events or devices -1bc6dc3ea event: Cap maximum wait time if sensor or joystick subsystems are active -2bf36bfac wayland: Implement WaitEventTimeout() and SendWakeupEvent() -378c5d7ff make aclocal install relative -c7dafb155 Sync wiki -> header -6b8e880a1 checkkeysthreads: Create a renderer for window display on Wayland -179a04f85 fnsince.pl: Don't print out the version numbers if updating the wiki. -85edbc92a fnsince.pl: Added a way to sync this information to the wiki. -f5de45aec fnsince.pl: Found a few more incorrect versions. -e8fbcf893 fnsince.pl: a script to list version when all public APIs were added. -1c6414603 Sync wiki -> header -9c799802c Vita: fix IME input languages -7ac0c73af regenerated test/configure -c57bcb47b test: Fix building with libunwind under autotools -fdb27e0b0 cmake: Use host wayland-scanner only (#4873) -408a93a1e wayland: Use multi-thread event reading APIs -4960cc3dc Fixed a few warnings -b79339459 SDL_Renderer: make clear that we use render geometry for fillrect/copy/copyex when there is no specific back-end implementation (currently software, PSP, directfb) -b3f9d8f38 remove unused local vars after the latest commits. -502e9c3b4 SDL_Renderer simplifications: - Factorize PrepQueueCmdDraw{,DrawTexture,Solid) into one single function - Change SDL_Texture/Renderer r,g,b,a Uint8 into an SDL_Color, so that it can be passed directly to RenderGeometry - Don't automatically queue a SET_DRAW_COLOR cmd for RenderGeometry (and update GLES2 renderer) -23e252bfc DirectFB: provide RenderCopyEx via RenderGeometry -79732c9d1 Remove FillRects from back-end, where RenderGeometry can be used -f02ad2820 Remove FillRects from back-end, where RenderGeometry can be used -70b10c753 Use correct indices when using RenderGeometry / FillRects -16beed9ae Less code since color is constant when done with triangles -99a346439 OpenGLES2: LINES and POINTS successive commands are combined into a single draw call (using the same case for DRAW_GEOMETRY) -f0cdc1d0f OpenGLES2: remove FillRects, since it's can be done with RenderGeometry -37c39d5cb Use geometry to implement FillRects -b0eef52fe GLES2 batching: probably need to check for blendMode changes -c27e1249e Remove SDL_HAVE_RENDER_GEOMETRY define -77026f673 Metal: remove RenderCopy and RenderCopyEx from back-end -0e5160a05 VITA: remove RenderCopy and RenderCopyEx from back-end -73f4ab4c1 Direct3D11: remove RenderCopy and RenderCopyEx from back-end -ab758398a Direct3D: remove RenderCopy and RenderCopyEx from back-end -1fe7e3616 OpenGL: a few opengl functions become unused -88548070a OpenGLES: remove RenderCopy and RenderCopyEx from back-end -d19251542 OpenGL: remove RenderCopy and RenderCopyEx from back-end -b92056bbe OpenGLES2: remove RenderCopy and RenderCopyEx from back-end -76f9fb96d Use RenderGeometry to implement RenderCopy and RenderCopyEx at higher level -08797adae opengles2: Attempt to batch RenderCopy calls into a single glDrawArrays call. -1f0eb03a7 Fix PS5 mapping with HID-PLAYSTATION driver (#4675) -f499168c2 x11: Use SDL_IOReady() instead of calling select() directly -ba4ef461e macOS: Fix implicit integer downcast warnings -d9d8f51ee wikiheaders.pl: Add support for deprecated functions. -dbe55350c include: Improve doxygen text on SDL_GetRevisionNumber(). -a76b73dd2 kmsdrm: Use SDL_PremultiplySurfaceAlphaToARGB8888() for cursor surface -b528d4844 wayland: Wayland cursors should use premultiplied alpha -84808ea4b video: Add SDL_PremultiplySurfaceAlphaToARGB8888() -007b5463e video/uikit: Do not use setNeedsUpdateOfPrefersPointerLocked on iOS SDKs older than 14 -8f58bb9cf Added SDL_USE_BUILTIN_OPENGL_DEFINITIONS to avoid system OpenGL headers -b360965d0 Added a hint for alternate OpenGL NV12 data format -6c134cf14 Sync wiki -> header -19dee1cd1 Add SDL_GetWindowICCProfile(). (#4314) -a34fe8161 Added the ability to bind NV12 textures in the OpenGL renderer -f3fd1ffb9 Fixed crash if SDL API functions are called on a disconnected controller on iOS -a43d3f693 Don't detect the ROG Chakram mouse as a joystick -bfd2f8993 Fixed grab handling when focus changes between windows in the same application -d9c44b653 Allow Cocoa_VideoInit to succeed when current display mode has invalid flags -649a33ae4 X11: remove redundant 'wakeup_lock' mutex creation -c4bac66b7 os2, geniconv: replaced many uses of libc calls with SDL_ counterparts. -0a0f68547 SDL_os2video.c: missed replacing a use of libc function -8e9ea2e36 SDL_os2joystick.c: missed replacing a use of libc function -8b1a2fe86 backout SDL_AndroidSetInputType() -6ef3bc568 Add Dynapi for SDL_AndroidSetInputType() -ccb12457f Fixed bug #4843 - Can not get the ime candidatelist like chinese/japaness input method -7fb436439 Don't process WM_INPUT when handling relative mode by warping the mouse cursor -06824b18f Cleanup windows events after recent changes -50f969c1b Fixed bug #4841 - Out of bounds read (by 1 byte) in yuvnv12_rgb24_sseu -ea97ab616 Add mapping for HORI Fighting Commander OCTA controller on Linux -1c5b3e0e1 Don't center the mouse when gaining focus unless we're using relative mode warping -a70a94e0b Don't send a mouse leave event if the mouse is outside the window when gaining focus and in relative mode. -c583055ac SDL_windowsevents.c (WIN_WindowProc): remove SAFE_AREA_X and SAFE_AREA_Y -d5700ed20 Don't log SDL_POLLSENTINEL, it's purely for internal bookkeeping -dd5d89505 Fixed whitespace -7f728f3eb enabled os2 joystick code (if anyone has actually a use for it...) -8a48ce00c Sync wiki -> header -8bf32e12d Improved SDL_PollEvent usage (#4794) -43da35b56 Back out documentation changes in favor of https://github.com/libsdl-org/SDL/pull/4794 -0dc57b0f0 Remove slightly misleading comment in the example code -ddf1d5c55 Update documentation to reflect that a single SDL_PumpEvents() each frame is the recommended way to handle events -88e9f7765 Fixed relative mouse mode using warping after https://github.com/libsdl-org/SDL/commit/82793ac279d19b5bde8fc2bd62877b05ba5a76e0 -a1fabca16 Removed mouse warping for local mice and improved warp handling for mouse over RDP -82793ac27 Fixed mouse warping while in relative mode -072e3fdfc Fixed bug #4534: NEON implementation of Convert51ToStereo (Thanks Ryan!) -5e89b3c89 Don't need to use raw input to track the mouse during mouse capture (thanks Brick!) -0b6a82118 Messages posted on the same tick are not new -0789610cf Add SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN -227c33b8e Add note about SDL_TICKS_PASSED hitting int overflow problems with large timeouts -1fa154fda Fix weak enforcement of timeouts in SDL_WaitEventTimeout_Device. This will loop pumping events and waiting for a system event to come in. However not all system events will turn into an SDL event. It's not unusual for a Windows message to be some internal thing that SDL doesn't convert into a message. In that case the loop will simple circle but not exit. As long as such messages are coming in the loop will continue to run regardless of the timeout. When messages finally stop it'll still wait for the full timeout so you can have arbitrarily long delays. -2423c5147 Work around hang in AAudioStream_write() during extended shared object loading while running in a debugger. Observed on a OnePlus 8T (KB2005) running Oxygen OS 11.0.10.10.KB05AA. The observed behavior is that any nonzero timeout value would hang until the device was paused and resumed. And a zero timeout value would always return 0 frames written even when audio fragments could be heard. Making a manual timeout system unworkable. None of the straightforward systems imply that there's a detectable problem before the call to AAudioStream_write(). And the callback set within AAudioStreamBuilder_setErrorCallback() does not get called as we enter the hang state. I've found that AAudioStream_getTimestamp() will report an error state from another thread. So this change codifies that behavior a bit until a better fix or more root cause can be found. -325ae5c35 Android: getCurrentOrientation uses getContext() to retrieve the activity (see bug #4825) -0e294e90a Ensure that SDL_InitSubSystem quits subsystems after an error. (#4834) -6149e6013 remove IsWin10FCUorNewer() -- not used since commit 40ed9f75c9e1ed -311671a02 fixed build after commit 6e356e20ad -6e356e20a Fix mouse focus being set to null when a captured mouse cursor leaves the window. -9ee6942e7 Improve RISC OS implementations of SDL_GetBasePath and SDL_GetPrefPath -3db898c5b riscos: Implement SDL_GetPrefPath() -723f5cea4 Fixed bug #4825 - NullPointerException on SDLActivity.getCurrentOrientation() (Thanks Benau!) -1b49f0924 include: manually ran wikiheaders.pl and cleaned up the obvious issues. -55f60847c wikiheaders.pl: Try to handle functions with multiple declarations better. -3970a885a wikiheaders.pl: Migrate in docs that exist only in the wiki. -194657a2c include: Fix indentation on SDL_SoftStretch doxygen comment. -40ed9f75c Workaround for Windows occasionally ignoring SetCursorPos() calls -373216ae5 Added support for touchpads in the Linux evdev code (thanks Francisco!) -16aeb8d0f Guarantee that we don't dispatch any mouse motion from before or including the last mouse warp -649466f49 Flush any pending mouse motion when warping the mouse cursor -ad5205739 wayland: Only dispatch frame events in Wayland_GLES_SwapWindow -f30e2e438 Fix compiler warnings in testvulkan.c -dd95c9c8a Moved focus click check into WIN_UpdateFocus() so we have the correct state when setting keyboard focus -1ec409c21 Don't warp the mouse within a window while it's minimized -87ac37349 Fix Debug-only builds with CMake -0d541e5a8 Revert "Fixed relative mode mouse events stopping if you click on the title bar" -c542de921 React to WM_NCACTIVATE instead of WM_SETFOCUS or WM_ACTIVATE for focus changes -ab7910fac cmake: Move the old, global add_definitions (etc) to an interface library. -f1793af40 cmake: removed an add_definitions call. -25fdba39b cmake: fix indentation. -f30666254 cmake: Correctly set IOS variable. -60d59aeb6 cmake: Calculate padding for dislaying options automatically. -7850d0cf6 cmake: Prefix all options with "SDL_" -172957387 PSP: links for setting up, compiling and running on PSP -f080273ac PSP: add implementation for RenderGeometry -e92a639b2 replaced many uses of libc calls with SDL_ counterparts in os2 sources. -dd9b2daf8 PSP: fixed build -3ea35fe5b fix SDL_atoi() -407867cf7 Alias SDL2::SDL2 to SDL2::SDL2-static on static-only builds -cd7ef24cb minor update to os2 makefile. -c501d159a Fixed range for Steam Controller sensor values -ea1a2b94f Use the correct update rate for Steam Controller sensors -eadc8f935 wayland: Cleanup some SDL_TryLockMutex() calls. -25f9e32b0 wayland: Don't let multiple threads dispatch wayland events at once -8b7457526 Added support for the gyro and accelerometer on Steam Controllers -db18764e4 Use correct relative include path -632aca294 Window input focus is based on WM_SETFOCUS and WM_KILLFOCUS as WM_ACTIVATE doesn't necessarily imply focus. -9706feaca Update length after shortening string (thanks mayraud705!) -77acd44f2 DirectFB: fixed creation of palette textures -83d600904 DirectFB: add partial support for RenderGeometry allow to fill triangles with color or texture but only uniform vertex color is handled (not per vertex color) -7def81cf4 wikiheaders.pl: Don't treat chars in `code` blocks as markdown. -2f93fbbb7 include: Fix markdown in a doxygen comment. -ab09f3dae cmake: Remove warning about CFLAGS environment variable. -cd6f96ded cmake: bump minimum CMake allowed to 3.11.0. -344f018df Xcode-iOS Demos: Add CFBundleShortVersionString to Info.plist -c270949b5 Add a fast path for ARGB888->(A)BGR888 blending with pixel alpha -8b23029d2 Sync wiki -> header -f79ac6a8d cmake: Don't use the CFLAGS environment variable. -114d1d46a direct3d: Remove unnecessary render target support check. -0fc43504a wayland: Add support for XCURSOR_THEME/SIZE -7c050aa60 egl: Don't fail to create a context if KHR_create_context_no_error is unsupported -35d045584 video: wayland: Support displays with a 0 refresh rate -ba87876ef fix syntax error in SDL.vcxproj.filters -9672d5811 Need to check structure version before setting xdg_toplevel to NULL -14f225198 Use SDL_calloc for allocation of gxm_texture -b592e78f9 wayland: Expose xdg_toplevel to SysWM -7a1690eb6 Sync wiki -> header -7becc4149 Sync wiki -> header -d854ba99c Removed X11 code from Apple Xcode project -477fcf52e Fixed whitespace -db68af803 Reduce the likelyhood that the mouse will hover over the taskbar or toast notification while in relative mode, which causes a mouse leave event. -ce66051b0 regenerated configure -ef8c4d27d wayland: Require xkbcommon 0.5.0 or newer (2014-10-18) -decd1b4d7 testdraw2: display FPS similarly to testsprit2. fix helper syntax -7ed415d2e wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior -1a4e2e5ef wayland: For text, ignore key events when Ctrl is held -0aff42a15 egl: Group data fields before function pointers in SDL_EGL_VideoData. -0ad4956c0 egl: explicitly call eglBindAPI during SDL_GL_MakeCurrent. -314771602 egl: make an int into an SDL_bool. -4ec259a78 Fixed building on Visual Studio 2013 and older -287571fb4 Limit effect of in_title_click and focus_click_pending to only blocking cursor warping; without this all relative mouse motion was getting ignored when a window was activated via a mouse button -529215639 End Scene on RunCommandQueue on Vita -08ae79049 Replace calls to asprintf with SDL_asprintf -25a614bc3 Add SDL_asprintf and SDL_vasprintf -79b0aae86 The return value of SDL_snprintf is the number of characters that would have been written. -9b74623be wayland: Woops, forgot to assign cursor theme size... -8e54698aa wayland: Add support for high-DPI cursors -42ae9116a Getting "(null)" when formatted printing NULL is a valid result -a4a9d2846 You may need to wait a bit for SDL_WarpMouseInWindow() to complete -94a42af57 Fixed the name of the verbose hints -b914bc395 SDL_PIXELFORMAT_ARGB2101010 isn't fully supported for all surface conversion paths yet -e5d59fa77 Fixed building testgles2 on Linux -0c8277e9b Added testgeometry to the git ignore file -432ee7d8a Fixed building SDL_dynapi.c without stdio support -345c161fe Fixed some accidental uses of external C runtime functions -5d455cabf Don't process raw input when the window is being dragged or clicked on. -0fd54f91f Fixed using a tablet with raw input relative motion -b687c0ff2 Integrate fix for Source 2's Win32 build that does '#define __i386__ 1' which causes it to hit the __i386__ case instead of the _MSC_VER case. -8fee82d1f Improve relative motion handling over RDP -eb3bf80f9 Fixed compiler warnings using Visual Studio 2019 -ce11caa80 alsa: Map 7.1 audio channels to match what Windows and macOS expect. -9886d897e Fix AltiVec detection on FreeBSD -c45facf2c alsa: clean up macro salsa a little. -f5e636a62 config: Try to use stdint.h with Borland C. -3b2fbb1cb End current scene before destroying the texture on Vita -e55b85070 minor tidy-up in os2 makefile for tests. -fc4296c11 Use aligned stride in sceGxmColorSurfaceInit -7080bc2a9 Fallback to SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE if CDRAM texture allocation fails -512355d7a Vita: fix thread detach. Remove leftover KillThread -ddcd847c8 Vita: fix thread priority Add support for thread name and stack size -21c108278 Add MinGW-w64 builds to GitHub Actions -478f9eed2 x11: Don't include X11/extensions/extutil.h -ca9a32171 render: GL/GLES now draw lines almost perfectly matching software renderer. -857cc7c0c render: constified some local variables in SDL_AllocateRenderVertices. -5faea84c6 render: Mark viewport/cliprect dirty when window is resized. -b8da02e6e include: Fix triggering of Clang's -Wexpansion-to-defined in SDL_endian.h -8f4141232 cmake: Patched to compile. -bf1d7a3a1 cmake: Don't trust the HAVE_IMMINTRIN_H check on Apple targets. -ba9e2299b Sync wiki -> header -2d44bf7dc Update description of SDL_SetWindowAlwaysOnTop -5dccffd7e Allow usage of the new Condition Variable code with Critical Sections -44ab04fc6 Sync wiki -> header -4d0c3cb2a Sync wiki -> header -192538357 Sync wiki -> header -d856478f7 Sync wiki -> header -74a1eb210 Sync wiki -> header -eb8f332c2 fix: allow builtins for all archs (#4756) -ebdfd0e17 atomic: detect clang separately -8d1e0ca32 Vita: add support for disabling 'screensaver' (screen dimming and suspend) -79ec8986d Vita: refactor gxm texture render and add SDL_RenderGeometry support -2a8938f2b Fixed: Whitespace being striped from the end of IME strings incorrectly + Regression with SDL_SetTextInputRect (#4752) -333ea51ca CI: Set default shell for Vita build. -1e6e9f364 CI: Add PS VIta build -ce177049f Vita: Allow completely skipping pvr init to override apphint from app -4a9947336 `SDL_RenderSetVSync()`: Restrict `vsync` to 0 or 1 -4549769d7 Add `SDL_RenderSetVSync()` -b2504b5da Fix typos -e45565946 Simplify Backspace and Enter -88578dc9c Update Docs -f162d9ee2 Fix Indentation -5fa8a042a Fix the indentation -058c4d36b Add envvar to disable touchpads independently -4435543db Add PVR On Screen Keyboard Support -67aacfe5c cmake: Retrieve the git revision on platforms without bash -6301cfda9 cmake: Use the correct directory structure for MinGW builds -e967f0027 testmouse.c: remove unused local var. -830206581 Add testmouse -10d3df44f Vita: fix copyright dates -82c91fed2 Update docs -2a8368607 Fix default path -134dd4681 Add pvr gles/gles2 context support -ff85d4fbe Fixed Xbox Series X controller being detected by both IOKit and GCController on macOS -9f8552588 Added mapping for Xbox One S controller with newer firmware on macOS -bf97c5a22 Make sure SDL file descriptors don't leak into child processes -3ed8ba7d3 winrt: Update SDL-UWP to VS2019 -b88077fe5 winrt: Move the UWP project files up one directory -2facf5b7b winrt: Remove Windows 8.x project files -07b59df26 winrt: Remove unused nuspec/targets files -d49d955d7 render: SDL_RenderGeometry should still render when hidden, in most cases. -7d66fa209 Fixed double-copy of the report in BlueZ >= 5.56 -7ed7644a2 Fixed compiling HIDAPI Steam Controller support with C89 compiler -27a48b142 Check the pathname first, as that's a faster check for XInput devices -21160cb81 Formatting fixes (purely cosmetic, fixes GitHub's rendering) -2c6f52d18 regenerate test/configure really with ac2.69 -2e3a415bd test: Use a static pattern rule to copy data to $(builddir) -9837a327f regenerated test/configure -91ce6019d test: Fix path used in AC_CONFIG_AUX_DIR -ddfd21a67 configure: fix vulkan enablement for windows after commit 13ec545936cfd -6f9720522 Added: Support for showing the IME Candidate Window on Windows -183eb0673 Fixed bug #4711: prevent opengl SDL_renderer from crashing if GL_ARB_multitexture isn't supported -515b7e93b Fix horizontal wheel scroll direction of X11. -8796f35e0 wikiheaders.pl: Make sure all wiki API pages reference CategoryAPI. -e260c8047 Fix the wiki/headers bridge. -a1ffeda0e Add SDL_HINT_APP_NAME and DBUS inhibition hint -9fae8f708 Treat empty SDL_VIDEODRIVER var to check all video drivers. -7d90df0ec Restore previous behavior of empty SDL_AUDIODRIVER trying all drivers. -b9bf7ffec Sync wiki -> header -8b1f8b6ec Use the high speed alternate setting on new Microsoft Xbox controllers -1fe9ad04b SDL_ConvertSurface: add an intermediate variable to remove static analysis false positive (see bug #4600) -be6bee0b5 SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600) -54ca1d190 SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600) -b17aa5d08 SW_RenderGeometry: remove a few static analysis false positives (see bug #4600) -a47f59bbe codechecker-buildbot.sh: Don't fail if a static analysis issue is reported. -a6b45fa7c codechecker-buildbot.sh: mark script as executable. -f7ee06f3a build-scripts: Add a buildbot script for CodeChecker static analysis. -3261f7f6c audio: Support "pulse" as an alias for "pulseaudio" -503ea8e89 Don't modify the Nintendo Switch home LED state by default -b1e492d1f Search for an appropiate plane instead of simply using the first one. -23ffa3d91 Update SDL's copy of the EGL headers from Khronos -524964f96 Add SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY -5113fedfa video/wayland: use EGL_EXT_present_opaque when available -130b6beba Manually scan for Linux joysticks before udev scan runs -cbccf5bb5 Use SDL_GetHint() instead of SDL_getenv() for Linux joystick hints -0ae2a9f8c Fixed the Atari gamecontroller mappings and added Atari Xbox 360 -d5fe9c308 x11: Log a warning if we decide to use XVidMode. -76d50d287 Force color diagnostics when applicable -79c7a1713 testvulkan: reformatted to more-closely match SDL coding conventions. -b073d2753 test/vulkan: fix/workaround validation errors -374b0b9aa cmake: Don't support Vulkan if LOADSO is disabled. -fff421f4b cmake: fix a bunch of things to properly link without LOADSO enabled. -abba18111 testvulkan: support multiple windows. -13ec54593 configure: Disable Vulkan support if loadso subsystem is disabled. -9504bb121 pulseaudio: Fix some function signatures that expect const pointers. -7e8d054b9 updated config.sub from mainstream. -e426bb80c Fixed bug #4671 - D3D_QueueGeometry: use "count / 3" (Thanks alittlesail!) -70c23b25f audio: pipewire: Reset hotplug atomic variables on deinit. -ae5336a3d Fixed bug #4669: D3D_QueueGeometry: -0.5f offset position of vertexs This similar to D3D_QueueCopy positions -8270172e7 fix -Wshorten-64-to-32 warnings in android builds. -ccb06296b SDL_windowsevents.c: fix build against older SDKs. -f5c0cdea3 testgeometry.c: fix build in c89 mode -ca39f6d6c Sync wiki -> header -154384a77 Add (uintptr_t) casts -08d6a4653 Fix dynapi prototypes -93fb5a223 Remove '\brief' markup in header 'SDL_render.h' -1670104ad Change 'size_indice' to 'size_indices' -a8f89a01a Change 'size_indice' to 'size_indices' -bc2173baf Add testgeometry to draw a non uniform triangle --use-texture: an option to load icon.bmp as a texture handle mouse motion: rotate the triangle -53bcb3e0e Add an option to 'testsprite2' to render slicing into triangles. [--use-rendergeometry mode1|mode2] mode1: Draw sprite2 as triangles that can be recombined as rect by software renderer mode2: Draw sprite2 as triangles that can *not* be recombined as rect by software renderer Use an 'indices' array -47db47c1c Add SDL_HAVE_RENDER_GEOMETRY to compile or not with RenderGeometry support -b9bd9da78 OpenGLES2: transfert color as 4 bytes, instead of 4 floats -c6ceaaeb4 METAL: use Uchar4Normalized format to transfert color as 4 bytes, instead of 4 floats -fd236af8e Update Xcode project to add SDL_triangle.{c,h} -eff840bb9 Add OpenGLES implementation -32e791013 Fix warnings -6e47f5386 Fix warnings -4869a3d29 Add Direct3D9 implementation (not tested) -4ba376389 Save and restore SDL renderer state after transforming triangles to rect -cd0663e05 Fix declaration-after-statement and remove tabs -cd4663dfc Update D3D11 for SDL_RenderGeometryRaw -9f5917074 Update METAL backend for SDL_RenderGeometryRaw -61d9e9164 For the software renderer, try to reinterpret triangles as SDL_Rect With Dear ImGui + software renderer, it draws: - by default at 250 fps - drops to 70 fps if you show the color picker - drops to 10 fps if put the color picker fullscreen -cc37c38e3 Add SDL_RenderGeometry based on SDL_RenderGeometryRaw -e48126117 Move to SDL_RenderGeometryRaw prototype with separate xy/uv/color pointer parameters -111c70e14 Use 64 bits precision to prevent overflow when interpolating color / texture with wide triangles -f73c1eff1 Use normalized texture coordinates -5828cc415 Update METAL backend: fix a typo in drawline -9eab5195f Update dynapi files -9a8a8e65b Update SDL_render_d3d11.c -a2cd4255c Update VisualC projects -55277c67b Update Makefiles OS2 and PSP -121114d06 Update METAL compiled shaders -2d01573bb Add METAL shaders -1e77dae7b Add METAL implementation -1ebef0732 Add D3D11 implementation (not yet tested) -3ee511d71 Add software renderer implementation -37f78fc1c Add OpenGL implementation -faded41ab Add OpenGLES2 implementation -6e26d320c Add sysrender interface -f22fc4ca3 Add API: SDL_Vertex type and SDL_RenderGeometry -53a2608bd Renderer opengles2: turn color Uniform into Attribute. all attributes are copied interleaved (based on rmg-nik initial patch+ + minor clean up of data structure + add check for colorswap -bfa159313 audio: pipewire: Set PW_KEY_NODE_RATE to suggest a rate. This can be used by recent pipewire to avoid resampling. -bfbab5366 remove warnings from Wundef in SDL_config.h.cmake -966728db2 include/SDL_video.h: Remove a comma at end of enumerator list -83bb13661 Restore KMOD_RESERVED for backward compatibility -b161c9ba4 CI: Add Emscripten build -402b86f2a waylandevents: prevent segfault if xkb compose table is not found -72f41d1fb Added missing parenthesis around SDL_clamp -454943cf3 emscripten: Don't flag window fullscreen on external requests -55af8dcad emscripten: use emscripten_set_window_title api -d8baad7e4 emscripten: use emscripten_get_screen_size api -abc04270b emscripten: Fix framebuffer array creation optimisation -b4f11a366 emscripten: Drop commented out code from the dummy driver -0a8707566 Update SDL_config_emscripten.h for upstream -d44889623 Add SDL_config_emscripten.h -fbc364908 Use the new SDL_clamp() macro where sensible -35c1bbfa4 SDL_stdinc.h: Add an SDL_clamp() function -07a2d71e9 emscripten: Feed silence to device when paused -dcc5eef0e Clarify that one of the PIDs of the Xbox Elite Series 2 controller is used in Bluetooth mode -91a55a02d Relative mouse motion is delivered to the window with keyboard focus -694771513 Get the window size for the window receiving the mouse motion -6a1e1ed9a Relative mouse mode grab is based on the window with the input focus -e42e9a12d Fixed build -441fbcaa3 Added HIDAPI support for the Xbox Adaptive Controller -b5e5c1ef4 Added Ctrl-T to toggle topmost mode in test programs -4d9efcb55 Fixed flag test for boolean correctness -b28ed0280 Don't warp the mouse for relative mode when the window doesn't have focus -629e9f820 Fixed return value of SDL_GetGrabbedWindow() when we have an internal grab because of mouse relative mode -6aa1498b9 This assert wasn't correct, we set the internal grab for mouse relative mode as well. -105f12061 checkkeys: Create a renderer for window display on Wayland -907943a23 Added support for the Xbox One S Controller with 5.x series firmware -1e9213529 Improve portability of SDL_Convert51ToStereo_AVX -9bf655758 Correctly check for bswap builtins before using -7aec0b90e SDL_hidapi_xboxone.c: fix bogus 'uninitialized' warning from clang. -cec5a129f Fixed libudev hotplug notifications in the HIDAPI driver -6eb4ebb50 Simplified the HIDAPI Xbox One controller initialization -25cd749ad x11: Don't change mode if we are already in the correct mode -584b89abe Added support for the color LED on the Xbox Elite Series 2 controller -64882b246 Added support for the Xbox One Elite 2 Controller with 5.x series firmware -ed6eb07e7 SDL_wasapi.c: fixed build against older SDKs. -68ca35c31 wayland: fix memleak in output listener -e9179314c joystick/linux: fix memleaks; streamline joylist item removal -44a76710d Don't disable clang avx instrinsics on win32 if __AVX__ is defined. -ae7ee2a59 wayland: Ignore stateless/sizeless configs when starting in fullscreen mode -ac32c522a Try using the built-in WASAPI audio rate conversion -cb1e20b05 Added KMOD_SCROLL to track the scroll lock state -609cea1eb Enable SSE3 intrinsics when building with Visual Studio -d5ad6f6e6 Clarified that you should never have side-effects in the parameters to SDL_min/SDL_max -bb91d7a5e regenerated configure script -056a42f19 Sync wiki -> header -f5794f9ee Added SDL_SetTextureUserData() and SDL_GetTextureUserData() to associate a user-specified pointer with an SDL texture -a0af7ce73 OSS is no longer the preferred audio backend on modern UNIX systems -3f6ebffff Updated to version 2.0.17 for development -681039935 Enable AAUDIO driver for Android -016b02f24 Fixed build, C89 doesn't allow non-constant static initializers -77c8d1113 configuration updates for dlopen: -cb0fd05ee Adding a clarifying comment in case a programmer unfamiliar with UTF-16 and UTF-32's relationship chances upon the code. -347011296 Optimizing the implementation. -712e0d1f0 Fixing WM_CHAR event handling for Unicode characters outside the Basic Multilingual Plane. -fcfd19db8 Added support for SDL_RENDERER_PRESENTVSYNC to the software renderer -ea9bece5e Fix breaking GNUInstallDirs cmake module $CMAKE_INSTALL_LIBDIR directory. Fix #4621 -25f9ed87f (tag: release-2.0.16) audio: Fix false positives in driver name comparison -b3a989d0d video: Fix false positives in driver name comparison -de6ba40d9 Added support for the Flydigi Vader 2 controller in 2.4G Android mode -3f440daad Added support for the Flydigi Vader 2 controller in Bluetooth mode -6ae227d01 x11/wayland: fix screensaver suspension via D-Bus -773e1ba19 testvulkan: Clamp the drawable size to the allowed range -2e6dac870 wayland: Add a hint to allow disabling libdecor use -092a20d94 wayland: Avoid busy waiting for vsync -791d9d3ff Fixed DInput mapping for NVIDIA Virtual Gamepad -7be970db3 wayland: Avoid setting floating width/height when re-entering fullscreen -bec783571 Better fix for compiling using clang on Windows -a91ab883e Fixed building on Windows with cmake, ninja, and clang -dd683073b hidapi: Patched to compile on QNX. -cae7bd9b6 Don't use AVX with clang if the compiler isn't building with AVX instructions -cdac61fff Fixed typo -eec41d25d Add info on how to avoid the "Prevented in-tree build" message with CMake -ac20167ef configure: Fixes to make SDL link as C++ on Haiku. -10979d37f wayland: Always assume configure is wrong for non-resizable windows. -520bc713e Fix typo in CMake target name -b83a019d6 cmake: Force linker to treat input as a C++ program on Haiku. -88674b4a0 Fixed build -317261507 Let Android know that we can handle USB devices -c14813a87 Fixed spacing -3cad447ee Only update the window size if setting the display mode succeeded -0eb6f7919 SDL_SetWindowDisplayMode(): If already fullscreen, adjust window size -72d812852 Improve SDL_CreateWindow() fullscreen support on Windows -9fdb06450 Added support for the Joy-Con Charging Grip when SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS is enabled -d48397026 dbus: Wrap init in a spinlock. -b08b1bde6 linux: remove d-bus lazy init dead code -f5bc58bf5 Add note about keyboard grab to WhatsNew.txt for 2.0.16 -5fc13fcb2 direct3d: Commit viewport state before clearing, attempt 2. -ed6ce5ccb log: Fixed compiler warnings on 64-bit Visual Studio. -7e88e772d winrt: Fixed incorrect code in a Windows Phone #ifdef. -8104c9e3e doxygen: manually move SDL_CloseAudioDevice docs from wiki. -57bfed79e README-dynapi.md: Google+ link is gone, remove it. -178c95f82 README-winrt.md: Cleaned up sample code -32f909f7e wayland: Remove redundant waylanddyn.h includes. -124405a0b wayland: Fix building without Vulkan support -02563f75b regenerate configure -d2e8998f8 build: Fix the LINKER variable. -4077f7a2d Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580) -9b4884d58 Warn if you're building a partially functional RAWINPUT driver without device notifications -886eb02eb Fixed detection of Steam Virtual Gamepad with the WGI driver -7c63e1d37 Added WGI mappings for the Amazon Luna and Google Stadia controllers -99c8972b2 Added WGI mappings for PS4 and PS5 controllers -2dfc92ca1 Added default mapping for WGI game controllers -3d7470783 Run the renderer so Steam can find the main window -1907463a7 regenerate configure -b74bcd5d4 configure.ac: mkdir $(objects)/ when building wayland protocols -5b18ae29b improvements to libdecor support in cmake -a15ec3654 attempt to fix cmake builds with libdecor -8726f500e Allow quitting controllermap if there are no controllers attached -9d64e6b44 Revert "direct3d: Commit dirty viewport state before clearing." -993a56766 Only use the default Xbox mapping on Linux -74aa4b635 cmake: don't fail if Wayland is enabled but libdecor isn't found. -c30845395 cmake: Use CMAKE_INSTALL_FULL_* for libdir,bindir,etc. -0e16ee833 direct3d: Commit dirty viewport state before clearing. -7edc7d539 Added a mapping for the Steam Virtual Gamepad when it's detected in DirectInput mode -350ca0f90 winrt: Don't register orientation hint callback in startup code. -834a84fab winrt: Don't use LoadLibraryA on WinRT. -7082fb04a wayland: Only dispatch on fullscreen set when the window is visible. -0f5b8a99f wayland: For libdecor, dispatch immediately after setting fullscreen -022235012 Fixed crash if WGI didn't give us the name for a controller -4562da622 wayland: Make libdecor configure match xdg_toplevel -1fb1aa198 wayland: Keep the fullscreen check for maximize/restore events -584673a5a wayland: Don't ignore configs for non-fullscreen, non-resizable windows. -250672989 wayland: Flush in SetWindowFullscreen -ea28187cd wayland: Hack surface resize into compliance with set_window_geometry -b5210cac4 wayland: Initialize floating size at window creation -dab33844e wayland: Fix a warning in handle_configure_xdg_toplevel -754aa2d32 Mostly revert cfcdfb7be9f5c97a51ddef9ad3677a604856266b. -8803589fc wayland: Avoid redundant SetWindowBordered for libdecor -b4c4060ad wayland: Clean up Wayland_HandlePendingResize -9bb24ad0c wayland: Always call Wayland_SetWindowBordered when showing the window -cfcdfb7be libdecor: use same fullscreen/maximised restore logic as for xdg-toplevel -42452f8ca wayland: store and restore floating states -d4e1b4974 unix: OpenURL: Move unsetenv above vfork -9b7b92876 Clear LD_PRELOAD so Chrome opens correctly when this application is launched by Steam -54aea2446 wayland: Disable key repeat when repeat rate equals 0 -d784dd20b Updated WhatsNew with major changes for 2.0.16 -b033cd0d2 Fixed XSync sequence to match other cases where we set the X11 error handler -d373af044 CMakeLists.txt: update DYLIB_CURRENT_VERSION too 2.0.16 for release -4c7825f6b x11: XSync while trying to catch XRRSetScreenSize error. -cb1fd30e9 Updated to version 2.0.16 for release -3e76646cc Added libSDLmain.a for iOS and tvOS -d0effadf6 x11: Don't let XRRSetScreenSize fire a BadMatch error. -3a4b217d6 Allow defining SDL_MAIN_HANDLED on iOS if you're using another runtime that provides an application delegate -deed21a83 Removed useless forward declaration -1a9253f75 Removed unused IOS_DYLIB definition -e5594e667 wayland: Prefer our SSD implementation if available -2d0075eff Updated comments for third party Nintendo Switch controllers -16010f756 Added support for the PowerA Nintendo Switch Fusion Arcade Stick -b33f47090 Fixed detection of the PDP Afterglow Wireless Switch Controller over Bluetooth -6af6950db Added support for the Victrix Gambit Tournament Controller -243a8836a The PowerA Nintendo Switch Fusion Pro Controller has a working USB mode, enabled via the switch on the underside of the controller. -71897cc1c wayland: Always trigger a resize when handling a configure event. -8f06a629a render: Fix -Wmaybe-uninitialized warning in RenderDrawLinesWithRects{,F} -c20ab7dae wayland: Fix GetWindowWMInfo for <2.0.15 -585c11c5a direct3d: Fix possibly-incorrect scissor test when clearing. -6f684f674 cocoa: Add keyboard grab support -69518b9ec Make sure we don't send a resize event while a window is being destroyed -3ababa09c Don't explicitly use any C runtime library with Visual Studio -659e1f0a3 audiocvt: The to-5.1 converters now soften FL and FR channels more. -f20a85818 commit after setting/unsetting limits -9984891ba Use the wl_touch object as a touch ID on Wayland (thanks @russelltg!) -74162b740 wayland: Add support for text-input-unstable-v3 -e4411505a Don't pack SDL_AudioCVT on CHERI architectures -02daab873 Fix pointer provenance in SDL_SIMDRealloc -8f38ba4d6 Fix casts that should be using uintptr_t -c8b4edf3d Fix SDL_Event definition to support systems with pointers larger than 8 bytes -9d457aa44 Don't uninitialize COM because of what appears to be a bug in Microsoft WGI reference counting. -b3a0174b2 Scale the values correctly based on the sensor type (thanks @meyraud705) -65ff00ec1 Query the rate for the correct sensor (thanks @meyraud705) -72ee0ccdd Sync wiki -> header -a186a503e Added SDL_GameControllerGetSensorDataRate() to get the sensor update rate for a controller. -ce8261dd6 Only pump events once per frame and process all currently pending events -53987e9b4 Optimized SDL_Convert51ToStereo_AVX -8e35ff5cb By default minimize real fullscreen windows when they lose focus so the desktop video mode is restored. -1e07dba09 x11: Use glXChooseFBConfig when available in X11_GL_GetVisual -cf85710cf SDL_audiocvt.c: disable AVX for clang < 5 and gcc < 4.9 -cc4ab1019 windows: convert "//" comment to "/**/", add a FIXME. -a20319489 Added in a MIME-type to the X11 clipboard. (#4385) -5346cf842 Sync wiki -> header -ad310d390 wayland: libdecor support for SetWindowModalFor -93976ade3 wayland: libdecor support for GetWindowWMInfo -46919b1e8 Sync wiki -> header -1fb4429bc wayland: Avoid a pointer→TouchID cast warning -4a7799be1 --disable-wayland-shared implies --disable-libdecor-shared for now. -18303c92b Wayland: Fix building with --disable-wayland-shared with libdecor. -21cba9242 wayland: Don't create zxdg toplevel decoration twice -7b239edb8 wayland: Assign frame_callback on window creation. -41e1a2360 Correct the maximized size and position for borderless resizable windows -03185e748 wayland: Tag/Check wl_output objects as well, fixes crashes when libdecor is in use -871c11191 wayland: handle pending resizes immediately, not on SwapWindow. -51c61d7cd Run the entire Cocoa messagebox function on the main thread. -dfd3f30e8 Make Cocoa_HandleTitleButtonEvent() static since it's not used anywhere else -14d58dc89 Fixed the parameter documentation -a3eb297ec wayland: Rework enter/leave and update_scale_factor to avoid bogus wl_output data. -6aae5b44f Remove wl-shell and xdg-shell-unstable-v6 support (#4323) -65dc4edb5 Reverted accidental Visual Studio version bump in SDL.sln -88e4755c2 Make sure we don't try to turn on relative mouse mode while clicking on the window title bar. -7df6a9ea5 Add a test case for bug https://github.com/libsdl-org/SDL/issues/4469 -c72aef266 Fixed microphone randomly stop working -4ef8674df Revert "wasapi: Open capture devices the way we used to." -0d0fee756 wasapi: Open capture devices the way we used to. -b2d77e638 Added testwm2 to the Visual Studio test programs -f4eb7f329 spinlock: Favor gcc-style atomics over MSVC interfaces. -9bcb5e7b9 configure: move CheckLibDecor into CheckWayland -736a424ff pulseaudio: Optionally add "monitor" sources to device list. -8d790b10f audiocvt: stereo-to-mono SSE3 now uses unaligned accesses. -a894ce4c1 Include README.md in the distribution archive -e16fb6032 tweak HAVE_IMMINTRIN_H in SDL_config_windows.h, add to SDL_config_macosx.h -2a53f8315 Fixed controllers showing up under both MFI and HIDAPI drivers -46869db01 Fixed controller rumble on macOS -e94d4b8c9 Sync wiki -> header -a850fec73 Added missing mapping for the Xbox Elite Controller on Linux -d80ef3e5f SDL_VideoInit: silence 'may be used uninitialized' warning src/video/SDL_video.c:475: warning: 'i' may be used uninitialized in this function -45de0a1d1 Support comma-separated lists in SDL_AUDIODRIVER -5ec69285f Support comma-separated lists in SDL_VIDEODRIVER -ba8bc143c Sort joystick entries in /dev/input -8d527def8 Revert "hidapi_switch: Implement HD rumble effect (#4538)" -19082b115 hidapi_switch: Implement HD rumble effect (#4538) -3b7649c57 regenerated configure -ac904b8e9 wayland: ignore resize in fullscreen or maximised mode -ee062c644 wayland: implement toggling decorations -2b3cf36fd wayland: forward window events -48066984b wayland: enable/disable ACTION_RESIZE for fullscreen -9e6fcbe72 wayland: client-side decoration -f4f9c6bc5 CI: add 'libdecor' dependency from upstream -e5f9fae03 wayland: don't flush after setting fullscreen -c0601d012 SDL: Updated patches for HAIKU -761d38379 SDL: Updated patches for HAIKU -8e604a5f1 Fix error handling in X11_SetWindowTitle -bc3b98f3e Replace with SDL_SendKeyboardKeyAutoRelease -5cd37c0a7 Add Enter Key support to PSVita IME keyboard -10ec4c867 Added support for the PowerA Nintendo Switch Spectra Controller -3c9559f76 Don't try to rumble third-party Nintendo Switch Pro controllers -cc19b13bc Fixed missing return statement -89bdc6ba1 Fix MSVC builds in paths with spaces -b0daa9f1d Automatically select the default platform toolset for MSVC builds -d4ac6b5ed Detect buffer overflow when getting DirectInput device state -3b85e3fdf Fixed internal Windows key state when using Windows+Space or Windows+G shortcuts -03c19efbd Added support for multiple seats with touch input on Wayland -ff1b5e1bf Implemented the window flash operations for X11 -5ae0dd4b5 joystick: Split out Linux opening code for reuse by querying code. -6c92bf540 Add more filters to the MSVC project -f1633127d Added a window flash operation to be explicit about window flash behavior -b2c8d3e9e audiocvt: 5.1 to Stereo conversion utilizing AVX -20eea021c Windows: set HAVE_IMMINTRIN_H for AVX intrinsics -638befc1a audiocvt: 5.1 to Stereo conversion utilizing SSE -db56526f1 audiocvt: Replace divisions -e1c3a2503 Changed SDL_FlashWindow() so it doesn't take a flash count, and added the hint SDL_HINT_WINDOW_FLASH_COUNT to control behavior on Windows -09d1cea73 Use the new controller type for the Luna and Stadia controllers -2147e7bfe Sorted the hints alphabetically -808c3ae61 Allow mapping Android controllers that just have a D-PAD and face buttons -856c87fc2 Sync wiki -> header -d89f4b3ae Note that mouse warping doesn't work over Microsoft Remote Desktop -94b7a8764 Added SDL_GameControllerType enumerations for the Amazon Luna and Google Stadia controllers -6956f4aa1 cmake: use CMAKE_INSTALL_LIBDIR instead of hardcoding "lib", etc. -403afdb55 cmake: Haiku fixes. -7d8f34cb7 Updated .gitignore from @Zangetsu38 - thanks! -e6e8fe6d4 hidapi_switch: Implement analog rumble -669714caf Added the ThrustMaster T.16000M as a flightstick -384d86b58 Fixed compile warnings with Visual Studio -adb75d642 Fixed hotplug detection not working on UWP or when SDL isn't pumping Windows events -7b0092db6 vita: touch: Mark the back panel as an indirect absolute touch device -422b053b9 Added support for the full line of current PowerA Xbox Series X controllers -7edffc579 Sync wiki -> header -9632fb336 README-dynapi.md: Cleaned up markdown formatting. -c06448fe3 Sync wiki -> header -48993a7f2 Sync wiki -> header -15ed66536 Fixes to kmsdrm dynamic loading support. -48bbe31bc Add PreSwapCallback for updating SceCommonDialog -9c1306bc5 Add elgext.h header -4ada14a26 Replace libc functions to SDL equivalent in wayland video subsystem -f806064e7 Remove 'support' for rgb/bgr textures, that was causing issues with them -d6641d712 kmsdrm: Explicitly set the surface transform and alpha mode -760074270 kmsdrm: Properly zero-initialize CreateInfo structs -9170c0c7f CI: Add Windows ARM64 builds -37d4f003b doxygen: Removed some cruft that accumulated during wiki migration. -c07e5e99c wikiheaders.pl: Add --copy-to-header option. -c88eb7a89 Sync wiki -> header. -f8c1fc49d doxygen: Fix all the "\returns" so they work as part of complete sentences. -8ec9fbdd0 wikiheaders.pl: pull in full sections from headers, fix more whitespace. -17b4a67aa doxygen: We use "\returns" as part of the sentence. -bab0eb71c wikiheaders.pl: Fix some wordwrap whitespace issues. -04196a46a doxygen: wrap some game controller code examples in "```c" blocks. -7390bc0e5 wikiheaders.pl: Fix \sa tags that (incorrectly!) have "()" appended. -d115857c6 wikiheaders.pl: A bunch of work on correct wordwrap and (de)wikify. -0ac13dc27 doxygen: Tweak SDL_FlashWindow brief description. -1f17bc549 wikiheaders: look for "c++" before "c" in regular expression. -269d0773c wikiheaders: Ignore doxygen comments that aren't "/**" on a line by itself. -8130950e9 wikiheaders: trim whitespace at edges after wordwrapping. -0f1079456 Remove outdated comment about SDL_SoftStretch -817976da6 VITA: Rewrite and fix RenderCopyEx rotation -dc6f04430 Added mapping for the Xbox Series X controller on tvOS -947ad6e13 Added support for the Xbox Series X controller on iOS and tvOS -297ce148e CI: Add Android builds to GitHub Actions -7fe6dbafa Reset rawInputEnableCount when RawInput is not supported -32e736d26 CI: add github actions for windows x86 -5ac81c75f fixed typo in previous commit -a809d6260 cmake: set SDL_JOYSTICK_RAWINPUT for windows builds -24059a19c The RAWINPUT driver is no longer tied to HIDAPI in any way -e52733af8 Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR -f93e9047e Implemented the timeout in hid_read_timeout() on Android -e2234ee97 CMake: Fix SOVERSION/SONAME of non-release versions -c20207d78 SDL2Config.cmake: Clean it up a bit, remove gcc-style SDL2_LIBRARIES -501fe4659 sdl2-config.cmake.in: Make SDL2::SDL2 work with MinGW, fixes #3665 -fac6e9f1e sdl2-config.cmake.in: Use more CMake variables and less autotools ones -c34269617 Enhanced SDL2Config.cmake to also work on non-Windows -3ea11f9ac Make SDL2Config.cmake export SDL2_LIBRARIES etc (on Windows) -f9bf1aeba Latest Unifont with OFL is now bundled. (#4268) -557d0f827 Commenting a false alarm in WIN_GLES_SetupWindow. -d135c0762 Added SDL_GameControllerSendEffect() and SDL_JoystickSendEffect() to allow applications to send custom effects to the PS4 and PS5 controllers -073cbc40c SDL_platform.h: define TARGET_OS_SIMULATOR as 0 if not already defined. -be41cf2df CMake: don't blacklist TARGET_OS_SIMULATOR for Metal configuration -97d4fe943 removed extra whitespace. -3da6d2cdd WIN_SetErrorFromHRESULT: kill CR/LF that FormatMessage sticks at the end -8fb95034e Avoid warping the cursor to the center of the window when not in relative_warp_mode -4359a47b3 Simplify ClipCursor behaviour when RelativeMouseMode is enabled -3720e254c Trim some stray whitespace -170924278 Fixed https://github.com/libsdl-org/SDL/issues/4475 -16e3bfe80 SetDisplayMode: Call XRRSetScreenSize before setting CRTC config -118480e56 fix permissions -4a20dd3e5 Removed unnecessary comment, the mic button is in byte 16 on all firmware versions -46f19c311 Implemented mouse relative mode for iOS 14.1 and newer -3433f3c4c CMake: Small improvement for MinGW -6f0865fe4 updated os2 makefile. -599001d4c Revert "Removed reference to ant project." -75a9f8e2b Added SDL_hidapi_luna.c to the Xcode project -430bbcb87 Added HIDAPI support for the Amazon Luna Controller connected over USB in DirectInput mode -863f56694 Fixed reading thumbstick axes and mic button on the Amazon Luna Controller firmware version 305164320 -17ed8d808 Added HIDAPI backend for Amazon Luna Controller Model T28B69 connected via Bluetooth LE (VID:0171, PID:0419). -00d67620d Added the SteelSeries manufacturer to the Nimbus+ entry on macOS -0f00f6dd8 Ignore checkkeysthreads -24e836b0d Added controller mapping for the Nimbus+ controller on macOS when MFi support is not available -6b21a6ccc Update config.guess and config.sub from mainstream. -0994a7587 Don't hardcode message length -3b6e99924 Vita: remove unused variable and allow Razor perf analysis -656eb7df3 Vite: return system installed memory -89015b9c3 Vita: default window size for tests -b55ee12f6 Vita: fix clip rectangle -e41d3e617 VIta: fix render clearing -6b1228051 Vita: proper syntax -32deb6f70 Vita: fix point size -9d4527193 Vita: append messagebox title -6460151c8 Vita: add missing stub -39302c921 Add Steam Virtual Gamepad and Xbox 360 Wired Controller defines instead of magic values -0c4ac33a0 Added support for the Razer Wolverine Tournament Edition controller -2143534a1 configure.ac: manually check immintrin.h with AC_COMPILE_IFELSE(). -ca383599b Fix Anne Pro II keyboard showing up as a joystick -c90bd3bf7 Add missing PS5 DualSense GUIDs -bfdea6057 avoid -Wundef warning from SDL_config_windows.h -205b951b4 SDL_DINPUT_JoystickPresent() needs to do the full device enumeration -ae6d9e343 Correcting the name of the Amazon Luna Controller -5042ab6f2 Added Linux and macOS mappings for the DirectInput mode of the Amazon Luna Controller -5b051459e Fixed warnings on Windows -99700a5c5 SDL: add Windows mappings for Luna controllers for USB DirectInput mode and BT. Note: the triggers do not seem to work in BT mode. -33b84c8d1 s/memcmp/SDL_memcmp/ for conistency -56b77b12b cocoa: Implement FlashWindow -c2e8a791b SDL_windowsevents: add support for multiple mice -7948c16df Pump events each time through the loop in SDL_WaitEventTimeout_Device() -105de64c2 Only queue one wakeup event per wait -c262569cd kmsdrm: fix KMSDRM_SetDisplayMode being called for the default desktop mode doing nothing -98bda3918 kmsdrm: sync the display's current mode with what's set in KMSDRM_CreateSurfaces -d031a24e0 kmsdrm: defer surface recreation inside of KMSDRM_SetWindowSize and KMSDRM_SetWindowFullscreen as is done in KMSDRM_SetWindowDisplayMode -5a296e258 kmsdrm: avoid overriding the mode requested by SDL_SetWindowDisplayMode when recreating surfaces -814285d6e Workaround for crash on Apple Mac M1 hardware -bc141e445 Remove -static-libgcc from sdl2-config output -a6715a20d revert the previous -Wc,-static-libgcc patch: -bc51de2f8 regenerated configure script. -23575a42e Ensure that libgcc is linked statically on Windows -41fab8532 ControllerList: set the default deadzone for Ps5 controller back to same one as Xbox controllers. Too many users complained about drift. -a8b28939a ControllerList: add more Xbox controllers from minidumps -08eff56a5 ControllerList: add Brooks Mars controller to PS4 controller list -afd100f02 Added support for the PowerA Fusion Pro 2 and the PDP Xbox Series X Afterglow and Blue controllers -839387ed0 video/dummy: Don't zero out the fake display mode before adding it. -268fbcd46 Fixed compiler warning on Visual Studio -d8dba5bcf Added support for the Logitech G923 racing wheel -7f261d3b7 wayland: Fix returning to a window from fullscreen without calling SetWindowSize -8da0dd17a Oops. Renderer already queues viewport change -1fc519880 Reset/re-apply viewport on frame start/target change. Fixes SDL_RenderSetLogicalSize on PSVita -0cad30234 Removed reference to ant project. -2465444fb Add missing dependencies -bc7ac134d Windows: Fix SDL_GetBasePath() truncating paths -db5cd8c69 joystick: virtual: Fix event injection for axes/hats -f3cf019ec joystick: Add missing comma in joystick drivers list -98f2e38b2 Use for endian detection on NetBSD -bc9888c9b OS2_GetDisplayModes: malloc a new copy of mode's driver data. -d28437de3 SDL_keyboard.c: Add bounds guards when assigning to the scancode array. -eb15b4e96 wayland: Drop SwapWindow calls for hidden windows -37d35a3e3 kmsdrm: hook up KMSDRM_GLES_DefaultProfileConfig for use. -3c0281419 Update docs and fix typos -bbdd08e0b Build without PIB support by default and add flag to enable it -a4442476d Cleanup dead and duplicate code -c2b8b5563 Older api, not needed -dd2a28582 Remove leftovers -2f248a2a3 SDL_cocoaevents.m: fix build against SDK < 10.12 after commit 0dd7024d. -f5122377c Move SDL_IsXInputDevice check above actual joystick allocation -766d81ec8 Rewrite SDL_DINPUT_JoystickPresent method to avoid costly IDirectInput8_CreateDevice calls -a6da2fbf7 Rename haptic methods to avoid confusion with joystick: `SDL_DINPUT_MaybeAddDevice`->`SDL_DINPUT_HapticMaybeAddDevice` `SDL_DINPUT_MaybeRemoveDevice`->`SDL_DINPUT_HapticMaybeRemoveDevice` `SDL_XINPUT_MaybeAddDevice`->`SDL_XINPUT_HapticMaybeAddDevice` `SDL_XINPUT_MaybeRemoveDevice`->`SDL_XINPUT_HapticMaybeRemoveDevice` -73dc68a7a Simplify and cleanup DirectInput joystick backend code: - Do not call IDirectInputDevice8_QueryInterface(device, &IID_IDirectInputDevice8,...) on DIRECTINPUTDEVICE8 device - Get joystick VendorID and ProductID via IDirectInputDevice8_GetProperty(.., DIPROP_VIDPID, ..) call instead of messing with DIDEVICEINSTANCE.guidProduct - Normalize HID device interface path to upper case for stable operation of XInput check - Remove useless RawInput calls in SDL_IsXInputDevice() - just check for "IG_" string in HID device interface path that we already have -f2f759dca Remove not used DirectInput ignored_devices list -adc2d362b Remove outdated and not used WIN_IsXInputDevice code -0e62926ec Fixed crash if vendor or product strings are empty -25fc40b0b stdinc: Silence clang warning for -Wimplicit-fallthrough. -e65a65832 x11: Add a hint to force override-redirect. -642fa0e3c configure: Enable KMSDRM target by default. -56e96254c build-scripts: modernized gcc-fat.sh for Big Sur and ARM64. -cb5e86353 Fixed crash after reinitializing libusb HID support -c33e3c15f testwm2: draw various debug logging into the window itself -e13b43ac2 Don't skip sending wakeups for the current thread -b992b915e Optimize SDL_WaitEventTimeout() for the SDL_PollEvent() case -85b51e6c9 Fall back to polling normally if not operating the win32 message loop -e13d5df00 Call SDL_SendWakeupEvent() directly from SDL_PeepEvent() -d956636c8 wayland: Implement FlashWindow -64724db0a Implement bare minimum for SDL_FlashWindow -64c40b902 Updated copyright date -37b093eaf test/checkkeysthreads: build fixes, and add to os2 makefile. -0dd7024d5 Modifies WaitEvent and WaitEventTimeout to actually wait instead of polling -40e5ce7fe This delay is no longer needed on Steam Link hardware -cd67f42d8 add Linux mapping for brook fighting board (#4416) -89fd9821d Add controller mapping for Atari vcs controllers -de4ba6ebc Ignore the device version for Atari vcs controllers -6de33c094 Clarify why we're skipping Game Controller framework supported devices in hid.c -28da6c5dd Have HIDAPI skip MFI supported HID devices on macOS to avoid duplicate devices. -2af3f64ec wayland: Activate the window on first ShowWindow, if possible -151f95381 wayland: Implement RaiseWindow with xdg-activation -f498c281e fixed build with SDL_JOYSTICK_RAWINPUT enabled after commit b81969d46f4b -f5b87273e Fixed bug #4397 - update IOS documentation -4522cb1df Changing variable from float to int, this way we can check it's value without having to do an unnecessary conversion. Then do explicit conversions later on if we need. -c289bad90 In x11, GetDisplayDPI can give incorrect or unusable DPI information. Using XGetDefaults to get the Xft DPI if it's available and returning that. This could allow you to figure out DPI scale. -6a2af48ad CMake: Generic check for desktop GL and EGL on Linux systems -fd121b5ec development list has moved to forum -ded023870 Make CMake script more accurate to autoconf script -d32440359 wayland: Add support for maximized/restored events -fc508eabe kmsdrm: remove redundant modeset_pending flag -4c965b7a8 kmsdrm: fix SetDisplayMode binding the the wrong surface / context -0219928dd kmsdrm: honor mode previously set by SDL_SetWindowDisplayMode when enabling fullscreen and remove duplicate SDL_WINDOWEVENT_RESIZED event -fd5de93a0 kmsdrm: fix gbm surface dimensions not matching the mode being set -30359a689 Android: document workaround to use JNI on native thread (see bug #4406) -b63cb822b Added T500RS to known wheel list -b81969d46 Be more explicit about Xbox 360/One device ids. -86ee383fd Removed duplicate SDL_AtomicGet() -fed846508 loadbmp: Attempt to handle small palettes better. -db146e66c Fixed warnings building with Visual Studio -3fcaf5b4b Fixed incorrect axis scaling for Nintendo Switch controllers -75725608f SDL_thread.h: move libc header includes before begin_code.h. -7a7cba4b7 config.guess, config.sub: fix permissions -157c3f809 [SDL] Minimize number of system calls when handling WM_INPUT raw input messages. -dbbc725f5 Remove WSCONS mouse scaling -2aa14b380 Add missing key to WSCONS-to-SDL conversion table -c63a62ae4 updates to config.guess and config.sub from mainstream. -333c8e75f The PS5 driver supports Joystick LED -b5b7804ed minor update to os2 makefile. (binary output doesn't change.) -646ddfb78 minor watcom build fixes. -be5356af9 winrt: Fix support for multiple simultaneous mouse button presses -62a562dea X11: use x11sym loaded functions (see bug #3978) -531d83bf6 X11: allow using touchscreen, while pointer is grabbed (see bug #3978) -ddc6be355 KMSDRM on Dragonfly BSD doesn't work without being root -9e1d7baef Added T300RS to known wheel list -e1db4b82e egl: Don't crash if we failed halfway through SDL_CreateWindow. -f2f451a59 wayland: Call SetWindowBordered at the end of ShowWindow -c5dd9964c Copied X11 error handler code from SDL_x11opengl.c -b3b4677e3 (X11) Set _NET_WM_NAME properly, fixes Unicode window titles -f4ab1c94f gamecontrollerdb: Add entry for the 8BitDo Receiver for Linux. -bedc509af gamecontrollerdb: added entry for PowerA XBox One Controller for Linux. -efbb6ff9d wayland: Create the server decorations after the toplevel has been configured -9dc97afa7 cocoa: Report an error if SDL_SetClipboardText() isn't using UTF-8 encoding. -107db2d89 Enable TV game mode by default on Android -9231f1f1c Added support for the PS5 controller on iOS and tvOS -2ad73db6e Merge commit '889cebb7c20d4195e5d4ac344a2175f2490354cc' into main -e589810cc Merge commit '31637ddeea1e302c77193341b2006d45dc54de98' into main -6d4991b87 Merge commit 'f309d0649d37022ad49bc468c77dd87bf82f261b' into main -e8eb0b15f Merge commit '58884e4c1bb455db90a35df3f7480cfd355eb8c6' into main -19a9e81c3 Merge commit 'c69fde348fafcb90200a148b711137c464ffa7de' into main -71e45a0b9 Merge commit '006378b9213e3e04ea2b9c591afe2a44e75e6867' into main -981532fbd Merge commit '424bbaec069f0d94857095dcdfacba6246282936' into main -95b7b879e Merge commit '20928550350d4d4c5d78f98b61e7e08d219a5475' into main -8b8956daa Merge commit '3d47ddc422de1a4209525a759b3bc46a4ac69116' into main -069a68a5c Merge commit '7b284dbb34a8c34f5d6f79c58c860c9f7894fd56' into main -12b7b8216 Merge commit '9161f95166f3d8e42248c1156e35255d4ebdc6a0' into main -2b203add2 Merge commit 'c54c16d353f206162cdbb125c0847b4645e096a3' into main -1e208c641 Merge commit '227021b6470d07f86e209d89f176ec8e6d952a17' into main -f1fa836b2 Merge commit '13472cec6764aec2e06a3c66ec1b139baa680aa3' into main -cf1e85030 Merge commit 'a74f888ff9ed1254e9b9965a27d68e0526e2c0f8' into main -63015e44c Merge commit '8ac0fb52cb13e5856aa7f4a3fd0598d3ec58283f' into main -0ebf56b5f Merge commit '1f3df900f919e7177e480e63c07447db232564a1' into main -5a95ff800 Merge commit 'fcbf19b764a9f6fed1db6a1d79a2f2f3fa1338d6' into main -572dfb4f6 Merge commit 'c93e3b36074ddb2ed986cbacc5e9d4f3a60db343' into main -a734ccec9 Merge commit 'b62642974595976a0c47c5b854eea51b2703fbeb' into main -4c7f8a749 Merge commit 'f8695185331460106f34286ebe466cb605f85bb6' into main -9cf1b3916 Merge commit '21349901ea250483600cbe4771d865cc06f6b538' into main -889cebb7c Wayland touch inputs send normalized coords -31637ddee Generic check for desktop GL and EGL on Linux systems -f309d0649 include: Document timing issue with SDL_GetWindowBordersSize -58884e4c1 SDL_audiocvt.c: fixed MSVC double->float conversion warnings. -c69fde348 wayland: Maximize/Restore should set the relevant window flags. -006378b92 fix NULL frame_callback access -424bbaec0 wayland: destroy frame callback when window is destroyed -209285503 wayland: Guard surface_frame_listener for OpenGL, document why it exists -3d47ddc42 wayland: Use refresh_rate to calculate max_wait in SwapWindow -7b284dbb3 EglChooseConfig: choose an accelerated configuration -9161f9516 egl: Reject attempts to set negative swap intervals -c54c16d35 wayland: don't hang in SDL_GL_SwapBuffers if the compositor is ghosting us. -227021b64 SDL_windowsmessagebox.c (MessageBoxDialogProc): fix calling convention. -13472cec6 Fixed bug #4228: move from jcenter() to mavenCentral() SDL can use relinker. If it's enabled on your project, you need to update to version 1.4.3 -a74f888ff Fixed bug #4337 - compilation of 'SDL_vulkan_utils' fails with 'VK_ERROR_INCOMPATIBLE_VERSION_KHR' undeclared -8ac0fb52c OpenSLES: CloseDevice() is called at higher level, if OpenDevice() fails - explicit initialization of static variables -1f3df900f Error missing 'flags' initialization (see bug #2881) -fcbf19b76 AAudio: make sure stream is not null to prevent crash in RequestStop (see #3710) -c93e3b360 Fixed bug #2881 - SDL_RLEsurface may encode RGB888 if it has no color key (Thanks Simon Hug) To encode with BLEND mode, it needs a valid alpha channel -b62642974 Merge remote-tracking branch 'refs/remotes/origin/main' -f86951853 Audio: normalize conversion Stereo to 5.1, Quad to 7.1, 5.1 to 7.1 (bug #4104) -21349901e Audio: convert 5.1 to 7.1, use right-surround for r-front and r-back (see #4104) -8527c583f cocoa: Fix recreated windows that are both borderless and resizable. -40210f894 winrt: Always use a thread for joystick support -2fdbae22c cocoa: Remove mouse event tap. -9727655b8 SDL_test_common: add other window flags: --shown, --hidden, --input-focus, --mouse-focus -d62ebec26 SDL_test_common: replace 'resize' by 'resizable' -1f482174b x11: Mark backing_store as NotUseful when creating windows. -9c063468d x11: call XSync before XSetInputFocus during SDL_ShowWindow. -89a2980a6 CMake: fixes to pthreads detection. -ca969eb2b Remove gles2 vita render -058bbe028 Set volume on device open -e3ea5b646 Migrate to lightweight mutexes -f1ad942a1 SDL_windows_main: use HeapAlloc/HeapFree for command line arguments -17d8479d9 hidapi/libusb: maintain in-memory cache of vendor/product strings -4535d6549 HIDAPI_UpdateDiscovery: only treat "add" and "remove" events as relevant -b15bbd4e3 SDL_udev: check for NULL return value from udev_device_get_action -cf05a5eb0 eglChooseConfig: only add EGL_DEPTH_SIZE if non 0 and fix static / shadowed variables warnings for dump configs -98a966d1c Android: don't need to set the SurfaceHolder format from java code It's already set with ANativeWindow_setGeometry, and eventually set/changed also by eglCreateWindowSurface. - avoid issues with older device where SurfaceView cycle create/changed/destroy appears broken: calling create/changed/changed, and leading to "deuqueBuffer failed at server side, error: -19", with black screen. - re-read the format after egl window surface is created, to report the correct one (sometimes, changed from RGBA8888 to RGB24) -8e3ec34d3 wayland: Refactor toplevel mapping, implement HideWindow -0838f53d5 Implement SDL_SetWindowAlwaysOnTop for X11 -a5825576f Fix error handling of wayland message box -12dd412b0 Fix icon of wayland message box -d0cf3b755 Return correct button id -1fd95c53b Disable pango markup in wayland massage box -0cd0e9ba9 Reimplement wayland message box function with execvp. -99ef03b96 KMSDRM: Only use OpenBSD-specific defines on pre-6.9 releases -a0a5da5d9 Add SDL_SetWindowAlwaysOnTop() -6be9c0097 Android: prevent error EGL_BAD_DISPLAY while getting egl version without display -03503423e filesystem: Better OpenBSD support for SDL_GetBasePath(). -de6d29026 Fix keymap updating for X11 backend -509228c42 wayland: Implement GetDisplayDPI -fcbfe33ce wayland: Implement SetWindowModalFor -213bfc194 wayland: Implement RestoreWindow for xdg/zxdg -0f5180022 wayland: Removed unused GetDisplayModes/SetDisplayMode functions -46df195b2 wayland: Implement GetDisplayBounds -ed24c3452 wayland: Implement basic window move events via wl_surface_listener. -859230ec8 Android: add AAudio entry in CMake SDL_config -d4e96e115 Android: enable audio driver OpenSLES when building with CMake -b4f89c56c AAudio: add aaudio pause/resume function to android events loop -02b1ebc9e Android: add openslES and AAudio compilation to CMakeLists -146656cfe AAudio: add compilation to Android.mk, but not activated in SDL_config_android.h -f1fab24e3 AAudio: add bootstrap in SDL_audio.c -04b2f5f6e Android: add AAudio back-end, with playback and capture (see #3710) https://developer.android.com/ndk/guides/audio/aaudio/aaudio -4118fe62f Android: OpenSLES, explicitly initialise the global variable 'bqPlayerPlay', it may be read even if OpenSLES back-end hasn't been intialized -babd79b8e bump minimum required autoconf version and revise autogen.sh -69203851d rename PKG_CONFIG_LIBS_PRIV to PKGCONFIG_LIBS_PRIV -197cfcaf7 ran configure.ac through autoupdate-2.69 -499d31e9c Cleanup Linux joystick code -5c78df9c2 Support key composing (i.e. dead keys) in Wayland driver (#4296) -b04136e75 Fixed Xbox controller when using the default Linux gamepad mapping -1aaafc2bd Show the real name of the Xbox controller when using the generic mapping on Linux -1542300a8 joystick: linux: Avoid checking for gamepad mapping each frame -401f48549 cmake: Weak link with CoreHaptics -dbedaeceb Adding checks to see if any ASAN flags are set, if so then we set(HAVE_ASAN ON) so the infomartion output will properly list ASAN as on. -70bd205bb Adding messages to output CMAKE_C_FLAGS_DEBUG and CMAKE_CXX_FLAGS_DEBUG, this way when using Debug builds you can see which debug flags are set -320666044 Moving ASAN macros and calls to macros above the information output section so we can display ASAN information properly. -f88d91d59 wayland: Minor whitespace fix -d785dab5f wayland: Add unscaled resolutions to the display mode list -b0178fe51 KMSDRM: Report correct window position to the application -dfcd5fbca wayland: Set the keymap in keyboard_handle_modifiers -e87c7940f Fixed bug 3829 - Don't FOURCC format for target textures FOURCC isn't supported by renderer back-ends for target access So use a correct format and fallback to with native/yuv path -9ef0b97c6 Changes to macOS event handler to better interact with the running app -2a20cc0f1 SDL: let through a SetLED command every 5sec to deall with situations where the controller loses power when a computer is suspended -c59d4dcd3 wayland: Dramatically lower the timeout when reading/writing pipes -cf1249631 wayland: Fall back to clipboard source data if offer came up empty -282c05247 wayland: Another strlen->SDL_strlen -bec133d77 wayland: Use SDL_strlen instead of strlen -e28d97850 wayland: Minor whitespace cleanup in clipboard.c -875f839df wayland: A bunch of clipboard safety fixes. -7510245af wayland: Create the data_device only after both device_manager and input exist. -732cc8ed5 cmake: Fix UWP DLL build by removing /NODEFAUTLIB -50db4a59b * Support for intrinsics in MSW + Clang scenario. Utility polyfill is provided, removed the no-longer-needed conditionals. -89b620931 Fix race condition that can lead to ENTER/LEAVE window events never firing -4cee1012c debian: Align to debian packaging scheme -6fd37194b wayland: Fix leaked zxdg_decoration_manager -f6a09ef1a wayland: Drop support for kwin specific decoration management -a92cca1ab wayland: Use the window's display to get wl_output rather than fullscreen_mode. -c7e29a9e9 wayland: Fix toggling fullscreen with fixed-size windows -0f4aba7bc audio: Fixed assertion failure if trying to use dummy backend. -64853b737 audio: Changed a disk and dummy backends to use _this instead of this. -e97cfe4ad KMSDRM_Vulkan_CreateSurface(): fixed pointer-cast warning on 32 bit -78095e370 git: Ignore debian generated files -17ceddf28 debian: Align debian deps -ebc110986 Removed mkdocs.yml -7b8c75095 CMake: Enable WASAPI on WinRT -8fa2ce560 WinRT: Rename Interface ID symbols -3dbc4cf23 Fix compilation error for Windows SDK 8.1+ -9634070ba debian: Update README file in doc package -413a2306b NULL passed to strcmp in Wayland_ShowMessageBox -573c5a5ba regenerated configure. -491419966 ibus: make sure we don't pass a NULL path string over D-Bus. -e00687235 hints: SDL_HINT_TIMER_RESOLUTION applies to all versions of Windows. -a81fe2727 configure/cmake: Hook up Emscripten threads (disabled by default). -354cabd4a egl: favor truecolor configurations. -95e5f0586 audio: make SDL_OpenAudioDevice declaration look less squashed. -4abe34461 SDL_EGL_ChooseConfig: cleanups and minor optimizations. -7d02248cf tls: wrap reference to a mutex into an #if !SDL_THREADS_DISABLED test. -dbdbae44c linux: (de)initialize d-bus at init and quit. -57c2a4566 render: draw when hidden, except on iOS and Android. -b42bf2a77 configure: Don't use "-Wl,--no-undefined" in "sdl2-config --static-libs" -2689e844e Delete gh-pages.yml -da6675545 Fixed up legacy MoinMoin URLs at wiki.libsdl.org -2542977b0 Revert "Update wiki.libsdl.org urls to libsdl-org/SDL/wiki (#4069)" -fa8188341 [KMSDRM] Fake refresh rate precision on Vulkan display mode creation. -942aa7bd0 [KMSDRM] No need to use an SDL_VideoDisplay pointer to access display index. -033c0abb5 Use dispatch_async for -[NSOpenGLContext update]. Fixes #3680 -eeee73083 wayland: Implement IME support. -733b3278d [KMSDRM] Minor Vulkan code adjustments regarding pointers and display index. -570768f62 test: fix shadowing variables -b972258d5 test: remove unused variables and typedefs -3f2570459 test: portable 64bit address format specifier -9d294f1fc audio: Allow AudioStreamGet to return 0 in RunAudio. -9b7babf96 wasapi: Remove assert added by 67e8522d -fb283a732 Squashed commit of the following: -5ceb67442 linux: Fix ibus support on Wayland/XWayland -1cd97e269 testmessage: Create a renderer for window display on Wayland -5f9effaa7 audio: pipewire: Block while waiting on stream state info -8deb40630 audio: pipewire: Avoid redundant locking -5bb2bbd40 audio: pipewire: Don't use uninitialized variables in callbacks -9de7eaf9a [KMSDRM] Change error message. -1ec60a38e [KMSDRM] Remove unnecessary space. -c13c3c37b [KMSDRM] For Vulkan, use a mode with the same exact size as the window, if possible, or create a new one. -07ba13b7a wayland: Pass --no-wrap to Zenity. -54719a9d3 wayland: Assign output_len in ShowMessageBox -6d9c4f6c6 Added support for the wired Amazon Luna gamepad on Android -40b0509ef Fixed header documentation errors -4a07c73b8 Added mapping for the Amazon Luna controller on Linux -07af9baa8 Use the correct name for the Amazon Luna Gamepad -ef3635556 Added mapping for the Amazon Luna controller on macOS -8b87b438b Don't try to map the touchpad button, since we don't have any art for that at the moment. -3377861ab Added support for the Amazon Game Controller to the HIDAPI driver -27b74d333 Implement Wayland_ShowMessageBox using Zenity -5262b52dd SDL_kmsdrmvideo.c: define EGL_PLATFORM_GBM_MESA if it's missing. -ab7944f96 wikiheaders: fixed regex for converting markdown bold+italic to mediawiki. -f55445422 wikiheaders: when merging into headers, wordwrap in Markdown style. -45d128db0 wikiheaders: Fixed double-wikify call. -5753fd73c wikiheaders.pl: Whitespace fixes. -c486959e7 headers: Fix up bullet lists, now that wikiheaders.pl can handle them. -c2152928f wikiheaders.pl: Mark some sections as wiki-only so we don't lose them. -231b849c9 wikiheaders.pl: Properly handle and wordwrap bullet lists. -5ac6bd548 [KMSDRM] Ask for videomode on the correct display when creating a window. -7c08b049e headers: a few minor documentation corrections. -b55b11af8 src/thread/pthread/SDL_systhread.c: drop include of SDL_platform.h -0bdf4f95b Disable system gestures on MFi controllers while they're open, so we get access to the back button, etc. -1133ea034 Fixed crash on macOS when AirPods are connected -38b61a3df Merge commit 'c12f46b100d22a0e06a64c5b6d1baa3f446d34e6' into main -258b7bc09 Merge commit '100166d7d7b9ed2e486841498bbc585975630e02' into main -f82aa7f5d Merge commit '3f40396d33df64326756648c3b8e1e6c922efe5a' into main -9332006c1 Merge commit '3c78c211d57de4e9d953bf71d49d2ee313bbff34' into main -8a6810e90 Merge commit '599edaaf935aab69a13b5643566adc652a27e268' into main -b0a047e5a Merge commit '1899844952756e932ee29e887501a9b9e39066a6' into main -de832227c Merge commit 'cf7eef37b045bb3f841e26879fdc6d865c8aaf9a' into main -4b0b39a34 Merge commit '4acd1dcad41d154093ca14eb0adf35f4f99bd06a' into main -f68ba3cc0 Merge commit '8638674a87c5ea92a87240f8f562ed1c437d1e0c' into main -3ee89ac02 Merge commit '82ff6045fa0aa7ff2f861f20512e30688c7b51c3' into main -4b1dfb14e Merge commit 'c35e71892e6aa7dc2ce697b9ac44e541b3f4caef' into main -d27c6c11c Merge commit '281a7bdbb32a2ba124f8a6f6f9555135fd529599' into main -4fa42cab7 Merge commit 'e5821bf27668a5e54c699743c2b97aa55e7bdd93' into main -f83ce7c5f Merge commit 'e6b87005c1da22a0d354619eebca53c6e2639cdd' into main -e62a25184 Merge commit '7d1b9c9f15eb3a9f2f253e5b88e091192a894bcf' into main -49eb7c6b6 Merge commit 'db2ad6fa73adec1ffa364d21d130b69533b30ade' into main -e944e404c Merge commit 'e7e519a466167b7a3ef9aa9b28535e436139936a' into main -4c412d295 Merge commit '559be8aab4a0e666fa6fc9104570c9c9d3c54f12' into main -9ffd477df Merge commit '07fc1bb883f4c3d9b603d3a3be8c0f2dfa88c285' into main -7ed20094d Merge commit '96cc49857dcda68910b8ae068de41983da625de2' into main -f5253b708 Merge commit 'e14fb54e3f409aaf1e10b94f681677c59b1b7e0d' into main -4ef152707 Merge commit '7a2a1a85e9738f127d9f6cd600aa6e1c4459bf2e' into main -2b6558819 Merge commit '108bb5aabec27f41f977bdf7a4d2ed3f3a3962eb' into main -0727acd6b Merge commit 'e213f37a450ca6b0746aa3acd2e5e76635e13468' into main -c12f46b10 [KMSDRM] Fix segmentation fault -100166d7d [KMSDRM] Improve cursor management. -3f40396d3 First shot at merging the wiki documentation into the headers. -3c78c211d Update and rename README.txt to README.md -599edaaf9 Merge pull request #4212 from Cacodemon345/patch-11 -189984495 Fix GitHub display of README-android.md -cf7eef37b [KMSDRM] Better error handling: no more segfaults on window creation failure. -4acd1dcad [KMSDRM] Improve the way to test if last window is being destroyed. -8638674a8 [KMSDRM] Correct comment typo. -82ff6045f [KMSDRM] Unload GL/EGL libs and destroy GBM only when we are destroying the last window. -c35e71892 [KMSDRM] All non-vulkan windows have to be marked as OPENGL, not only the first created one. -281a7bdbb [KMSDRM] Make the gbm_init flag a viddata member to avoid GBM re-init when several displays are connected. -e5821bf27 regenerated configure. -e6b87005c Fix tests configuration and building when only GLVND full OpenGL implementation is present. -7d1b9c9f1 [KMSDRM] Remove unneeded function calls and improve comments for future reference. -db2ad6fa7 git-pre-push-hook: remove ".git" from URL. -e7e519a46 dsp: Refuse to initialize if there aren't any Open Sound System devices. -559be8aab fix invalid out of bounds UTF8 handling -07fc1bb88 Fix invalid UTF-8 handling of extra bytes -96cc49857 [Build system] Report differentiated glx and glvnd OpenGL implementation detection. -e14fb54e3 [KMSDRM] Undo SDL_CreateRenderer() modifications aimed at create opengles2 when KMSDRM is in use because it's a harmful solution. -7a2a1a85e documentation: initial script to merge header comments and the wiki. -108bb5aab [KMSDRM] Modify SDL_CreateRenderer() to create an opengles2 renderer when the KMSDRM backend is being used and no renderer name has been specified. -e213f37a4 [KMSDRM] Enable full OpenGL detection (MESA/libglvnd) on both the make and cmake buildsystems. -5f596d1a1 Merge commit 'b98b5adcaea159fc6a9753f808875acf7d3ee945' into main -b1b93df8a Merge commit '8ba735c208388159477bf0ccb06a8573a273fb02' into main -aa00fe4b2 Merge commit '3853531f6d11d1824b6a0ce0212c06e79483d22d' into main -7acafda73 Merge commit '9996cecc726a8d8900fd817d58f9505b3490d1bc' into main -30bef5dcc Merge commit '5f7eb88ae0990f89ec3a4bf697ec03aafee1a9a8' into main -00f93e408 Merge commit 'b49e0953b14be38cdeada86df84a59c92e38aeff' into main -4a39d8961 Merge commit '1957ffd21ab5a3be6f347def510fcb8f985d3b8b' into main -3313c67c0 Merge commit '34de3b57a101f8d885041add5e21311a153bb1bf' into main -2bd0a7182 Merge commit 'dacf6cfbaa8c66ea6150f95aadad2954f116836c' into main -082394c6b Merge commit 'a5f3ea14487f1a36b1d421d02e86f25704f8bdc8' into main -7ca94f599 Merge commit '4fbd60b81714f8f93946520147cb0c1f05faee64' into main -713a04721 Merge commit 'cd3809c03e6d41a73cdb7c4a2e84c56e3d45cd7a' into main -61589463d Merge commit '9e23c65237b480c74a0a2537b9927f6e52ca22aa' into main -b53f06ccf Merge commit '72bcf546f90423f05eda0fa08510e340683ff6f4' into main -5b34a265b Merge commit '3d22731d94d6259255ef3fd5006c8c6c80e377b4' into main -d84df04fd Merge commit '51345623e888d7bc4131cd8f015c339f757ea68a' into main -b98b5adca wasapi: Don't use the system's resampler. -8ba735c20 Include arm_neon.h in mingw targeting ARM Windows. -3853531f6 Fix CMake script on Linux -9996cecc7 Set ALT_OGL to libOpenGL.so.0 instead of libOpenGL.so.1 -5f7eb88ae Load libOpenGL.so.1 if libGL.so.1 is not found -b49e0953b regenerated configure -1957ffd21 fixed a typo in SDL_ceilf() -34de3b57a Fix CMake script on FreeBSD -dacf6cfba Fix compilation with iconv on FreeBSD -a5f3ea144 netbsdaudio: Handle ioctls failing -4fbd60b81 audio: pipewire: Remove the nickname portion of sink/source names -cd3809c03 SDL: Updated patches for HAIKU -9e23c6523 SDL: Updated patches for HAIKU -72bcf546f SDL: Updated patches for HAIKU -3d22731d9 Merge pull request #4175 from 1bsyl/br_blit_rgb555_to_rb1555 -51345623e Fixed bug 3727 - Blit from RGB555 to ARGB1555 -9d46bd25c revert commit 81cdb1bb0de (unifont license issue.) -3a1317ed4 Minor tweak to workflow settings. -33127271e Fix typecasting -a4ddb175f Formatting -4f9fde876 Fix types -1e5cc9619 Docs -091288ac4 Vita port builds with cmake -e58a955e6 Deprecate dolcesdk -e1d9cbf65 Split mouse/kb grab -29153a1c6 SDL_vitamessagebox: rearrange if/else -70a19fd5a SDL_vitamessagebox: if/else wrap preprocessor condition instead of two if conditions -abcfb22b7 Add support for Vita file API in SDL_rwops -c8abc88cd Add support for message box -91fe2b67f Allow larger texture sizes -4708c6bb9 Remove pkg-config prefix hack -e5cbe7cf7 Add l2/r2 axes, l3/r3 buttons. rumble and ledbar support for ds4 -7c4d20cf0 Fix for dolcesdk -3c1fe9cea WTF -6fab3323c Typo -739f4e1eb Only call sceGxmFinish when vsync is on -b52e9459b Add support for open URL -189d3c16f FIFO is default (and not defined in vitasdk, ugh) -87a118b6b Use native mutexes -7423ae1ac Formatting -a43f48892 Don't search for pthread -ddfe7200e Rendering improvements -23db5381a Fix defines -c7cec2c79 Add more texture formats -0e9cd839d Remove makefiles. Use cmake -e56c44512 Disable native framebuffer support -54134fddd Use Clib mem funcs -5e30d84b6 Fix display mode -10038228f Properly cleanup framebuffer -953101def Oops. Fix default framebuffer color -1e2eed1a0 Native framebuffer for software renderer -ff5f98b87 Fix platform -a7269a9ad Update video api to 2.0.14 -7b0b1a12f Update thread api to 2.0.14 -a05f92da1 Update joystick api to 2.0.14 -8e4271fa4 Fix timers -e928b92f1 CMake support -47c105161 Add reversive list join macro -ca5e5d615 VITASDK compatibility -7d89f09f7 ISO C90 fixes -0de7b0eca Fix makefile -0da35d3da IME support with gxm backend -e812ca529 Enable ARM SIMD/NEON optimized blitters -47c6270ec Fix a bug in vitagles2 renderer -639323ea0 Fixed gxm render flags -3ac2242e6 Fix PerformanceCounter -943053a92 Clean up touch a little more -f61b9e765 Cleanup touch. Fix back touchscreen -d9b2bde2f Fallback to app0: -6f7c7c557 sensors corrections -6d8563778 Fix sensors -e7edb06e7 Audio fix -05e5a7cb0 Oops -a86ba3916 Add SDL_RenderReadPixels -f623211ee remove sceGxmFinish on render swap -0b45529e2 Add viewport support -2209b7178 Refactor render state -333d5e11e Add drawstate cache -56bde0f63 Rename memory functions to avoid clash with vita2d -94d7737be Texture render target -63e223fa5 Set initial blend mode -6c3bf5650 Unified build with both renderers -a1adc8a9d Add sensor support -bd14aa633 Autobuild -013110540 Fix render name -6ba849751 Remove vita2d render, add raw gxm render -ef0bbfd6c Include anf fix vita2d renderer -dbb730d39 Separate vita piglet renderer. Add proper render initialization and window re-creation. -d75ea51ac Fix texture shaders -194c81389 Fix filesystem -73b545ed2 Fix joystick support -41d6c80b0 Filesystem module -2e3dd0a66 Remove debug log -800362306 Cg shaders for vita gles2 -2d64e37e4 Initial rebase of xerpi's port -bd0653877 configure: fix wrong AS_HELP_STRING quoting. -b6b0c908b Dynapi: fix 'gendynapi.pl' script for array parameters -a7938107a fix SDLK_DELETE after commit 2f5beac190d -2f5beac19 Change octal char literals to hex char literals -391bb80bb Replace duplicate functions and lstrlen/lstrcat with SDL string functions -67e8522d3 Add SDL_GetAudioDeviceSpec. -00fabdde1 Make github CI great again The current CI doesn't work and can be fixed. To steps, use a matrix to build on various OS + allow platform specific flags. The linux build should cover a wider case of video backends. -686935542 dos2unix SDL_dynapi_*.h -34ecd71e8 CMake: don't add -Wl,--no-undefined to LDFLAGS for clang+windows cases -3880174a9 CMake: set OPT_DEF_LIBC to ON for clang case, too. -05cc9e376 CMake: move GCC check after CLANG, so that CLANG is properly recognized -81cdb1bb0 test: add unifont-9.0.02.hex as a resource (so it works out-of-the-box) -a52d0db53 test/CMakeLists.txt: add OpenGL module checks and adjust dependencies. -e7abf9680 test/CMakeLists.txt: bump cmake minimum required to 3.0 for consistency -dd5aff308 SDL_fillrect.c: updated SSE_BEGIN macro for windows clang-cl -0ed171312 update SDL_COMPOSE_ERROR macro for windows clang-cl -e228d1526 SDL_config_windows.h: added clang to list of toolchains having stdint.h -c1c4f274c cpuinfo: updated xgetbv call for windows clang-cl. -e88d78462 Update SDL_blit_auto.c -ab0cf42a4 Software nearest scaling: start at the middle of pixel so that it matches opengl GL_NEAREST mode most of the time -ac8a3fda8 fix prepare_audiospec() possibly missing a bad SDL_AUDIO_CHANNELS env. -615862161 Update cpuid code for clang-cl -4de0c74aa audio: pipewire: Add the application name to the stream properties -9ed01da70 audio: pipewire: Constify and clarify period size calculations -d7ca855c2 audio: pipewire: Add missing static qualifiers to globals -84c44e01d audio: pipewire: fix uninitialized variable warnings -0a6832217 add missing PIPEWIRE defines to SDL_config.h.in -7001b531c audio: pipewire: Add vim format lines to files and fix indentation -2fcba50ec audio: pipewire: Code and comment cleanups -4eadd147c audio: pipewire: Fix outdated comment -cd56f1b34 audio: pipewire: Use "rear" designation for rear channels -adc0a931d audio: Move Pipewire bootstrap after Jack -21adec93b audio: pipewire: Make enumeration structure and function names more descriptive -a07f54343 audio: pipewire: Report default devices first -9afd7570d audio: pipewire: Always buffer source audio -106dc009a audio: pipewire: Pass proper parameter to user audio callback -f3ebbc06d audio: pipewire: Retrieve the channel count and default sample rate for sinks/sources -2f0b99a77 audio: Add Pipewire playback/capture sink -57a927e8d wayland: Explicitly set min/max size for xdg-shell -33598563b Fix coding style -69a600b00 Implement requested changes -0e35f0be1 Fix KMSDRM-related warnings -dfa64eadd KMSDRM: Add hint to enable the backend without DRM master -8c5b7af2d Wayland: Fix mouse pointer hiding on Plasma Wayland -d2d834b99 KMSDRM: Add gamma support -72f7a10ce disable pixman ARM blitters for __aarch64__ | _M_ARM64 -2f4e9294a Update the Linux build instructions -e561ce3a7 SDL_cpuinfo.c: replaced gcc i386 checks with __i386__ . -55a385a33 removed a useless restriction from Watcom version of SDL_Swap32() -b8d218527 added Watcom i386 inline asm for SDL_Swap64() -c287087fc Only change joystick->nbuttons for Joy-Cons, since they're the only ones that have these "paddles" -ee52624f9 Switch Joy-Con SL and SR buttons are now mapped to matching paddle positions so that all buttons can be accessed when using SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS -7a2b6f331 Guard Inotify stuff with macro -8481229ff Fix error handling in KMSDRM_AddDisplay -2df9c15e9 Fix memory leak in KMSDRM_Vulkan_CreateSurface -b3498a5dc make SDL_syswm.h work with apple's older gcc versions -bb76edf3d fix permissions of a few files -844d5e3ed Fix memory leak in ConnectSensor -557aa140e CI: fixed branch name -f63e827ef DOCS: group the markdown -306e808da CI: added github pages build job -5d266e9bb CI: added github actions -11cb53d2a [KMSDRM] Add missing break and modify comments. -9172e413a [KMSDRM] Fix intermitent bug in Vulkan initialization on Raspberry Pi 4. -1a17ab30e Added mappings for popular controllers on Chromebooks -f5e9c5b7e Chromebooks support relative mouse motion now -db58166e9 joystick: hidapi: Properly include when inotify not available -360740ac7 correct dynapi -5696582e1 add SDL_AndroidShowToast for https://developer.android.com/reference/android/widget/Toast -1a924bc0b add SDL_AndroidShowToast for https://developer.android.com/reference/android/widget/Toast -8d43f45a7 Don't use udev for joystick enumeration if running in a container -2c3269152 Use inotify for HIDAPI joystick enumeration if not using udev -b17242bf9 Allow libudev for HIDAPI joystick to be disabled at runtime -0052339b6 Move handleURLEvent setEventHandler to init -42607909a Remove devices from the list after they've been disconnected due to read errors. -08547adb5 pulseaudio: Add "zerocopy" playback path -a29fe2929 configury: replace host checks against *-*-mingw32* with *-*-mingw* -c4b7e485a docs: README.md points to Discourse instead of the mailing list now. -abe2c0f1b license: Fixed references to COPYING.txt that are now LICENSE.txt. -ef85ed935 pulseaudio: Initialize fragsize to fix mic recording -0a58010c0 Fix README-kmsbsd.md Markdown display -ffce58a30 license: Fixing the license file to be correctly scooped up by Github automation -e4a81a98a [KMSDRM] Correct indentation. -d79bc0015 Update the .gitignore file -9323cd51f Check for ARM SIMD in testplatform -98bf79cff Minor improvements for CPU detection on ARM -4aa2e7484 Add Xbox Controller S entry to gamecontrollerdb -350e0ae1f Add documentation for KMSDRM on *BSDs -f2a2d0c69 SDL_render_d3d.c: fix build with SDL_LEAN_AND_MEAN -bd4277ee3 fixed make dist (VisualC.html went bye bye..) -09231c42e Fix flags check in test code -9b9d0d484 mac/iOS: allow Metal in windows created without an explicit backend -9c1871c14 update path to visualc README -92506462e update some copy -be17004e6 updated some notes around using a newer IDE -7f1b83337 initial work -a2fbc452c replace i386 checks with __i386__ -cf15faae6 Change "memset" to "SDL_zero" -c5f9e061b Disable FreeBSD console mouse when initializing evdev input Enable it again after quitting evdev input. -d4d32833f macOS: Fix Xcode project when deployment target is > 10.7 -b34d92bf3 further .gitignore updates -0d92507d7 regenerated configure -2faa47832 further .gitignore updates -a6388cf2c Add the usual "vi" comment to the end of pre-push-hook. -3da58b47f Fix errors with fallback impls of SDL_isxdigit() and SDL_ispunct() -fe6f62e6c Add ALIAS targets to all installed SDL2 targets This provides a linking interface that matches the one available when `find_package()` is used, by aliasing all of SDL's public targets into the SDL2:: namespace. Thus, dependees link to the same-named targets regardless of how SDL was acquired. This approach permits the use of wrappers around CMake's FetchContent API such as https://github.com/cpm-cmake/CPM.cmake -dfe219ec7 Add all missing "is characteristic" stdlib functions -88f1c2c1b Replace "echo -en" with "printf" in autoconf script -67a9d6ba9 updates to .gitignore -3937eefcf a draft for a pull_request template -1a48ca666 emscripten: Create directory recursively in GetPrefPath -fa367cdd5 emscripten: Fix alt key being a nav key -20be1d634 emscripten: Automatically resume audio contexts -edaf3f9c9 emscripten: Extend the "nav key" blacklist -82a96afa7 Update wiki.libsdl.org urls to libsdl-org/SDL/wiki (#4069) -5cbe62eac ignore vs2019 meta folder -9f71a809e Rename .hgignore to .gitignore -a99eec775 wayland: Minor whitespace fix -0e9fd0f8b Added a script that can be used to show commit URLs during a `git push`. -65fbf36c9 Cleaned up a few more Bugzilla mentions. -60a99b0b5 BUGS.txt now points to GitHub Issues instead of bugzilla.libsdl.org. -4ff51d29c Deprecate SDL_GetRevisionNumber and update things for git instead of hg. -ee25a1e6e The revision defaults to the empty string -9deffcd32 Updated the revision header with git revision -39153f81b add Linux mapping for Ipega PG-9087S, closes #3783 -f443a6fc7 Fix format string warnings for width-based integers -5427f4861 Added support for trigger rumble for all Microsoft Xbox One controllers -1f7ec3fa4 Added support for the PowerA Xbox One Series X Wired Controller -f9046b4ca We're in Git now! Updated docs. -cad67082f wayland: Check for both _WAYLAND_CLIENT_H and WAYLAND_CLIENT_H -31e8a4627 * Fixed closing the test window. -ef52560a2 Fixed bug 5539 - Clang 11 fails to compile a CMake build with conflicting types for _m_prefetchw -629334f28 Fixed bug 5543 - Wayland: Fix waylandvideo.h warnings -f70e19736 Fix waiting on condition variables with the SRW lock implmentation -d9ba20442 Backed out changeset 852a7bdbdf4b This causes a use-after-free memory error -4183211a5 free the 'display' after it was added to global list -005e2c59a [KMS/DRM] Bugfix number #5535: Improve reliability, by wahil1976. -2170c7bfd make AddressSanitizer optional and disabled by default -5045d299a enable AddressSanitizer only for GCC 5 onwards (bug #5533) -066960c20 add '-shared-libasan' to debug flags (bug #5533) -dc45a228b avoid some pedantic warnings in array initializers -9c3aa7f05 SDL: fix packet handling for original version of Stadia FW -bb9e049d1 minor updates to libc function checks -19fa85d8a [KMS/DRM] Fix build warning. -6ee53258c [KMS/DRM] Replace indent tabs with spaces, as intended. -59cd46c24 [KMS/DRM] Merge patch for bug #5532: No need to correct cursor position now that all windows are fullscreen. Link: https://bugzilla.libsdl.org/show_bug.cgi?id=5519. -538f7ad6b [KMS/DRM] Remove redundant SDL_SendWindowEvent() call. -7beba0501 [KMS/DRM] Restore all-windows-are-fullscreen functionality, since there is no window manager in KMSDRM. -f4d58689e Fix Xbox Series X controller on macOS -525196dd8 Updated runtime dependency on libudev -ff297753d Fixed compiler warning -a60af1e4d Backed out changeset 1cde3dd0f44d - this breaks windows which are created and then set to FULLSCREEN_DESKTOP -d74779b74 Android: documention update -e404b525f KMSDRM doesn't have a window manager, so all windows are fullscreen -549bc1336 SDL_vulkan_utils: minor code clean-up -c0166a29b SDL_ConvertColorkeyToAlpha: remove and clarify a FIXME This function doesn't handle bpp 1 or 3 case, because those formats never have an alpha channel -85235985f Fixed detecting the paddles on the Xbox Elite Series 1 controller -69e9b2ace Fixed bug 5471 - Creating a fullscreen desktop window goes windowed temporarily -ef2f13e12 Added test command line options to force different window types -2426949a1 Removed support for clock_gettime_nsec_np() -42798cec8 cmake: enable AddressSanitizer in Debug builds if supported -fadfa5102 Don't uncorrelate while rumble is active and stay correlated longer in case raw input messages are lagging a bit. -e862856e6 wayland: Don't crash when the properties of already existing wl_output change -cef198c9c Fixed bug 5524 - Pass NSString to NSLog() -b7f711cd7 Don't enable address sanitize flags without checking compiler first -0ed16cedd free 'outputs' in 'Wayland_DestroyWindow' -a44678465 free the 'data_device_manager' -f8b4a6e25 cmake: enable AddressSanitizer in Debug builds -3ae2ec34f wayland: Fix transform and scale handling when setting display mode -2c7643315 [KMS/DRM] Merge patch for bug 5522#: Implement KMSDRM_GetWindowWMInfo(). -bfa51c384 [KMS/DRM] Fix for bug #5518: only do async pageflips when hardware supports them. -79cd8cab0 Add default handler for Alt+Tab while keyboard grab is enabled -9d7071134 Revert checks on destination scaling size (see bug #5510) -088fb5257 [KMS/DRM] Correct small omission on bugfix #5513: y-coord correction has to be done on WarpMouseGlobal, too. -2cc70ca39 Fixed crash if the GameCube controller hasn't been opened yet -091a4649e added --enable-xinput switch for windows builds -d6a6662fa Remove checks on destination scaling size (see bug #5510) -8d95aba17 [KMS/DRM] Remove unused KMSDRM_SetWindowGrab prototype in header file. -b17c49509 [KMS/DRM] Patch for bug #5513. KMSDRM backend can now manage and use several displays. -a78bce9e3 Properly handle keys already down when the hook is installed -dc0ec827a Remove old YUV fixme -ebb814310 Add checks for maximun scaling size (see bug #5510) -7f710e93f Make sure we don't create a game controller mapping for HID devices that aren't supported by HIDAPI -7e19c634c Note that the Logitech G29 (PS4) is a racing wheel -431b79cf3 SDL_config_os2.h: remove some duplicated lines. -582e1f4a1 config.guess and config.sub updates from mainstream -d59f8dafe Fixed bug 5510 - simplify the scaling functions blit auto (generated file) -0b338bffe Fixed bug 5510 - simplify the scaling functions -dd6e02df6 SDL_stretch: remove un-used vars, same notation as blit functions -1dc9180fb Fixed compiler warnings -d59a92683 Fixed build warning -eb83da023 Fixed PS4 controllers over Bluetooth on Windows 7 -d95a9eaed Added WIN_IsWindows8OrGreater() for internal use -808249a5c X11: Ungrab the keyboard when the mouse leaves the window -87f090070 SDL_LowerSoftStretchLinear: assign result from scale_mat() to ret. -24d6fda2c Fixed bug 3816 - asm code in video/SDL_stretch.c -d81eaf8da Added explicit case from Uint8 to int before subtracting offset -bec9d740e Fixed compile warning -a4db44fa7 The Sharkoon Skiller SGH2 headset hangs in DirectInput enumeration, so avoid it here just in case. -06ad887f4 Fixed bug 3816 - asm code in video/SDL_stretch.c -1e5f0073c Fixed building with mingw64 -70b353d1a SDL_Update{YUV,NV}Texture: also intersect rect with texture dimension -13626c368 SDL_UpdateTexture: intersect update rect with texture dimension - fix crash with software renderer - fix non texture update with opengl/gles2 -5e3cf0d1f SDL_SoftStretch: disable asm path if mprotect isn't available (see bug #3816) -6b057c678 Expose separate keyboard and mouse grab support -ff827fc76 SDL_SoftStretch: re-enable USE_ASM_STRETCH path for gcc >= 4.6 -a1d288bea DirectFB: Split input grab handling into keyboard and mouse parts -de85d6125 Fixed bug 5497 - SDL_COMPOSE_ERROR is wrong -de1c19b3f Fixed bug 5481 - iOS-specific main sources not used for CMake build. -ac72a2ba8 Fixed bug 5493 - Hint to let the user opt out of having Switch controllers' Home button lit when opened -f23022ef9 Removed non-functional window grab implementations -a0d3c6c63 Rename SetWindowGrab() to SetWindowMouseGrab() -d133a5f6f wayland: cancel key repeat when keyboard focus is lost -2793c9cfb Fix grabbing Alt+Tab and Alt+Esc on Windows 7 -e1f73e642 Refactor keyboard grab to be managed by the video core -f40551c5f GLES2 SDL_Renderer: remove old ZUNE_HD defines and simplify shader cache -aa4a6b0b8 better check for clock_gettime_nsec_np() -- cf. bug #5467. -d327bbfbf CMakeLists.txt: fix check_symbol_exists() for clock_gettime_nsec_np -b852590ba minor clean-up in SDL_os2audio.c -141f44163 fix build failure due to -Werror=declaration-after-statement (bug #5500) -8e1005f8b [KMS/DRM] Bugfix for #5489: Non-FULLSCREEN windows incorrecty use videomode changing to look fullscreen. -e787282ba Implement Wayland_SetWindowResizable -360e04dd2 Added Stadia controller source file to Visual Studio and Xcode projects -c16cfc0e9 waylandtouch: Don't export interface structs These are explicitly written in C code rather than generated at build time, so they weren't affected by changing how we invoke wayland-scanner. -c857b5e0c Minor cleanup -1981d23f4 Fixed bug 5466 - Add haptic support for Stadia Controller -96cfb8123 Fixed bug 5467 - SDL sys timer Mac OS update proposal -0f57864c9 Hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS added so we can recognise a Joy-Con as half a Pro Controller, so we can read its analog input and read its sensors just like we do a Pro Controller. -bd553ea86 Implement support for inhibiting the screensaver on Wayland -7ff3832e4 Fix continuous scrolling speed on Wayland -8c921d820 Implement keyboard grab support for Windows -fd65aaa9a move outdated winmm and psp joystick codes to struct _SDL_JoystickDriver -8f1025899 os2audio: changed backend name from MMOS2 to DART (like SDL-1.2) -237645884 renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JOYSTICK_H -02e61a88f added SDL_JOYSTICK_OS2 to SDL_config.h.in and SDL_config.h.cmake -d0c5097cd minor autotools build system updates. -4eb2b9f80 fix permissions of config.guess and config.sub -f68b36df7 Added support for the EVORETRO GameCube Adapter in PC mode -9c88eac85 ControllerList: fix typo -11fce3216 SDL_dinputjoystick.c: fixes to dfDIJoystick2[] array from Wine git. -4a776557a old os2 analogue joystick code ported from SDL-1.2. disabled by default, -e91f83c1e hidapi.h: adjust so that it gives a smaller diff against mainstream -d4794028b Fixed build -9e45372a2 Fixed build on Android and iOS -19236b462 Implement support for minimizing windows on Wayland -cf84ec441 Improve reliability of cursor hiding on GNOME Wayland -bf53651d7 Make sure we only do GameCube adapter initialization if we were able to load libusb -3527b4945 Fixed initializing the Nyko and EVORETRO GameCube adaptors -b6ae9a7cb renamed my_gradd.h to SDL_gradd.h -178ae70a2 Don't add paddle mappings for the Xbox One Elite Series 1 controller, since they can't be unmapped and read directly on that controller. -d789ba833 Implement keyboard grab support for Wayland -6e97170e9 Use PS4 rumble hint as the default for the PS5 rumble hint -07f83cd5a hidapi/libusb/hid.c: fix race condition on device close (bug #5484) -ee93f0ede [KMS/DRM] Revert unaproved fix for bug #5465. -6393d14de SDL_virtualjoystick.c: remove wrong #endif comment. -327ea9743 hidapi/libusb/hid.c: whitespace tidy-up. -282558379 fix AC_CHECK_HEADER for libusb.h -4fbb9f31a Fix declarations after statement -0e7d435f1 Add basic testgles2_sdf program to demonstrate sign distance field with opengles2 -e1d932f8b [KMS/DRM] Fix for bug #5468: corruption on dynamic cursor changing caused by wrong buffer size. -99facb1df [KMS/DRM] Fix for bug #5470: ratio correction for fullscreen windows with no matching resolution. Correct bracket position in else statements so they follow the coding style. -c265e73f3 Fixed bug 5473 - Add WSCONS support for NetBSD -f3835702d fix build with --disable-directx -2ea393bd8 Fixed the screenshot button mapping on third party Bluetooth Nintendo Switch Pro controllers -03665004d [KMS/DRM] Small fix to KMSDRM_Waitpageflip(). More comments on how it works. -bdb3e6b84 SDL_hidapi_switch.c: fix build with older compilers -69bd7ebbc Fixed build -e3dbae501 Get the serial number for the Nintendo Switch Pro controller -5fc743c4f Phantom Nintendo Switch Pro Controller initialization problem -92742306a Fixed rumble reset failing for Switch Pro controllers in USB mode -d0b87fede Added HIDAPI rumble debug info -e2f46ed8e Always lock the HIDAPI device when closing, in case rumble is pending -907b8eebc Make sure the HIDAPI device is locked when closing it, in case there is rumble pending that didn't complete -b3848c512 Fixed bug 5445 - Incorrect Switch Pro Controller face buttons when SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS disabled -bdc6e4ffc Fixed bug 5195 - Replugging in "mixed" controller types crashes on macOS -d54b125a8 Fixed bug 5287 - Support building for UWP with CMake -351abc585 Fixed bug 5463 - generated Wayland interfaces are included in the library's ABI -6a342954e Fixed bug 5451 - Can't create EGLSurface in Wayland from SDLWindow (no EGLNativeWindow pointer) -b2aaab3d5 Fixed bug 5462 - debug trap update/fix of assembly for Apple devices -82aafa9aa Fixed bug 5461 - Add rewritten WSCONS driver for OpenBSD -1adadc770 [KMS/DRM] Adjust come return values. Improve comments. -57661e42c [KMS/DRM] Remove unused header. -ead3c406a [KMS/DRM] Refactor, improve and re-comment async pageflips code. -fbd7c718b Don't blink the Xbox 360 LED when setting the player slot, it's probably already been set by a driver -d757ec7f5 Only select the gamepad interfaces on the Xbox 360 wireless adapter -c94283d40 testgamecontroller: log which controller the event came from -aac74db68 [KMS/DRM] Enable async pageflips. -9384e5956 [KMS/DRM] Add warning comentary to avoid future experiments with scaling. -b99543b68 opengl: More work on making line drawing match software renderer. -844275491 [KMS/DRM] Refactor KMSDR_CreateSurface to group all non-Vulkan stuff in a block. -87eb734c4 [KMS/DRM] Don't ask SDL to scale image when in Vulkan mode. -e9887045a Gyro and Accel sensor support for Switch Pro Controller. Note that axes are changed to match the axes we're using with PlayStation controllers, since users will appreciate consistent behaviour across devices. -85e8adf78 [KMS/DRM] Unused code cleaning. -5105ecf8b [KMS/DRM] Move surface size info to window driverdata, for coherency. -2067a7db8 [KMS/DRM] Fix fullscreen to windowed transition. Fix aspect ratio correction without using planes. -958e5d5b3 SDL_UpdateNVTexture: fixed pitch/bpp for GLES2 (bug #5430) -68815b6c0 Fixed bug 5465 - Invalid memcpy inside SDL_GestureDelTouch (Thanks dmikushin and Yuki Okumura) -b94718e0a SDL_UpdateNVTexture: for D3D11, same notation as SDL_UpdateTexture (bug #5430) -850d9c8c0 [KMS/DRM] Cleanup remainings from plane/scaling usage. -8636bc06d acinclude/libtool.m4: Apply macos11 patch from libtool bug #44605 -2aeb31774 [KMS/DRM] Fix vkQuake3 in OpenGL mode. -8746788fe KMSDRM_LEGACY is no longer legacy -29888bd69 fixed permissions of xcode project file -8d3963421 regenerated configure -50ea3b77f Fixed bug 5080 - SDL_netbsdaudio: Always use the device's preferred frequency -2f72535c6 Fixed joysticks generating SDL mouse events -a5dba7d3a Fixed Xbox One Series X share button incorrectly triggering on newer firmware -b24494734 [KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC. -940e1b8dd [KMS/DRM] Small readability changes. -e5bf1850f [KMS/DRM] Fix cpmpilation warnings. Thanks to Ozkan Sezer for pointing this out! -cef1bd063 [KMS/DRM] Prevent creating another default cursor everytime a window is created. Other fixes and cleanups. -703253978 Disabled Bluetooth if BLE is not supported BluetoothManager is supported for Android API 18+. On older versions, skip Bluetooth instead of crashing. -0f0946702 Use Clang/GCC builtins for SDL byteswapping functions -e778881ad Fixed bug 5449 - SDL_DROPFILE update mouse location of drop in Cocoa -c8a64ad90 Fixed building when SDL_LIBUSB_DYNAMIC is defined -d079130c2 [KMS/DRM] Don't use primary plane for scaling because that's unsupported on most LEGACY-only HW. -e23666f63 update config.guess and config.sub from mainstream. -e168d1138 [KMS/DRM] Correct drmModeSetCursor() dimensions. -335d78ff8 [KMS/DRM] Add the missing files for Vulkan support to the KMSDRM_LEGACY backend, had forgotted to do -hg add-. -661bacfe2 [KMS/DRM] Add Vulkan suport to the KMSDRM_LEGACY backend.Minor text spacing tweaks for better readability. Comment out unused function. -dfb0afe36 fix build after commit 5730b2005da1 -67e0b1dd4 [KMS/DRM] Rewrite KMSDRM_LEGACY backend to accomodate Vulkan compatibility. Fix several bugs on that backend. -57a5c4537 Fix D3D11 UpdateTextureNV in non fullscreen (bug #5430) -fc61ecb25 Fix software UpdateNVTexture non fullscreen (bug #5430) -204ef3b50 Fix D3D11 UpdateNVTexture (bug #5430) -c0df40e00 Add more SDL_HAVE_YUV defines -dc0e5de97 Update config.guess and config.sub from mainstream. -76295cecf video/windows: ANSI/UNICODE updates (cf. bug 5435): -265a1cc97 use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed (#2) -516042b4d ran gendynapi.pl after SDL_UpdateNVTexture addition -31751bdcc wmmsg.h: constified wmtab -b03250416 Fix unused variable warning on METAL (see bug #5430) -c1eb9ecf9 Add SDL_UpdateNVTexture for META (bug #5430) (not tested) -73d93dbc3 Fix compilation on Window10 (see bug #5430) -df6b81310 Fix compilation (implicit declaration of function) (see bug #5430) -d1f031c8e Add SDL_UpdateNVTexture for d3d11 (bug #5430) (not tested) -f5eba2ccd Fixed invalid read in yuv_rgb_sse() (see bug #5430) -be4cfd51c Add SDL_UpdateNVTexture() to update NV12/21 Texture (bug #5430) for renderer software, opengl, and opengles2 -d72dbd988 Fixed detection of the Wooting Two keyboard, which shows up as an Xbox 360 controller -b2a0c712c Allow setting the player index to -1, which turns off the player LED for PS5 controllers -bf754b52b Valve contributed code is under the Zlib license -8cb421b26 SDL_windows_main.c: use new WIN_StringToUTF8W macro -a594b8503 use WIN_StringToUTF8W macro instead of WIN_StringToUTF8, where needed: -5b14bbff5 make ANSI/UNICODE versions of WIN??UTF8 macros individually available. -f2bd861cd move SDL_tcsstr definition to core/windows/SDL_windows.h -f414a4363 simplify Watcom implementation of SDL_MostSignificantBitIndex32() -ae18109a9 SDL_windowsjoystick.c (SDL_CreateDeviceNotification): use L, not TEXT() -390fd14f5 SDL_windowswindow.c (SDL_HelperWindowCreate): adjust for ANSI/UNICODE: -398d2764c RAWINPUT_InitWindowsGamingInput: change pNamespace from LPTSTR to PCWSTR -f09e0af7a SDL_dinputjoystick.c (IsXInputDevice): adjust to be ANSI/UNICODE-agnostic -ed39f2f3f SDL_wasapi_win32.c (WASAPI_PlatformThreadInit): use L instead of TEXT() -01a2f2767 consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() -91a831e2d Implement SDL_MostSignificantBitIndex32 using MSVC intrinsics -014f507c4 Use specific acquire and release variants of InterlockedExchange on ARM -393c8c1f1 Fixed bug 5440 - MacCatalyst build failures -115d66e75 Use MSVC _byteswap intrinsics for SDL byteswapping functions -6cbd4417f Add a hint for D3D9Ex to avoid having to choose at compile-time -59594a789 Implement PAUSE_INSTRUCTION() for Windows ARM platforms -6f9e18da2 Fixed bug 5441 - Add support for endianness check on FreeBSD: Fixes endianness checking on at least powerpc64le, maybe also other architectures -fea49a3e2 SDL_stretch.c: compilation NEON on Windows 10 -acccc71f2 Fixed bug 5436 - MSVC 2019 ARM64 build fails to compile SDL_stretch.c -9130f7c37 Updated copyright for 2021 -414ddc32c Do not wait in GetOverlappedResult() in hid_read_timeout() -963c9495d Fixed bug 5431 - SDL_Metal_GetDrawableSize is inaccurate for high dpi displays if a Metal view has not already been created -d25eff650 Fixed bug 5429 - spinlock implements PAUSE_INSTRUCTION for PPC platforms -f0b6c7873 Fixed Windows XP compatibility with recent hidapi commit -3edf337d6 Simplify RenderGetViewportSize -2af765da1 SDL_RenderGetViewportF: only need the size of viewport (see bug #5424) -41597249e SDL_RenderGetViewportF: remove debug messages -8c48c4238 Add SDL_RenderGetViewportF: fix lost of precision while scaling (see bug #5424) -c005267fb SDL_BlitScaled: better and safer fix clipping bug #2687 -2127ed257 SDL_SoftStretch: add a check for input pixel format and function re-naming -b5f0483cb fix permissions -ab55ec485 Fix use-after-free SBH corruption due to overlapped ReadFile in hidapi not being canceled for all threads before device close -480c1f9fe Make sure we're not starving report reads when there's lots of rumble -223af86c6 Added SDL_RenderGetD3D11Device() to get access to the device associated with the D3D11 renderer -5f0b2a7f5 Fixed resource leak with D3D11 NV12 textures -21003b7db [KMS/DRM] Small refactoring on the SwapWindow function. -e1fb969b7 [KMS/DRM] Correct comments about last bugfix. -e34caa977 [KMS/DRM] Correct EGL/GL library loading on window creation, thus saving window re-creation. -d81fe9239 SDL_BlitScaled: remove un needed -1 +1 offset in calculation -8476df3e3 SDL_mixer.c: remove calls to non-existing m68k asm code. -5b2e011e6 SDL_endian.h: minor fixes from SDL-1.2 branch -5aba08270 Build SDL for Mac hardware when targeting iOS -590a5469e Fixed bug 5424 - Renderer doesn't use entirely the viewport when scaling is used -a88071deb configure.ac: directfb dynamic loading support updates: -f24cc903a remove CFLAGS save/restores from dbus.h and ibus.h header checks. -88eaf356a minor update to test/acinclude.m4 (pkg.m4) -92edee232 SDL_config_android.h: update SIZEOF_VOIDP define to respect __LP64__ -7c105f12d updates to SDL_config_os2.h -1cdc1d489 SDL_config.h.cmake, SDL_config.h.in: update for SIZEOF_VOIDP define -9fc139dfb SDL_config_windows.h: add missing HAVE_STRTOULL along side HAVE_STRTOLL -b76b81b0e SDL_config.h.cmake, SDL_config.h.in: add os/2 driver defines -8a32ee24d removed MSVC strtok_s use from SDL_strtokr(). -0684572cc Added a hint to control whether the player LEDs should be lit to indicate which player is associated with a PS5 controller. -6116ccf03 fix configure warnings when checking dbus/dbus.h and ibus-1.0/ibus.h -f17582417 config.sub, config.guess: go back to backtick `..` substitutions. -80cf8a8b7 SDL_BlitScaled: also prevent crash if dest width or height is negative -f08b9a5b6 SDL_BlitScaled: prevent crash if dest width or height is 0 -427c96ec1 [KMS/DRM] Rework some functions. -67f0b9b86 Fixed bug 5418 - Add system features detection for Elbrus (E2K) -8eae956c9 regenerated configure -3cb0e840e Fixed bug 5422 - KMSDRM_LEGACY: Add OpenBSD support -8fc0baad9 Add SDL_cond implementation using Windows Condition Variables Is automatically used when the SRW SDL_mutex implementation is active. Otherwise falls back to the generic implementation. -2443e51e0 Add optional suffix `_generic` to generic SDL_cond impl Allows for runtime selectable implementation -7539ac808 [KMS/DRM] Restore hacky code to point to TTY buffer on surface destruction b/c I lack alternatives. -5dabc4d72 Revert changeset 14590 544ac819e8b3 , does not fully fix -9efdafd43 SDL_RenderCopy: scale before doing intersection this prevents drawing 1 pixel outside the screen, in letterbox mode -86b81abea [KMS/DRM_LEGACY] Prevent mouse cursor from staying onscreen after window destruction. Patch by Ozkan Sezer. -0feaf7d19 [KMS/DRM][Vulkan] Correct non-existing property. Remove hacky surface destruction code (TTY buffer isn't there after a Vulkan window is created). -7186584b8 fix indentation (bug 5313) -9e22f62e0 arm64 implementations of SDL_Swap16/32 (bug #5419.) -2355dea44 revert 'arm64 implementations of SDL_Swap16/32' for now (bug #5419) -2f99bc07e arm64 implementations of SDL_Swap16/32 (bug #5419.) -c2735c0bb Better scaling fallbacks for the SW renderer (bug 5313) -a6beb2d26 SDL_PrivateLowerBlitScaled: remove unused local var 'a' -30df2e4e3 Scaling fallbacks for the SW renderer (bug 5313) -040bd7a91 Fix udev not detecting ID_INPUT_KEY devices when udev is not running -f9b5f6cc0 Forward scale mode to SW renderer (Bug 5313) -471d3c363 fix bug #5415 -- fatal error: 'Cocoa/Cocoa.h' file not found in iOS build -a6c6e5f58 configure.ac: fix POSIX conformance issues (bug #4261.) -9f6fddb40 CMake: don't check for --no-undefined linker flag for OpenBSD (bug #5174) -46d31d570 [KMS/DRM][Vulkan] Fix segfault when changing fullscren mode and permanent cursor when changing between Vulkan and GL renderers in vkQuake3. Tidy up window destruction code. -e7c479414 Disable WaitOnAddress SDL_sem implementation on Windows Phone Apps that use the required APIs do not pass certification. -5b64fdc9b thread/windows: Remove synchronization.lib from WinPhone81 dependencies synch APIs are implicitly available on this platform. -d6afc1c60 thread/windows: Statically link synchronization APIs on WINRT GetModuleHandleW is not available on those platforms --- .../WinPhone81_VS2013/SDL-WinPhone81.vcxproj | 8 ++++---- VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj | 12 ++++++------ src/thread/windows/SDL_sysmutex.c | 12 ++++++++++++ src/thread/windows/SDL_syssem.c | 11 +++++++++++ 4 files changed, 33 insertions(+), 10 deletions(-) -ff913a22f Fixed compile warnings on platforms without hidapi support -047b20e3b Fixed compile warnings on platforms without hidapi support -9838611a8 Fixed compiler crash building for iOS with clang 11.0.3 -2b760c369 attempt to fix emscripten-buildbot: s/wasm/wasm32/ -b9eb43a5c build-scripts: update install-sh and mkinstalldirs from automake-1.16.3 -3c4103b87 fix config.guess permissions -fd3cb20b0 Fixed bug 5411 - config.guess and config.sub outdated -5ed3d21f6 testsem.c: fix -Wmissing-braces warnings. -4aebad77b SDL_SoftStretchLowerLinear: try to make xcode buildbot compile (Bug 5313) -93ccdee8c Fixed bug 5404 - stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf -d0b8295c0 Add SDL_sem implementation using Atomics and WaitOnAddress API. Keep Semaphore Kernel Object impl for Windows 7 and older - choose at runtime -2b040cebb Atomic test: Fix use after free SDL_SemPost() was called by the FIFO threads after the semaphore was freed because the main thread actually synchronized on the `writerRunning`/`readersRunning` count and not the semaphores itself. -6267b9517 Semaphore test: Add overhead tests. -95a6d4e84 Semaphore test: Put test into separate function. -548cb9089 Add SDL_mutex implementation using Windows Slim Reader/Writer Locks Keep Critical Section impl for Windows XP/Vista - choose at runtime v2: - Add SRW definitions as suggested by Ozkan Sezer Allows building against older platform headers. - Rename "hidden" function parameter `mutex_` to `_mutex` -090fffac6 test/Makefile.os2: add warning switches to CFLAGS. -239c8f1f4 testvulkan.c: fix -Wmissing-braces warnings. also fix whitespace. -20ca1192d testgesture.c: comment out unused drawLine() -b064028c2 testatomic.c: fix warnings due to SDL_AtomicDecRef() use -8e20376f1 SDL_SoftStretchLinear: use SDL_INLINE (bug 5313) -7b8d5b7dc SDL_SoftStretchLinear: fix implicit conversion (bug 5313) -15fea3391 ran gendynapi.pl after addition of SDL_SoftStretchLinear -ae8a270f6 Add SDL_SoftStretchLowerLinear() (Bug 5313) -050ee9a41 Split SDL_SoftStretch in Lower and Uppler functions (Bug 5313) -09fcc9ed1 [KMS/DRM][Vulkan] Fix small warning, thanks to Ozkan Sezer for spotting it. -a6dc838d5 [KMS/DRM][Vulkan] Only try to create a display mode when no suitable mode is found. -0ed4d9293 Fixed setting player LEDs for PS5 controllers over Bluetooth -6341bb35a Fixed controller disconnect detection for PS4 and PS5 controllers over Bluetooth -a30adae56 Make it possible to turn on PS4 rumble effects at runtime using the hint -390b2cf0d Enable PS5 enhanced functionality for testgamecontroller -c93947a2c Make it possible to turn on PS5 rumble effects at runtime using the hint -058a0ab47 Set the pad lights on the PS5 controller corresponding to the player index -6a57072ee Only add the touchpad and sensors to the PS5 controller if effects are enabled -4ec776c33 Don't switch the PS5 controller out of DirectInput mode by default -b4b674dab CMakeLists.txt: sync DYLIB_CURRENT_VERSION to Xcode project -350f1b0d1 Updated SDL to version 2.0.15 for development -13244de5c [Buildsystem] Only build KMSDRM support if EGL+OpenGL is detected by CMake. -a19c008a7 use GetModuleHandleW() to retrieve kernel32.dll handle (bug #5390.) -9f655fe52 regenerated configure -5ad564575 acinclude/pkg.m4: update from mainstream pkgconfig tree. -86191351c acinclude & sdl2.m4 updates: -f117db518 sdl2.m4 updates: -087de97b5 acinclude/esd.m4: update from mainstream esound tree, -15abab9cf regenerated configure -2fc987c28 [Buildsystem] Add guards for not building with KMSDRM support if EGL is not available. -05dcec0ae Added tag release-2.0.14 for changeset 97dfa8874ea0 -4cd981609 (tag: release-2.0.14) Fixed whitespace -537f824f3 test/Makefile.os2: wlib must run case-sensitively. -8766d6040 [Video/KMSDRM] Fix potetial access to freed structure and complete errorchecks. -b06ef3a18 [Video/KMSDRM] Manually re-show the cursor on window creation, if needed. -4198f0e52 fix uninitialized warnings in KMSDRM_CreateCursor() -a8dbcab13 [Video/KMSDRM] Don't copy the cursor bitmap to the cursor GBM BO until we're showing it. -67e9132dd Fixed circular dependency problem when building in the test directory -ee180efda Fixed bug 5406 - Upstreaming DragonFlyBSD changes from DeltaPorts (patch from David Carlier) -22275b35e cmake: fix building for mac (bug #5407.) -2756b0f33 [Video/KMSDRM] Init and deinit mouse stuff at the same time that GBM stuff. -e91153f27 fix non-ARM h/w on FreeBSD builds (bug #5405, patch from David Carlier.) -cf71e0173 [Video/KMSDRM] Remove auxiliary AMDGPU compatibility workarounds not needed anymore. -af1f91cb3 [Video/KMSDRM] Correct typo. -cf4895568 [Video/KMSDRM] Honor the device index in Vulkan. Add notes about the display index. -ab3a390e2 [Video/KMSDRM] Better ATOMIC caps testing: patch by Oskan Sezer. -436499f3e [Video/KMSDRM] Comment out some debug info, adjust comments for future work. -6b81cac42 remove duplicated SDL_SetError after calling check_atomic_modesetting() -8952a6132 [Video/KMSDRM] Re-arrange display members setup. -f60f8d5d8 [Video/KMSDRM]: Add Vulkan support to the KMSDRM backend. -cbe13d232 Fixed controller hotplug detection when joystick thread is not enabled -6ac0b23d3 SDL_DirectFB_video.c: DSPF_ABGR requires directfb >= 1.5.0 -- add guard. -f0577bc9e ControllerList: setup the ps5 default deadzone to match PS4 instead of defaulting to same a XboxOne/Switch -5f7cd1fa8 Added hints to control whether SDL updates joystick and sensor state in the main event loop -6c4ab4847 SDL_kmsdrmvideo.c: check atomic modesetting in check_modesetting() -5c654d0df tests: regenerate configure using autoconf patched for AC_PATH_X11 -6bd4c717a Fixed bug 5402 - ARM support little update proposal -10625f9d8 SDL_windowsmessagebox.c: go back to hg rev 14458 state. -4d6eb3052 SDL_windowsmessagebox.c (AddDialogControl): add back NULL caption check. -90456670b more "'for' loop initial declarations are only allowed in C99 mode" fixes -ed4fcb2cf kmsdrm_legacy build fixes: -f484abbdc Added Android mapping for the Xbox One Series X controller over Bluetooth -cdd397118 Fixed the Xbox Series X controller showing up twice on Android -14f977348 Fixed whitespace -9940e7108 Import two post-2.0.12 fixes to kmsdrm_legacy: -f8839289b Potential fix for bug 5393 - KMSDRM: using atomic mode setting breaks GPU compatibility -c02d88dd1 configury whitespace cleanup (no actual change.) -6cb78120d Fixed bug 5399 - make install is broken as it depends on missing rule `build` -716ac535d test/acinclude.m4: rename SDL_CONFIG to SDL2_CONFIG, regenerate configure -637d425e3 whitespace. -f1c7cc710 winrt: Buildfix for older UWP SDKs -e65e4fd3e Fixed detecting the guide button on Xbox One S controllers over Bluetooth on Linux -169cfe5a7 winrt: EffectiveLocation still needs an ifdef, IsApiContractPresent is for runtime -bfffa275e Fixed bug 5397 - Fcitx input is truncated -8795ca706 Fixed bug 5241 - SDL on Linux needs a way to turn deadzones off -44d4a61d9 minor cleanups to configure.ac to reduce autoconf-2.70 warnings a bit. -f8078d3d6 configure.ac: use AC_DEFINE for SDL_VIDEO_DRIVER_ANDROID -3c2757ff8 windows SDL_LoadObject: fix warning after commit 2ff650230d96 -15cbddf49 linux/SDL_threadprio.c: fix build on older systems: -3b92933ac SDL_LoadObject (windows, os/2): prevent crash if dll name is NULL. -f674009c5 fix typo from commit 63349df2610a (fixes bug 5396) -b6e63625c fix bug #5395: handle old systems where inotify_init1 is not available -ee85a41a3 Fixed compile warning -64f448b26 libusb hid.c is already included in SDL_hidapi.c -706f63759 Fixed build for platforms with only libusb hidapi implementations -80e5c689e Fixed the PS5 controller not disconnecting when powered off -c8ee06911 Added SDL_misc.h to the Xcode built frameworks -ce7c751c2 Document that the joystick deadzone hint defaults off -db0a2025c Fixed bug 5241 - SDL on Linux needs a way to turn deadzones off -0ccb3afd3 Fixed polling values after SYN_DROPPED event -9ee0e8886 Whoops, make the hint actually default to false -13a4caf1d Fixed bug 4286 - Joystick subsystem causes "not responding" when app is in the background -bca9decbd fix bug #5394 - define _DARWIN_C_SOURCE only if not already defined -5c212cb0c remove a few stale NULL message/title checks after commit e2b729b1756a -f1cab8aea fix bug #5253: handle NULL title or message fields in SDL_MessageBoxData -eec73dfd2 configure.ac (CheckJoystickMFI): changed AC_TRY_COMPILE to AC_TRY_LINK -797a6910f Fixed bug 5375 - WGI: Fix HSTRING memory leak. -d3d2aee7f Fixed the name of the PS5 hint -a77a07152 Disabled raw input debug output -d46dd103d Fixed typo in Vulkan load logic -45e3521d0 Backed out changes for 5366 - cmake build doesn't detect Metal on macOS -bd032c1f7 Fixed bug 5221 - libusb isn't detected correctly in CMake -7fa5e95b6 Fixed bug 5213 - Add support to metal in iOS/tvOS simulator -cb3618969 Fixed bug 5235 - All internal sources should include SDL_assert.h -479db4305 Fixed bug 5250 - updaterev.sh failed using CMake Tools on VSCode Remote -a69c61fbf Only assign context and mainloop once we have connected successfully -88cb4962c Fixed bug 5291 - SDL_SetRenderTarget unnecessarily changes target when current target is the native texture of the passed in texture -f2fff2176 Fixed bug 5374 - WGI: Use fast-pass strings. -42c5b4acd Fixed bug 5366 - cmake build doesn't detect Metal on macOS -475405e03 CMakeLists.txt: sync DYLIB_CURRENT_VERSION to Xcode project -250a05572 fix bug #5384 -- define DLL_EXPORT in DLL builds and adjust begin_code.h -50203d58b Fixed bug 5329 - SDL_SetWindowGrab(SDL_FALSE) fails to unlock cursor if window is partially offscreen -3835f2008 Fix Nyko Airflo Ex Windows mapping, add Linux/Mac mappings -43aad9668 Fixed bug 5222 - Crash when running with -DHIDAPI=ON -a2098a47b Updated SDL to 2.0.14 in preparation for release candidate -2a9591a9e Accepted patch https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/fix-space-in-path.patch -146d9b820 win32: fix symbols leakage for static libraries -7f1c6e82b Accepted patch https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/enable-winrt-cmake.patch -7665f8870 Accepted patch https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/disable-wcslcpy-and-wcslcat-for-windows.patch -695499ae6 Accepted patch https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/disable-hidapi-for-uwp.patch -5610e5ae4 Makefile.os2: disable W303 (add -wcd=303 to CFLAGS) -c9723c407 Fixed potential hang in joystick close if the rumble thread is blocked for some reason -3c68051ea Allow background input when testing game controllers -09909d029 Fixed handling of BACK button on newer Xbox One S controllers -54e5136b5 Refactored Xbox One Bluetooth protocol and verified Xbox One S, Xbox Series X, and Xbox One Elite Series 2 controllers -1031231b2 Fixed duplicating a device between XInput and HIDAPI -59f28b7f4 Fixed whitespace -f487d63a6 Fixed crash when printing NULL wide character string -754286c61 SDL Renderer: specify the correct flag when recreating the window -035f8f239 SDL_RecreateWindow: allow clearing VULKAN when recreating the window -93fbab0fa SDL_ReCreateWindow: allow to unload METAL window and switch back to OpenGL. -9d40a0f31 Fix joystick device add events containing invalid device indexes -7854f43b6 Disable SDL_JOYSTICK_HIDAPI on iOS and tvOS by default -ebf315e0f Fixed bug 5369 - iOS static library build copies public headers files into xcode archive -4b35a18d8 Fixed bug 5366 - cmake build doesn't detect Metal on macOS -798b22880 Fixed bug 5367 - SDL_OpenUrl disabled on iOS due to unified Xcode project file -c78ca2d17 Fixed bug 5371 - Rawinput: Fix truncating cast of string length. -a3ccf9adc Fixed bug 5373 - [PATCH] Rawinput: Get correlated XInput battery info -e3966e25c Use the correct internal API for updating the battery level for PS5 controllers -f4ed07de0 We don't know whether the PS5 controller is Bluetooth or not when we open it -04f0fd13b Remember to close the game controller when we're done with it -1f2f536bd Fixed XInput correlation for raw input controllers after hotplug events -012471e95 Open and test all connected controllers -1c865c460 Load the raw input device list at init time so it's available when DirectInput is doing device detection -a0c5bfa3b Moved raw input event processing from the main thread to the joystick thread -4fbefbe20 Sort the raw input axes by usage, so X comes before Y, etc. -4ddac485d Backed out minor optimization that prevented correlation_id from being set -8973a2584 Enable dispatching of WM_INPUT_DEVICE_CHANGE events directly, in case the application hasn't created a window with the normal message loop -e8adc6481 Enable dispatching of WM_INPUT events directly, in case the application hasn't created a window with the normal message loop -0252235e8 Recheck devices if another API queries raw input for a new device -a7dede7e3 Re-enable axis correlation for raw input controllers, for twin stick shooters that don't need face buttons -ce77966da Fixed RAWINPUT_IsDevicePresent() not returning TRUE for Xbox One controllers -8a449de20 Fixed Xbox 360 wireless controller being picked up by WGI when it's being managed by RAWINPUT -37c9e4afa Fixed processing WM_INPUT_DEVICE_CHANGE at startup -248fc75bd Correlate just based on buttons, joystick axes are not as precise and could potentially cause incorrect uncorrelation. -e7e615de2 Removed extraneous windows message pumping -2931eccd8 Fixed detecting Bluetooth raw input devices, which have device names longer than 128 characters -849ce8037 Renamed SDL_JOYSTICK_RAWINPUT_GAMING_INPUT to SDL_JOYSTICK_RAWINPUT_WGI -219a28dd8 Fixed D-pad uncorrelating raw input controllers (thanks Jimbly!) -2c079a2f6 SDL_FillRects: prevent empty SDL_surface from raising an error message -3fbff2a45 SDL_rawinputjoystick.c: fix ambiguous 'else' warning -845b90332 Implemented trigger rumble for raw input controllers -517be8082 Implemented battery status for Bluetooth Xbox One controllers -24cc0012f Some controllers don't always reset their triggers to zero when they are released (e.g. Xbox One S in Bluetooth mode), so only trigger rumble if the trigger is pulled halfway or more. -6a7f29cdb Fixed compiling on tvOS -9ec2cf562 Fixed building with Windows.Gaming.Input enabled -3c07dd12f Strip an extra '.' off of the HORI manufacturer name -e5783e117 cmake: add missing checks for wcscasecmp, _wcsicmp, wcsncasecmp, _wcsnicmp -7c18088f0 SDL_config_os2.h: define HAVE__WCSICMP and HAVE__WCSNICMP -159d1b3df Don't set the serial number after the controller is opened -7d92b14f4 Simplified Xbox One controller initialization state, and don't query for the serial number. -9fc4a4c92 Revamped Xbox One HIDAPI init sequence -e16afa792 Automatically switch to testing a new controller when it's plugged in -46a844786 Added SDL_wcscasecmp() and SDL_wcsncasecmp() -e4b7d9a22 Removed usage of TARGET_OS_OSX for building with older SDKs -a7d91ebaa winrt: Add EffectiveLocation support for newer Win10 releases -16d789fba Disable compiler warning when using -fobjc-weak building C code -a5cde4cb0 Fixed trying to use @available() on older SDK -b4338dda4 Enable -fobjc-weak when building MFI controller code -97782e6c6 Don't try to call IOS_SupportedHIDDevice() if it's not defined -a063b9fbf Fixed compiler warning -c63bbb06e Including SDL_config_iphoneos.h enables MFI controller code -eba069eaf It looks like the Objective C support needed to build MFI controller code is in 10.8 -23ad4f4b8 configure.ac: check GameController framework support when targeting Darwin -711d40903 CMakeLists.txt: add src/joystick/iphoneos/*.m to Darwin joystick sources -7a05dbf4b Fixed building on FreeBSD -feab9d42c 5363 - Memory leak of joystick->sensors in SDL_JoystickClose -34bea84a5 Fixed bug 5335 - Patch: enable joystick/haptic/evdev support by default on FreeBSD -1e943e2ad Fixed building with an older SDK and macOS target -1fc5ca648 Fixed building with an older SDK and macOS target -4121ab620 Fixed bug 5354 - DirectFB: Add Vulkan support -e44bf8a08 Fixed bug 5359 - Incorrect sensor data from DualShock4 -c8c818d7a Fixed bug 5360 - non-libudev joystick detection doesn't see controllers that were already connected -8e2746cfb joystick: Don't use udev in Flatpak or pressure-vessel container Flatpak[1] and pressure-vessel[2] are known to use user namespaces, therefore udev event notification via netlink won't work reliably. Both frameworks provide a filesystem API that libraries can use to detect them. Do that, and automatically fall back from udev-based device discovery to the inotify-based fallback introduced in Bug #5337. -e9869e07b Fixed bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD -38ab8bf74 Fixed bug 5362 - Mac OS ARM doesn't build Metal/Vulkan back-end/renderers -62e39b5fa Fixed building with an older SDK and macOS target -268aa4564 Fixed compiling with SDL_JOYSTICK_RAWINPUT disabled -eaa53a197 joystick: On Linux, don't try to close an invalid inotify file descriptor. -5c9577476 joystick: Fix up Linux joystick code to (mostly) compile on FreeBSD. -179bd6658 Don't enable PS5 controller support if DS4Windows is running - they conflict. -5b3616c32 Generalized the raw input controller driver and moved XInput/WGI detection into it for XInput devices -0ff5d55a0 x11: Don't try to grab the pointer on an unmapped window (thanks, Lee!) -04b45b558 Allow testing a specific controller -ff4bc1389 Fixed mapping controllers after adding the touchpad button -4c96faee5 remove non-existing tslib support from autofoo and cmake -fd8944678 Fixed building on Mac OS X on the command line and with an older macOS SDK -1df593fb1 Fixed bug 5355 - Add GameController Framework support to macOS -5e0644c15 Disable libusb by default, as it breaks on Linux when trying to use it with non-root permissions on some distributions -870841c41 Reset the LED state after Bluetooth connection has completed on the PS5 controller -120dc280c Enable HIDAPI by default -a94fe009c Moved comment with the code it covers -49f7be6d0 Fixed compile warning C4127: conditional expression is constant -63b52e8e6 Remove SDL dependency in Windows code -d4954eb09 Removed debug code -b442e617e Fixed adding an extra zero byte for feature reports -75721b191 Allow testing effects on PS4 controllers -2e8e3854b Fixed compile warning -6b56b98fc Fixed is_BLE() return value -65c9f1d2c Fixed upstream bug: FD 0 is a valid file descriptor -549010f2a It takes 2 packets to stop audio haptics and start emulated rumble on the PS5 controller -082558db3 SDL_os2messagebox.c (_makeDlg): fix crash if title and/or message is NULL. -bf7d198d4 The HORI Fighting Commander should only show up as an XInput Switch Controller on Windows -6cb7f9e39 Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for Nintendo Switch Pro controllers using the HIDAPI driver -998076653 Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for the Nintendo Switch Pro controller on Linux -7366693f3 Added support for a few more controllers on Linux -ffb4d960b Disabled Xbox protocol debugging -c9b097e65 Clarify the meaning of the rumble enable bits for the PS5 controller -c85623d79 Re-enable haptic audio after rumble on PS5 controller -b0b76a61c Fixed rumble on PS5 controllers connected to Windows over Bluetooth -8c3196da6 Fixed some compiler warnings -45f143754 Experimenting with requesting the serial number on an Xbox One controller -963d8b3f4 Fixed bits in the initial Xbox One protocol ack -cd51a51f0 Updated with a better understanding of the Xbox One controller protocol -335cfa107 x11: Don't crash if a messagebox has a NULL title string. -51ea6a6d4 Don't send controller gyro and accelerometer updates if the values haven't changed. -463d84a86 Added support for the PS5 controller gyro and accelerometer -fcb21aa88 Added API for sensors on game controllers -b79e1baa3 Added weak linking to hidapi framework -0150455d2 Added SDL_crc32.c to the Windows RT projects -d140d8874 Added SDL_JoystickGetSerial() and SDL_GameControllerGetSerial() -55e59a4f3 crc32: Fixed include path. -dfc24e05b fix os/2 build -7bbea0bb9 Fixed build warning -71e32f5e1 Added SDL_crc32() -3d48fc05c Added notes about the pad lights on the PS5 controller -4514ad573 Fixed updating LED state when starting application with Bluetooth PS5 controller connected -a37e3ae21 Implemented PS5 effects over Bluetooth -c6c116e84 Implemented setting the LED color on the PS5 controller -fe4da4206 Improve LED color calculation, don't set LED unless left thumbstick is moved -aa7c3eae1 Fixed size of rumble packet -f28c01a4f Fixed rumble order on PS5 -eb94c19a6 SDL: fix iOS build -8243bd1dc SDL: Plumb PS5 rumble to output report -c0f7325b8 SDL_PrivateJoystickForceRecentering: fix wrong loop counter usage. -1ed36d21b egl: Fix detection in configure script on systems without X11 (bug #5270) -bbbec723e SDL_config_windows.h: define HAVE_TRUNC[F] for Visual Studio >= 2013 -3e40b87f5 SDL_config_os2.h: undefine HAVE_TRUNC -bee8db3b0 config: Make sure HAVE_TRUNC and HAVE_TRUNCF are defined as appropriate. -5c34c973e Clarify that we're using button indices, not using gamepad button names -9f51fad36 Added support for the touchpad on PS4 and PS5 controllers -78422fa3c Added more detail on the PS5 controller state packet and enable full reports over Bluetooth -30371f2d4 Fixed doubled report ID for Bluetooth Classic devices on Linux -8cd4f364d Mapped the touchpad click as SDL_CONTROLLER_BUTTON_MISC1 on the PS5 controller -8e312a6a5 Fixed detecting Bluetooth XInput controllers on Windows -8b29aaddb Fixed warning when building on Windows -e0018d086 Fixed Windows build -0500c0446 Fix SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL also applying to HIGH priorities -5b0d43294 Implemented trigger rumble in the HIDAPI Xbox One driver -e749c1266 Fixed overflow in trigger rumble calculation -52486d018 SDL_keycode.h (SDL_Keymod): remove comma at end of enumerator list -c122e9b9c linux/SDL_sysjoystick.c (MaybeRemoveDevice): remove SDL_USE_LIBUDEV guards -94a047f71 fix xcode project file permissions -83b653d55 Fixed build warning -dc7644966 Backed out change for bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD -76bd6cd2d Fixed bug 5326 - Logitech Extreme 3D joystick is listed as gamepad in linux section of SDL_gamecontrollerdb.h -3160c7d66 Fixed bug 5327 - When direct input fails to load, but a controlller is plugged in through another api, an access violation happens. -502cfe314 Fixed bug 5332 - WGI: Fix wrong level of indirection and implicit truncating cast. -1822f97e5 Fixed bug 5346 - Add FreeBSD evdev KBIO keyboard input driver -38ed8a955 Fixed bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD -320a7587d Fixed compiler warnings -65847539d test: Add a unit test for input device classification heuristics This uses pre-recorded evdev capabilities, so that we can check for regressions without the devices having to be physically present. -b0eba1c55 joystick: Use inotify to detect joystick unplug if not using udev This improves SDL's ability to detect joystick hotplug in a container environment. -aae53d597 evdev: Detect whether input devices are accelerometers Anything with X, Y and Z axes but no buttons is probably an accelerometer (this is the assumption made in udev). -fdd945f2a joystick: Use a better heuristic to guess what is a joystick Previously we only checked for at least one button or key and at least the X and Y absolute axes, but this has both false positives and false negatives. -8db3171b9 udev: Factor out SDL_EVDEV_GuessDeviceClass This works on capability bitfields that can either come from udev or from ioctls, so it is equally applicable to both udev and non-udev input device detection. -13e7d1a95 joystick: Allow libudev to be disabled at runtime Device enumeration via libudev can fail in a container for two reasons: -72379ba51 windows: Fix handling of swapped mouse buttons -771732ed3 windows: Fix numpad arrow key scancodes with numlock off -1e2caac58 Added SDL_JoystickRumbleTriggers() and SDL_GameControllerRumbleTriggers() -067630aef Fix hidapi for unhandled DS4 headset microphone data corrupting controller state -b6238c87e Don't try to build the RAWINPUT driver if HIDAPI is disabled -d1e10c313 Removed debug output -07eae7d67 Fix process randomly getting killed when SDL_THREAD_PRIORITY_HIGH/TIME_CRITICAL is set -59795822d make SDL_SensorGetDeviceNonPortableType match its prototype. -53b166797 SIZE_MAX need not be defined in limits.h -e12457d8b Added support for the Xbox Series X controller to the HIDAPI driver -7b5a0a9f9 uikit: Don't implement main() twice for iOS static libs. -940419b0a uikit: Fixed a typo in a comment. -c3dea2312 Added support for reading the paddles on a Xbox Elite Series 2 controller in Bluetooth mode -02de82000 Add Zhaoxin processor support CPU Vendor ID "Shanghai" and "CentaurHauls" belongs to Zhaoxin. -fb4a406af Don't put 'm' in the GUID for Xbox and PS4 controllers on iOS -f656d8456 Fixed typo in the documentation -f8b8bd0ba ControllerList: recategorize controller as swtich pro and not switch input-only controller -f76ca0572 ControllerList: add unknown xbox controller from minidumps -94924f012 Fix failing to set high priority for threads on Linux desktop. -abf9dfd5c Fix MakeThreadRealtime DBus method call on Linux, type mismatch due to copy paste. -5d34e3c69 Fixed linking iOS shared library -1577366c3 Fixed duplicated switch statement processing Xbox controller dpad state -3d92e8c74 hidapi: Also parse data[12] with dpad values on the xb1s controller -1ef45c180 Fixed bug 5339 - Minor memory leak in SDL_x11events.c -723d76c8e Fixed bug 5333 - Replace character of legacy code page with utf-8 one. -c3a32605f testvulkan: Patched to compile with SDL's internal Vulkan headers. -0e4ce8480 opengl: Make diagonal lines match the software renderer. -da49f7950 opengles: use glDrawArrays() correctly with GL_LINE_STRIP. -de6d0ac55 uikit: Patched to compile on older iOS SDKs. -93a2c58c7 opengl: Use GL_LINE_STRIP instead of breaking down into seperate GL_LINES. -b198febb6 Documentation: fix minor gamecontroller parameter warning -731a5d1c5 metal: Fix line drawing, again. -4ea1a10bd Added stub controller LED functions for WGI and RAWINPUT (thanks meyraud!) -009b62f1c Be explicit about mapping the new game controller paddle buttons -3a4388489 Document the Xbox One Elite paddle buttons -749062e72 Implemented SDL_GameControllerSetLED() for iOS/tvOS -faeac6e86 Added additional game controller button support on iOS/tvOS -cf8d3befe Added iOS controllermap test -5a92edee0 Don't try to map the accelerometer as a game controller -d5e367a46 Fixed build so CoreBluetooth framework is only needed by hidapi -59a644fb0 iOS should use the same size window for the controller tests as other platforms -fbf0484a1 Embed the hidapi framework for the iOS and tvOS game controller test -9a446aa92 Note that SDL_CONTROLLER_BUTTON_AUX1 is sent for the PS4/PS5 touchpad button on the HIDAPI driver. -1bd4b7fdf Updated iOS tests and demos for latest SDL linking requirements -e87fbb1aa Removed old iOS-only project and demos -dc60b975f Removed old iOS-only project and demos -3a3aaac22 Added 4 auxiliary buttons to the game controller API -a22beef40 Moved the PS5 controller driver to a separate file, as the advanced feature protocol is very different from that of the PS4 -bd2dd3f6b Added Android mapping for the Sony PS5 Controller -4d79f9662 Added initial support for the Sony PS5 Controller -e555d4533 Added SDL_JoystickHasLED -83cddd2eb Add SDL_JoystickSetLED. -1b8dee7ca coreaudio: Remove unnecessary include of CoreServices.h -79221e85a SDL_stdinc.h: define _DARWIN_C_SOURCE on macOS for memset_pattern4() -311ae829c Android: keep compatibility with older JDK -97cf31452 Android: apply code simplications found with lint / Android Studio -ddc0727bb Fixed implicit memcpy() when building for ARM64 on Windows (thanks Seigo!) -010d5fba9 kmsdrm: Make this build with significantly older system libraries. -f0c584171 SDL_shape_internals.h: forward-declare struct SDL_ShapeTree. -a4040293d os2: misc build fixes -bfc80d83c minor coding style cleanup -ba36eb043 metal: Make line drawing match software renderer. -c33f80835 render: Restoring line rendering fixes that were previously put on hold. -0360987f4 Android: fix deprecated onCreateDialog() methods -5dc6c3c95 Updated Vulkan headers to version 1.2.158 -fbbc4ab33 os2: can build with libsamplerate support if wanted to. -967041681 Android: fix Clipboard deprecated methods -5682b066e kmsdrm: Add comment about KMSDRM_VideoQuit() changes. -63b782770 kmsdrm: properly exit with an error when ATOMIC interface is not yet available, instead of just segfaulting. -a3262205b kmsdrm: rearrange init function so we try ATOMIC compatibility first. -b1ea0be86 kmsdrm: Add missing checks after SDL_calloc() calls. -ad9ec8b36 kmsdrm: Small fix, missing bracket. -87a86675e kmsdrm: Always use spaces for indentation. Always use SDL_calloc() for calloc. -cfc136201 os2 video: updates to my_gradd.h -f1b603ac6 Fixed bug 5323 - SDL_SetWindowMaximumSize fails if Width or Height is equal to minimum Height or Width -cbadd1e38 geniconv/os2iconv.c: make it build correctly against os2tk headers. -554037a6f audio: fix popping sounds caused by signed/unsigned conversion -f311e0a82 Removed debug log message -f31ad57fd Implement keyboard repeat in wayland video driver -73010da4d x11events: ignore UnmapNotify events from XReparentWindow UnmapNotify event does not mean that window has been iconified. It just reports that window changed state from mapped to unmapped. -e37a9385e Makefile.os2: remove duplicated OPTION QUIET directives from linker file -ffb307e4d Fixed bug 5304 - add SDL_HasSurfaceRLE() (Thanks Rene Dudfield and Dan Lawrence) -19a65a46a Fixed bug 5321 - crash in SDL_ConvertSurface with RLE surfaces keep RLE information in flags when converting the surface -c70191d2b SDL_os2video.c (OS2_CreateDevice): remove duplicated assignment. -77d0f043e os2video.c: add missing FOURCC_R666 define, enable FOURCC_R666 case in _getSDLPixelFormatData(). -99ed0d7ab Map the guide button by default on Android 11 -3755f6920 Added mapping for Xbox One S controller and PS4 controller on Android 11, including guide button -b8ed432c3 Added a note about Android 11 -df52c5043 Backed out changeset 2f59f1264083 -52b319fec minor update to os/2 config file and update. -58976bda3 Allow more than one window on iOS as long as they're on different displays -a90f0400a os2: a _lot_ of coding style cleanup, sot that they match the SDL style. -bdc5129f1 Use a high priority dispatch queue for GCKeyboard and GCMouse events for the lowest latency possible -a3a0ef752 Added support for low latency mouse and keyboard handling in iOS 14 -d9aea0c3a Update the existing haptic player when we rumble on iOS -645a3280e Fix iOS and tvOS builds -cca16c9cb kmsdrm: merge GetDisplayDPI implementation by bms20 -d27238751 os2: integrate the port into main tree. -20db1471e added documentation docs/README-os2.md (based on original readme.os2). -5807cb3d3 os2: remove dependency to gradd.h from IBM's ddk which is non-free: -b6965a177 os2: Andrey Vasilkin agreed that his code to be put under Zlib license: -1d9cf23e4 os2: updated copyright dates for 2020. header guard fixes. -a3d7913c0 SDL_os2audio.c (OS2_OpenDevice): change spec->samples assignment: -e112b776f SDL_os2audio.c (OS2_OpenDevice): change {0} initializers to SDL_zero() -72594e255 SDL_os2audio.c (OS2_OpenDevice): remove assignment to wrong spec member -fe2cc8d86 OS2_VideoQuit(): avoid double free()ing of displays. -fba32ee21 OS2_VideoInit: zero the stSDLDisplay and stSDLDisplayMode variables -54ced668c port from 2.0.12 to 2.0.13 / current SDL-hg repository. -5da796fe5 os/2: port from SDL2-2.0.5 to SDL2-2.0.12 -5d89217f6 os2/SDL_sysfilesystem.c: fix crash if one of the parameters is NULL -222f02689 os/2: port from SDL2-2.0.4 to SDL2-2.0.5: -5f3f67b16 os2/SDL_sysfilesystem.c: use OS/2 api DosCreateDir() instead of mkdir(). -4551c6337 os2: make testnative working -- imported from bitwiseworks' fork: -1b99d805d os2: updates from Andrey Vasilkin's 2020-09-07 sources. -aa790837e os2: several warning fixes. -f9af19f51 os2: updates to SDL_systhread.c: -c21886194 os2: added a 2-byte padding to os2 SDL_PrivateAudioData -d1323eb0a os2: better error reporting from loadso -861ac81b3 os2: changes to debug macros -110a0f7bb os2: update include paths. add missing libc includes to geniconv. -74cfb81db os2: add port files for SDL2-2.0.4 from Andrey Vasilkin -93e144976 SDL_waylanddatamanager.c (mime_data_list_add): constify the buffer param -eb1aba610 Make the CoreHaptics framework optional on iOS and tvOS -b9cbea354 video: Refresh Windows display list on WM_DISPLAYCHANGE -a558409b2 Only include CoreHaptics if we're building with rumble support -75d5be974 Fixed compiling with an older iOS SDK -6b62494ee Added support for controller battery status on iOS 14 -1b31e9f6d Added support for game controller rumble on iOS 14 -2d7b33cb4 Added support for the controller home button on iOS 14 -2daa670ce cmake: look for iconv in libc, too (bug #5316.) -675685183 cmake: run updaterev.sh if(NOT CMAKE_HOST_WIN32) -665cfa498 cmake: check for alloca() in stdlib.h and malloc.h, too (bug #5316) -fc795f89d SDL_cpuinfo.h: add missing const to size parameter of SDL_SIMDRealloc() -af06a60a9 Makefile.os2: remove some unnecessary stuff. -48c03d9a7 cmake: reduce STDC_HEADER_NAMES list to only relevant headers, -196cda69f build: fix / update sensors (windows) configuration -10eb5108b test/Makefile.os2: add testlocale.exe to build. -59022829f riscos: Implement SDL_OpenURL() -34a82fca4 SDL_cpuinfo.c (OS2): undefine HAVE_SYSCTLBYNAME -5d42ad9ea Makefile.os2: minor re-order. -b546db2f8 Only watch for display connect/disconnect events while the video subsystem is initialized -7991cc38b dynapi: move SDL_SIMDRealloc down below, after SDL_GetPreferredLocales. -05438b28e minor tidy-up to Makefile.os2 -b79832ba1 cocoa: Cut and paste from HTML strikes again! -19aaa2944 Fix https://bugzilla.libsdl.org/show_bug.cgi?id=5306 -69fbd60d2 Fix https://bugzilla.libsdl.org/show_bug.cgi?id=4877#c2 -e58cc5fa0 minor whitespace fix -79e625f01 Fixed trying to build OSX SDL_OpenURL on iOS and tvOS -bd14f2676 Removed unused variable -d86a74654 SDL_video.c: fix whitespace -3aa418f45 SDL_video.h (SDL_DisplayEventID): remove comma at end of enumerator list -76980e30f Added events for dynamically connecting and disconnecting displays, with an iOS implementation -cd703b562 Fixed whitespace -54bb9aacc k_rem_pio2.c: fix typo in second memset(): iq, not q. fixes bug #5309. -061256a3b metal: Clear the framebuffer if presenting without any other operations. -b7b8ef59a Fixed bug 5307 - Crash when joysticks hats number is odd (Thanks Sockmonsters!) -bffbc7e31 Android: better readibility for pollHapticDevices() -20c070d86 Android: better readibility for pollInputDevices() and move isDeviceSDLJoystick() test at first since there are always non-joystick devices present. -003a16980 wav: Make sure the data size is a multiple of blockalign, not an exact match. -462742699 url: WinRT actually works now (and has been tested, hooray!). -fc05a696a url: Attempt #23235 at WinRT support... -02addf135 url: Another attempt at WinRT implementation. -1f4b5d54c windows/SDL_syslocale.c: make it build against older SDKs. -6c6d2bdd3 url: Build WinRT-specific code as C++/CX instead of plain C++. -7bec9df11 url: Add to Xcode project files, iOS/mac fixes. -57e3003d3 url: Attempt at WinRT support. -566479c8e url: ShellExecuteW returns an HINSTANCE, so deal with that more correctly. -b7b2995fb url: Added to Visual Studio project files. -ee56090d3 url: Cleanups and compiler warning fixes. -cc158f298 url: removed "extern" from function declaration. -a3802cc53 url: Patched to compile on C89 compilers. -66d847bd5 url: Patched to compile on OS/2. -0099e38a9 url: More win32 fixes. -3fe5ce7b9 url: Patched to compile on OS/2. -1f4fecc5c url: Patched to compile on Windows. -777d0f19f url: patched to compile on macOS. -d068d05aa url: Make sure Haiku's C++ implementation is flagged as 'extern "C"' -bf9fcb539 url: The function is "SDL_Unsupported" not "SDL_Unimplemented" -2d82cf78e url: put the Android bits in core/android -efd665e2c Backed out changeset a43cb4e54949 -913aa610b url: Include SDL_misc.h to get public function declaration. -5f6881224 url: patched to compile on Android. -84f1b9500 url: fixed wrong include. -77c9d73b6 Removed SDL_AndroidOpenURL, added SDL_OpenURL. -a70bb58d4 Android: fix joystick allocation that can be never used -2e38c9495 Fix bug 5303 - Touch/Mouse events simulation doesn't work on Android 11 -cd6670bff SDL_Surface refcount: fix memory leak when blitting between stack'ed surfaces (see bug 5226) -883509fc8 ran gendynapi.pl after new (android-only) api additions. -0467e332a Android: small change to access to device diagonal value -62b029f33 Android: missing import class Uri -dd55bfe89 Android: add helper function to open an URL/URI (see bug 2783) -45c644cc9 Added support for the MOGA XP5-X Plus -78c274cb5 kmsdrm: merge patches from Ozkan Sezer for removing c-99'isms and raising libgbm version reqeriments. -7ad71563c Android: be sure shared libraries are loaded in onConfigurationChanged() -955f3184f Fixed bug 5239 - Play audio on Android while backgrounded (Thanks Superfury) -7ef188a1f jack: Fixed memory leak on device close. -ebfc98377 ac_check_define.m4: remove stray AC_DEFINE outside of the macro definition -3544bd9e7 ac_check_define.m4: AC_REQUIRE([AC_PROG_CPP]) -- fixes bug #5234. -9a769da04 X11: Remove our X11 error callback in X11_DeleteDevice() -9c342e76d kmsdrm: merge heap buffer overflow and cursor creation patches from meyraud705. -0cb9bfa50 kmsdrm: less excessive error checkhing -5bed30dd6 kmsdrm: also do pending modeseting in SwapWindowDoubleBuffered(). -9e9227add kmsdrm: reimplement modesetting for fullscreen window scaling and AR-correction. -4575c6942 kmsdrm: delete ununsed variable. -01b0cf1c9 Backed out changeset 4a45d1a30d25 -7b6765487 kmsdrm: don't fool SDL into thinking that changing the physical videomode is done. -a6d182d32 kmsdrm: no need to reconnect/reactivate things in SwapWindowDoubleBuffered(). -47e2d0304 kmsdrm: greatly improve comments in SwapBuffersFenced() for future reference. -3c6004feb kmsdrm: Choose how to swap buffers based on EGL extension availability. -c7e761f87 kmsdrm: Patched to compile if EGL headers lack EGL_ANDROID_native_fence_sync. -224aa45b5 kmsdrm: Implement GL_DefaultProfileConfig for Raspberry Pi compatibility. -092162ede video: Set up default before calling GL_DefaultProfileConfig(). -e758dd53d egl: Make SDL_EGL_HasExtension() available outside of SDL_egl.c. -055cad49b kmsdrm: no need to re-connect/reactivate things in SwapWindow() anymore because we use a dumb buffer on KMS buffers destruction now. -351219bfd kmsdrm: On VideoQuit(), only destroy dumb buffer if it exists. -8709f67eb Fixed bug 5215 - Fixing filenames passed to dlopen for OpenBSD -1b6de9a98 Fix SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH=1 on Metal windows -244d0ad85 kmsdrm: Tell SDL that mouse has entered the window via artificial event. Fixes sticky mouse in Scummvm. -550e15336 kmsdrm: No need to test for display driverdata when freeing a plane. -6e03fab98 kmsdrm: add temporary RPI4_COMPAT define to try RPI4+current Rasbian compatibility. -0f807fd60 kmsdrm: use a black dumb buffer for keeping the PRIMARY PLANE occupied when we destroy the KMS buffers, instead of using the TTY buffer, to avoid flickering. -4d1c2a185 Fix false compiler warning: initialize the variable 'memdiff' -ebc12a2fd SDL_Surface refcount: destination surface keep track of surfaces that are mapped to it and automatically invalidate them when it is freed -cce6c6051 kmsdrm: fix errors when trying to free up videomode driverdata pointers on quit. -9501b1c69 kmsdrm: fix scaling for SDL_WINDOW_FULLSCREEN windows. -daa752b10 kmsdrm: fix first frame display: no need to wait for SwapWindow() for EGL surface creation. -68ac9349a kmsdrm: more coherent returns for SwapWindow. -d3d9d432a kmsdrm: Remove debug printfs in SwapWindow. -d7aebbd58 kmsdrm: Don't create surfaces until EGL context is available. -97fad0455 Fixed bug 5278 - export SDL_AndroidRequestPermission() (Thanks Huki!) -f4e02a5c1 kmsdrm: Do NOT modify window size manually from the backend: doing so caused renderer scaling params miscalculation. -c09d1cee9 kmsdrm: Apply window reconfiguration in SetWindowSize(), too. -31b179453 kmsdrm: use PLANE and CRTC to do hardware-driven window scaling and AR-correction. -fe3f97961 kmsdrm: unload EGL and GL lib only if using them. -9b43464d8 kmsdrm: Add programmer credits to the Atomic KMSDRM driver. -9316a8d97 kmsdrm: move FENCE FD props setting to SwapWindow(), where it belongs. -3f38009b2 kmsdrm: comment out atomic commit fast-debugging printf. -0d16761cb kmsdrm: fix segfault on quit beacuse of freed _this->egl_data. -d43e666ee kmsdrm: Buffer management refactoring. Fixes for compatibility with more video drivers. -eade05ca0 kmsdrm: Finetune integer type usage. Add some comments. -a76f17636 kmsdrm: Move cursor plane setup and freeing to MouseInit() and MouseQuit(), for better consistency. -0d593d7ea kmsdrm: Add error control to plane prop setting function. Do most plane prop setting with a single function. -e06e9c35c kmsdrm: move cursor-related atomic helper functions and related struct typedefs to the SDL_kmsdrmmouse unit. -0b7b7721b kmsdrm: remove redundant function, use drm_atomic_setbuffers() for disconnecting planes instead. -16c04f266 kmsdrm: Init cursor surface on SetCursor() ONLY. Removal of dynamic modeset because it causes A LOT of problems with some kernel video drivers. Some refactoring and cleanups. -0d0ba111a kmsdrm: correct parameter name. -5d32eda95 kmsdrm: implement smarter surface recreation function to be used in videomode changes. Other minor arrangements. -f79da8172 kmsdrm: free all connector, crtc and plane memory on KMSDRM_VideoQuit(). -96d555e25 Android: remove un-needed java import (bug 4297) -965b466ee Fixed bug 4297 - Android StrictMode policy. Remove APK expansion support -92cb9192e kmsdrm: move hardware cursor functionality to the ATOMIC interface. Disconnect the display plane from the GBM surface buffers before destroying the GBM surface. -c3ecf18cc Linux: Add hint for disabling deadzones -86517d3ed Fixed bug 5242 - KMOD_* flags unnecessarily macros; breaks OGRE -c09433282 wayland: defer pointer confine creation until pointer unlock -a720d1a29 render: fixes to how we convert touch events for logical scaling. -c437729b2 kmsdrm: separate requests in different functions so we only need one atomic commit for everything, as expected by atomic design. -3b9f1073c kmsdrm: wait for possible pending atomic commits before destroying surfaces, and before restoring video on quit. Move messages to the SDL_Log* functions. -96c99693a kmsdrm: wait for pending atomic commits before restoring videomode and crtc->buffer on VideoQuit, and simplify double-buffer SwapWindow() implementation. -09692b617 kmsdrm: move videomode restoration on VideoQuit() to using the atomic interface instead of the legacy drmModeSetCrtc() function. Refactoring of get_plane_id(). -fc722b2d2 kmsdrm: free memory for plane, crtc and connector property tables on VideoQuit. -2d69ce08b kmsdrm: double and triple buffered versions of SwapWindow() are now both reimplemented in atomic pageflipping versions, and can be selected via SDL_VIDEO_DOUBLE_BUFFER env variable. -8996ee178 kmsdrm: update SwapWindow fn, moving it to triple-buffer. -ea171c056 winrt: Another attempt at getting this to compile. -b131661c6 kmsdrm: rewrite the new SwapWindow() fn to avoid tearing. Double-buffer only for now. -282e4c65b winrt: Patched to compile...? -1a5503ce9 kmsdrm: Moved to the ATOMIC KMS/DRM interface for buffer swapping, leaving DRM-legacy behind. -e410b34f9 stdlib: Corrected implementation of SDL_wcsncmp. -c7eb557d8 kmsdrm: do not leak drmModeConnector Previously conn was leaked on the success path (when available was set to SDL_TRUE). -412b21b0e Rename the gbm device struct from gbm to gbm_dev for better readabilty. -155fdc7ac kmsdrm: settle with first card that has a connected connector Previously the first card with non-empty connectors, encoders and crtcs would be selected, however KMSDRM_VideoInit could still reject it if the connector was not connected. This allow finding the first card (in a multi GPU setup) that is actually connected to a display. -b78b88f7f kmsdrm: fix typo -75fe4b14e Added comment about window creation behaviour in KMSDRM. -2f660c4fd Delete windata variable no longer needed in KMSDR_SetDisplayMode(). -3a1d7d9c9 Surfaces have to be recreated immediately from KMSDRM_SetDisplayMode(). -b6a818b6a Fix SDL_Window recreation: drmModeSetCrtc() has to be called everytime the EGL and GBM surfaces are recreated. -71e9df99c Fixed bug 5231 - Fix for hardware cursor: size and alpha-premultiplication. -b0ca8efd2 Re-add check for Metal on x86, where it's not supported. -b7a4fdd31 metal: Make sure we have a command buffer available before trying to present. -b5affd12e Patched to compile. -3b38e61a7 winrt: Fix casting a pointer to int. -8babda2c2 egl: SDL_EGL_LoadLibaryOnly() shouldn't set _this->gl_config.driver_loaded = 1 -af71510cc assert: Implement SDL_TriggerBreakpoint for Apple ARM hardware. -45f5eb061 configure: On Apple platforms, only exclude Vulkan on x86. -968b830d1 Fixed bug 5232 - SDL2 configure script detects Apple Silicon Macs as iPhones; fails to build due to missing components -cab1a715f Fixed bug 5233 - PS3 Gamepad Motion Control not correctly ignored on Linux -a78b9763f Reuse Wayland connection from availability check -8669a87f0 Reuse X11 connection from availability check -052a13738 Merge VideoBootStrap::available into VideoBootStrap::create -49ec65587 fix bug #5228 -- Add AltiVec detection for FreeBSD. -b16262954 cmake: Fix building with -DSDL_HAPTIC=Off -fe97f01bc configure: corretly print --enable-arm-simd default value. -6aec6da4c stdinc: Let Clang static analysis see more C runtime functions. -0e98040d4 joystick: Linux joysticks now recover better from dropped events. -e594a6738 emscripten: Introduce SDL_HINT_EMSCRIPTEN_ASYNCIFY -01af7b025 emscripten: support pseudo-synchronous screen refresh and events update using asyncify -3b71ebecd configure: Accidentally deleted a ')' -e294639a6 cmake: Fix Metal detection on macOS/iOS. -363fd52b4 configure/cmake: Disable ARM SIMD and NEON by default. -694fea8ad video: Make SDL_CreateWindow use SDL_Init(SDL_INIT_VIDEO), not SDL_VideoInit. -50fd0dd14 test: testspriteminimal wasn't calling SDL_Quit() on exit. -1947ca702 video: Changed SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS to default to FALSE. -21482c158 cmake: Bump minimum required CMake to 3.0.0 and mark link libraries PRIVATE. -718e1fb8b cmake: Fix building with -DSDL_SENSOR=Off -d955d63b0 cmake: Build Linux-specific files like the configure script does. -dd753ce7e cmake: Fix building with -DSDL_POWER=Off -ce293eed8 Fixed bug 5208 - Fix libGL loading on OpenBSD -c2b853059 Fixed bug 5209 - cpuinfo recognize OpenBSD ARM -4ba0a8471 core/linux/SDL_threadprio.c: fix build against older glibc versions -b9f55b6d8 Fixed bug 5199 - Fix KMSDRM_CreateWindow() segfault when starting L?VE2D engine. -56622f9c9 Fixed bug 5126 - MinGW compile error SDL_windowssensor.c -f1d5ced16 x11: Fix spurious keyboard focus events -48989e2a8 Reverted comment change in previous commit -a7ff6e961 Fixed overflow in surface pitch calculation -efe093590 Fix compile without DIRECTX -9db16a655 fix permissions of some project files -163896543 fix watcom build of SDL_test_common.c -7c0986fba Fixed bug 4938 - Suggestion: rename SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XBGR8888 -2aa8974f9 Add SDL_SIMDRealloc -20aada0ef Fixed bug 5170 - Build fails when using Visual Studio 2017 with Windows 10 SDK 10.0.19041.0 in uwp -4d15b5b89 Fixed building with Visual Studio 2019 -44f50c647 Fixed bug 5171 - PollEvent impacts performance in 2.0.12 -511a9702f Fixed whitespace -aefe19ff0 Added support for the NACON Revolution Pro Controller 3 and the GameStop PS4 Fun Controller -6f241bd52 Fixed build -086be21e7 ControllerList: add support for NACON asymetric controller and Revolution 3, Hori mini wireless ps4 controller, and 2 PDP switch controllers -3b76109f6 ControllerList: remove giotek controller from list - vid/pid appears to be reused in bunch of devies including ones with different fw/protocol and treating as ps4 controller breaks them. -a9cfac383 Controller: Deadzone improvements -9fa8d6d0b Define constants not available on older kernels -3ac24bfc1 Fixed mouse drag with an external mouse on iOS -d0947c148 Fixed exception if getManifestEnvironmentVariables() is called without a current SDL activity -ff53521bc Fixed Bluetooth audio output on Apple TV -cced5eb93 Fixed bug 5169 - Can not build current sources because of recent thread management changes -958c42827 Fixed build warning -49501a986 Updated configure with changes from configure.ac -22ce194b1 Make sure SDL_locale.h is included in the Xcode Framework for macOS -b9d5aebb3 Make sure SDL_locale.h is included in the Xcode Framework for tvOS -550b209e9 Make sure SDL_locale.h is included in the Xcode Framework -60435712f video: Set window->surface NULL after freeing it. -eea0b0e08 Fixed bug 5168 - Memory leak in RAWINPUT_JoystickOpen -134362e74 Enable Xbox One HIDAPI driver on macOS -ac1f174ad Fixed bug 5167 - Memory leak in GuessXInputDevice -06267f502 Fixed whitespace in SDL_vulkan.h -d48c97c4a Fixed bug 5147 - KMSDRM: SetWindowFullscreen() failing with SDL_WINDOW_FULLSCREEN_DESKTOP -9325b22ef Fixed bug 5113 - SDL_UpdateWindowSurfaceRects BitBlt the entire surface on Win32 -d000c1cd6 Fixed bug 5155 - HIDAPI_JoystickDisconnected incorrect array shift -a8400dc3b Fixed bug 5105 - sndio support not working in dynamic mode (dlopen) -2303d9218 Fixed bug 5145 - Fix whitespace in SDL_vulkan.h -77b0dad27 cocoa: Change Caps Lock behavior to toggle instead of locking -bdfd1b68b Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB -a6ca61d73 wayland: update pointer position on initial enter event -68e1731e0 Don't bother logging security exception getting the device serial number -eea450bc9 - Added exception handler for the new SecurityException in USBDevice getSerialNumber -ae9ff11ba The zero happens at a higher level now -39c958bba Initialize the raw_map before getting controller mappings from the driver -2db049473 Fixed variable names to be consistent across functions -345b4d7e1 Fixed bug 5161 - Autodetect controller mappings based on the Linux Gamepad Specification -e2dbed9cf SDL_blit: Fix undefined bitshift operations -032fa681a Add Logitech G29 to steering wheel list -aa259ed52 wayland: Changed output removal in handle_surface_leave() -ce7ae4ec8 wayland: Move buffer copy into mime_data_list_add() -22da9d4d7 wayland: assert that mmap() didn't return NULL. -1a1f1704a Don't include the iOS joystick driver if joysticks are disabled -57149c241 Fixed building with --disable-joystick on iOS -cf01ee169 Fixed building with --disable-joystick on Linux -e9f567c70 Fixed building on iOS with MFI controllers disabled -97ca96bde Use nil instead of NULL for Objective-C objects -2aec184e3 Fixed mkdir warning when running iosbuild.sh multiple times -03a7abf80 Fixed building with --disable-joystick on macOS -af5eb56c7 Fixed uninitialized variable warning -31916f11a Fixed compiler warning building on FreeBSD -bcbaa4ec1 If there isn't a GetGlobalMouseState() implementation, fall back to the normal one. -437577f91 Fixed bug 5141 - KMSDRM: manage SDL_GetGlobalMouseState() -1df0a1e49 Fixed bug 5140 - KMSDRM: Dynamic vsync toggle does not work -15294e212 Fixed iOS build -cc2fe84d7 Getting closer. -0713c5790 More Linux fixes. -c7d1dab1f Rename Linux-only variable. -b820a81ff Include SDL_hints.h. -de866e660 Include SDL_hint.h. -abd584185 Make some changes to SDL_SetThreadPriority to try and have SDL transparently handle more of the work. 1. Comment that SDL_SetThreadPriority will make any necessary system changes when applying priority. 2. Add a hint to override SDL's default behavior for scheduler policy. 3. Modify the pthreads SDL_SetThreadPriority so that instead of just using the current thread scheduler policy it will change it to a policy that should work best for the requested priority. 4. Add hint checks in SDL_SetThreadPriority so that #3 can be overridden if desired. 5. Modify the Linux SDL_SetThreadPriority so that in the case that policy, either by SDL defaults or from the hint, is a realtime policy it uses the realtime rtkit API. 6. Prior to calling rtkit on Linux make the necessary thread state changes that rtkit requires. Currently this is done every time as it isn't expected that SDL_SetThreadPriority will be called repeatedly for a thread. -f16e6bfa8 Fixed creating a metal renderer without specifying a metal window -f176d7fda Added a note not to use XinputUap.dll for XInput support -600a2fc7c locale: Removed unused variable. -a299fdd78 sensor: Fixed compiler warnings on mingw64. -ba11122ea locale: Fixed compiler warning on Visual Studio. -b4e76b58e sensor: Fix overaggressive search/replace. :) -27c38eb22 sensor: Correct fix for redefinition of various symbols. -5fe34a407 hidapi: Fix compiler warning. -c9d358bce sensor: Fix build on various Windows compilers with various predefinitions. -68777406e windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *. -539125b89 locale: Fixed compiler warning on WinRT. -8bd3b2c80 configure: fix fcitx tests. -d66b73666 locale: Patched to compile on Windows Phone. -a5c654d5c configure: Just don't do the -idirafter on QNX. -72fdc8051 configure: -idirafter needs a space, -I doesn't. -475afe216 configure: Do a real check for -idirafter anyhow. -2f565b446 configure: Regenerate configure script. -0e08d2379 configure: Not all compilers understand -idirafter, use -I instead. -da54eb7c3 checker-buildbot.bat: Removed. This is clearly not going to work like this. -24a76b278 build-scripts: Attempt at a static analysis batch file for Windows. -3808b120d locale: Make sure C++ implementations (Haiku!) use C linkage. -20ed8019c os2-buildbot.sh: Fix upload path. -a1d7410ff windows-buildbot-zipper.bat: Attempt to update for new buildbot. -863776f8d haiku: Another attempt at fixing build. -e53d39cf3 haiku: Patched to compile. -e11a665cd raspberrypi-buildbot.sh: Fix output directory. -9db4e6ed3 os2-buildbot.sh: Fix output directory. -3195551b2 xcode: make sure locale sources are used in all targets. -7558d960b OS/2: Forgot to add locale source dir to makefile. -c26c348a3 raspberrypi-buildbot.sh: Leave files in the right place, don't nuke build dir. -b0f41e142 emscripten-buildbot.sh: Leave files in the right place, don't nuke build dir. -5358882b1 emscripten-buildbot.sh: the SDK path changed on the new build worker. -4c883383d checker-buildbot.sh: Use Ninja, not GNU make, and expect scan-build in $PATH. -c1ef54974 emscripten-buildbot.sh: target WebAssembly instead of asm.js. -db4246f69 Only set colorkey, if converted surface has no alpha channel (2979) -f6197aec8 Fix issue with colorkey, palette and format conversion Set the colorkey information on the converted surface. Test-case in bug 3826/2979, conflicting with bug 4798 -39690a047 Fix static analysis warning in SDL_render.c -5b65e0af0 Fixed bug 5100 - compilation CMake Android armeabi-v7a (Thanks Steve Robinson!) fatal error: 'cpu-features.h' file not found on CMake Android armeabi-v7a -d31dac156 docs: README-linux.md updated for a modern Ubuntu release. -ec2d70364 docs: Fixed README-linux.md's line endings and word wrap. -2d5de8faf docs: Linux systems don't need to install wayland-protocols anymore. -daf360e04 emscripten: Fix crash in SDL_SetWindowTitle(). -1a291ab11 wayland: add support for SDL_SetWindowGrab -b47f577a9 Fixed bug 5098 - macOS CreateWindowFrom doesn't work with high-dpi displays -eadc8693d Fixed bug 5103 - Port fcitx support to both fcitx 4 & 5 -33642b47b Android: robustness if locale failed to be detected at start -2491f16f8 Android: send SDL_LOCALECHANGED when locale changes -2a4ddeeea Android: fix missing prototype warning -0059ace0b Android: factorize asset manager code (bug 2131 and 4297) -fa23e3d00 locale: Implemented SDL_GetPreferredLocales(). -1e5dd06f8 Added support for the HORI Real Arcade Pro on Mac OSX and Linux -cd2bdaef1 ControllerList: add PDP Faceoff Deluxe Audio Switch Controller and HORI Real Arcade Pro V Switch Edition -0e5b48d2d ControllerList: add NACON Revolution Unlimited (and it's dongle) and NACON Daija fight stick. -b3a34c94e hid: Add Microsoft Precision Mouse to the joystick blacklist. -85d97410d hid: Cleanup Windows joystick blacklist code, to make additions easier. -b0a20a153 stdlib: Fixed compiler warnings about int vs size_t. -0eb6512b5 Fixed bug 5121 - Use SDL_calloc instead of calloc in Wayland_CreateWindow -65ad45340 Improvement for bug 3446 - The haptic API does not allow to select the direction axes -11723411a Added support for the Razer Kishi -8601996fb hints: Allow specifying audio device metadata. -11fef299d hints: Fixed a doxygen comment. -8b60d39cb Fixed bug 5112 - CMake won't compile in VS2019 -05a60c2ea Fixed showrev.sh when using the Bourne shell -beab15b09 Added additional logging to track down why the NVIDIA controller doesn't send the back button -b0b12e46b Fixed running on older versions of iOS -7ac827102 cmake: various Haiku settings were accidentally under "if(SDL_VIDEO)" -01fd8130f Fixed compiler warning -c6b24b4b7 Added support for the following controllers: * 8BitDo N30 Pro 2 * 8BitDo SN30 Gamepad * 8BitDo SN30 Pro+ * 8BitDo Zero 2 * SZMY-POWER PC Gamepad * ThrustMaster eSwap PRO Controller * ZEROPLUS P4 Wired Gamepad -4727f7941 Don't use the WGI driver if another driver is already handling the joystick -6ca7f510a Fixed crash trying to get battery status on some devices -0f374b069 Fixed build on older Visual Studio, enable new features on newer Visual Studio -589d636bb Fixed rare crash when creating an X11 window -d12ea89c1 Added support for the following controllers: * PDP Afterglow Switch Controller * Thrustmaster ESwap Pro PS4 controller * Giotek VX4 * Generic PS4 controller vid/pid that several knock offs use -3625b83c6 hid: Add Razer Arctosa keyboard to hid enumeration blacklist. -09ca66bf6 SDL_error: simplified error string management. -67760f0ed joystick: Don't report duplicate recentering events for game controllers. -c5f2a1ce4 joystick: On disconnect, recenter all game controller inputs. -116b8c17f Note which Windows SDK version is required for Windows Gaming Input support -aba279289 Added a Windows Gaming Input joystick driver -b90b59279 Added support for the Razer Atrox Arcade Stick -dbcda0b21 Added support for the Razer Wolverine Ultimate -2b3238550 Don't send rumble packets too quickly to Nintendo Switch Pro controllers over Bluetooth -c02f54a0e Fixed the default face button mapping for Nintendo Switch Pro controllers -eaaa809e4 hidapi: Blacklist the Razer Lycosa keyboard from enumeration. -a7a4e16b5 haiku: Patched to compile. -a990a34ac Cleanly switch between audio recording, playback, and both, on iOS -14661d3f3 Added support for mousewheel on iOS -2b7ce8c51 cmake: Set HAVE_VIDEO_WAYLAND_QT_TOUCH if appropriate (thanks, Michael!). -50b1c1954 Fixed bug 5091 - Suspicious condition in HIDAPI_DriverXbox360_UpdateXInput -2ae1c0f5d Allow Bluetooth headphones for iOS playandrecord mode -2d1f7be27 Remove development team override for iOS tests -b8590f1ae README-ios: added a note about enabling hidapi. -87917b16a Removed CoreBluetooth framework dependency as part of fixing bug 4299 -ed1d85586 Fixed bug 4299 - A recent change requires Core Bluetooth framework on iOS -f34d2c60c Added zlib license for Steam Controller headers -3e4856c97 Fixed mouse button mapping on iOS -e1215e857 Fixed mouse button mapping on iOS -dbf7f84fd Implemented left/right mouse click detection on iOS -171ba00a6 Hide the mouse cursor appropriately on iOS -9e3b259de Added virtual joystick sources to the Android build -132f87c3a opengl: Don't try to do Desktop OpenGL stuff if support isn't available. -a96d8a435 render: Fixed compiler warning about implicit cast. -6f3fa02e2 Make sure we're using the bounds of the view for our mouse region -cab1ee9cb Don't build iOS mouse support on Apple TV -e5d362993 Added support for new mouse APIs in iOS 13.4 -e96b05c39 egl: Attempt to make this compile on WinRT, etc. -1d8797876 Fixed implicit linkage to ftol2() on Windows -c302c1abb Fixed build -bf87604ef Fixed rare crash when unplugging Xbox controller on Windows -952bac7c4 cmake: use check_symbol_exists, not check_function_exists (thanks, Manuel!) -c0a875faf SDL_EGL_ChooseConfig: don't fall through if no matching format exists On Raspberry Pi 3 via the VC4 driver in firmware KMS mode, none of the found configs match the desired format, causing the function to fall through without any config being selected. -64617d259 opengl: Convert an int to an SDL_bool. -389c8995d opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, Martin!). -e6c640f31 Enable the virtual joystick API by default -ef147d2e2 Enable virtual joystick API by default -8a5ee3faf video: NULL out pointer to freed window surface -abcc6706f build: Don't duplicate Libs in Libs.private in pkg-config file -99f87a715 build: Merge pkg-config Libs.private into Libs for static-only builds -bd7b4f39e Partial fix for bug 5086 - CMake builds on Windows broken by sensor support (thanks DominikD!) -0918903f3 render: add a hint for toggling relative scaling -aa188048f render: Scale relative mouse motion better for logical sizing -d292f6bd4 stdlib: Add SDL_trunc and SDL_truncf -a79168908 metal: Added some support interfaces to Apple's Metal API (thanks, Caleb!). -258d41065 emscripten: Add a few keyCode mappings for German keyboards -babf010c6 emscripten: Pass canvas id to request_pointer_lock Fixes pointer lock with DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 -287772f5e emscripten: Let SDL_GetDisplayUsableBounds return the size of the window This does not account for scrollbars nor margins. But is much better then returning the full display size when not running fullscreen, but for example in an iframe. -fb3df3a18 emscripten: Fix the reported keys for the numpad. See https://github.com/emscripten-ports/SDL2/issues/94 -44716b023 emscripten: Send SDL_APP_TERMINATING before unload (#88) -0380cbd79 emscripten: Typo -d4f1b520c Added support for press/release hardware keyboard events in iOS 13.4 -e9c94ac0b Fixed Windows accelerometer data units -3d942ccc1 Removed debug code -09f552639 Fixed memory leak and removed debug code from Windows sensor implementation -55515a8c2 SDL: ps4 controller trigger bits on other controllers just mean that there's some activity, not saturation - only force it on if the analog value is 0. -ba95fa615 Revert "Fix incorrectly terminated MakeThreadHighPriority dbus message" -9cd06ac33 Add perforce support to showrev.sh -3180ba81a First pass at Windows sensor implementation -6e6b51778 cocoa: Patched to compile. -8c165adde joystick: Remove force_centering flag; we handle this on disconnect now. -fba081e48 wasapi: Patched to compile on C89 systems, and use SDL_ceilf instead of ceilf. -4c2be4720 wasapi: Improve WASAPI audio backend latency (thanks, Anthony!). -361417c0a cocoa: allow calling CreateWindowFrom on an NSView -8641f6e99 emscripten: support KaiOS's Left Soft Key and Right Soft Key (thanks, pelya!). -309d6137a cocoa: OpenGL setView and update must be used on main thread (thanks, Tim!). -486f0b6c6 configure.ac: Fix stupid autotools errors -024698779 wayland: Support wayland compositors with wl_seat version < 5 (thanks, Nia!). -3cb62d526 Fixed setting the controller name for the RAWINPUT driver -e62c25b69 The 0x02ff product ID shows up for new firmware Xbox One controllers using the RAWINPUT driver -88cecee49 Fixed build warning -50cb8e0f0 Fixed deadlock in new raw input joystick code -b6afbe631 Added SDL_log.h to SDL_internal.h so logging is available everywhere -488b94cb4 Don't interpret raw input messages with no mouse position -0721931f5 Avoid sending regular mouse messages for touch input -c760c02c6 Fix some format specifier warnings -dad73b1f0 Fixed bug 5073 - SDL does not handle URL Schemes in MacOS -9525f9729 Fixed bug 5076 - SDL_netbsdaudio: Add support for 32-bit LPCM -e05d92a17 Fixed bug 5075 - Don't assume a GL library version number on NetBSD. -d4b561f47 Fixed bug 5015 - SDL_RenderReadPixels on DirectX 11.1 backend seems to be broken -89fe32ddf Fixed bug 5072 - Test resources missing when building with SDL_TEST and CMake -f3e609679 Fixed setting the "playandrecord" audio hint on Apple TV -378a5cfb6 Updated thread priorities for Apple operating systems -377f2d35d configure: Remove wayland-protocols check from configure and CMake scripts. -ccc8c5d2c Fix shared library suffix on OSX -3154d9247 SDL: plumb previously unused digital trigger bits for PS4 controllers. Victrix fight stick only sets these bits and doesn't send the analog values -f4a56d7e6 Enable thread-safety features in libdbus -2e667a8be Fix incorrectly terminated MakeThreadHighPriority dbus message -6e7465bd6 Fixed Bug 4883, redux - connect SDL_GetDisplayDPI to UIKit_GetDisplayDPI -55b4f18e1 coreaudio: The default SDL audio device now tracks the system output default. -46bb47cf0 thread: Put all important SDL_CreateThread internal data into SDL_Thread. -abdc5cbf2 Allow background music to play in the "play and record" case on iOS -369e5f33f dbus: System bus is optional, we only need a session bus (thanks, tamo!). -07f231eea joystick: Make sure recentering events happen before disconnect events. -f2ff953ef cocoa: Just update the OpenGL context directly if on the main thread. -9354aea19 src/video/kmsdrm/SDL_kmsdrmvideo.c: fix build Build is broken without EGL since version 2.0.12 and https://hg.libsdl.org/SDL/rev/72cc4740dec2: -a4b0204b1 src/video/directfb/SDL_DirectFB_render.c: fix build Build with directfb is broken due to a spurious '}' and a missing 'E' since version 2.0.12 and https://hg.libsdl.org/SDL/rev/4c2dcf490cba: -885b3f694 Don't check the HIDAPI driver for the virtual device created by xow -2c02b7410 Fixed bug 5052 - Interval between SDL_SENSORUPDATE events for gyroscopes is too high -68c7e80dc iOS: fixed bug whereby some SDL testing apps weren't launching -e0a270561 Do not overwrite window surface created by driver -1fd548b67 Fixed building back to Mac OSX using the 10.7 SDK -19a5f4ab5 opengl: Don't enable/disable texturing except when actually rendering. -cb8c91d95 Fixed bug 5051 - Switch Pro Controller hidapi driver does not report battery levels when connected via Bluetooth -f55cbdfd9 Allow Valve devices in driver check, we know they're well behaved controllers -6e646b615 Removed blacklist entries for devices that aren't game controllers, allow Steam Controllers -5ed71f3bc Only enumerate HID devices on Windows that have gamepad HID usages -106ffd57d Fixed bug 5049 - HORI Wireless Switch Pad does not connect properly via Bluetooth -269f8215b Fixed build warning when using mingw-64 - the SDL code doesn't have any undefined symbols -891bd8293 Fixed warning building version.rc using mingw-64 -1a6f6054c Regenerated configure with configure.ac changes -417713a75 Probable fix for compile errors on Mac OS and (non-VS) Win32 -dc36f133b Backed out changeset c29d04c3fa49 -74ba3cb45 Backed out changeset c5bb2de42684 -2db65a7fe Fixed compile warnings -c63bb5124 Only build raw input support on Windows -b6eb09ff1 Updated documentation so people know to set the SDL_HINT_NO_SIGNAL_HANDLERS hint before SDL_Init() -90f9e8f8b egl: Don't use SDL_LoadFunction to get GL entry points on Emscripten. -f7c9502df Fixed bug 5044 - CMake messes up hidapi path when project directory contains spaces -5b3b55a18 [NSOpenGLContext update[ is prohibited outside the main thread -7e5340c5a Fix for Bug 5034 - Replugging in a controller crashes on macOS in SDL 2.0.12 -4c22a21e0 Fixed bug 3446 - The haptic API does not allow to select the direction axes -e6189f404 Fix warnining implicit declaration of SDL_DetectPalette (Thanks meyraud705) -838bbf1f7 Fixed bug 5037 - Regression 2.0.12 Alpha value of 0 on palette may become opaque (see also bug 3827) -36d584515 Backout prior fix for Bug 5034, which needs more research -55a2a12dd Fixed compile warning -9b879a08a Fixed compiler warning -c2c5d0b39 Fix compile error -197b14de4 Fixed Bug 5034 - Replugging in a controller crashes on macOS in SDL 2.0.12 -47da53b91 Fix compiler warnings -8cd08646b virtual joysticks: move variable decls to top of function (for C90 compat; Bug 5038) -737999177 Fixed bug 3446 - The haptic API does not allow to select the direction axes -543994b19 Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows -4dea340ca Fixed bug 4477 - Support more than 4 XInput-capable devices on Windows -cc37ee8a0 virtual joysticks: add autotools-build support (Bug 5028) -40625c4e7 virtual joysticks: MSVC support part 2/2, add file refs to MSVC projects (bug 5028) -b2296506b virtual joysticks: MSVC support part 1/2, make driver's .c file be uniquely named -513730c49 iOS: fixed build error when building test apps via Xcode -9b1ea290f virtual joysticks: added source files to Xcode projects (Bug 5028) -d64761558 virtual joysticks: improved docs for SDL_JoystickSetVirtual* functions -cc9087564 virtual joysticks: removed ball support (Bug 5028) -151c8fbf1 Fixed build error -1ff483d1f Added SDL_GetErrorMsg() to get the error message in a thread-safe way -19c348446 Fixed slow enumeration when Apple Cinema HD display 30" is plugged in -133b47558 Use LIBUSB_CALL for hidapi's read_callback function -2be75c6a6 Fixed bug 5028 - Virtual Joysticks (new joystick backend) -879f137ae Added support for the older Xbox One S Bluetooth controller report format -d662a6596 Fixed crash if manufacturer or product string is NULL -255c9c23d Fixed bug 4921 - Do not swap B/X buttons on GameCube controller unless it's requested -6318765d5 Handle entirely duplicated joystick product names, as well as vendor and product names that start with the name of the vendor, but with different case (e.g. 8bitdo 8BitDo) -de2001eee Fixed binding the D-PAD on the 8BitDo M30 controller -cb2f78b12 Updated 8BitDo SF30 Pro mapping with hint support, added Android binding for the 8BitDo M30 Gamepad -cb986aff9 Fixed exception at shutdown if the controllers are closed after the HIDDeviceManager is shutdown -80d075a01 Fixed compiler warnings -5722e8848 Fixed build warnings -c44473ba7 Unified code to standardize joystick names -db3b3a1d8 Added support for SDL hints in the game controller mapping database -93ed3c8ba Updated SDL to version 2.0.13 for development builds -1102678b6 Added tag release-2.0.12 for changeset 7715fef44900 -983bbf9ef (tag: release-2.0.12) Backed out changeset 51622f74dc85 -9fdc6cf30 Removed Xbox HIDAPI debug code -4fb06a2a3 Updated SDL to version 2.0.13 for development builds -5c87b8e1e Added tag release-2.0.12 for changeset 6915d6569091 -fe9799218 Read the buttons on Nintendo Switch and GameCube controllers as they are labeled, and swap them if the applications wants positional button data instead. -4caa6a068 Fixed bug 4921 - Do not swap B/X buttons on GameCube controller unless it's requested -342f62ca6 Fixed bug 5022 - SDL_iconv_string can get stuck in an infinite loop when encountering invalid characters -1f4965c8c Fixed warnings building with mingw64 -611403dd0 Clarified that the clip rectangle is defined relative to the viewport, and added a clip test to testviewport.c -c8c05a9fc Fixed bug 4991 - Pixel shader problem when recreating a texture for direct3d renderer -367a35613 Don't release the backbuffer on error, we didn't acquire it. -4e0fb110c Clear the old player index slot when moving to a new one -165ccaa85 Fix incorrect player index when assigning a joystick the same index twice -e152a3ced direct3d: Don't attempt to create zero sized vertex buffer -467434b92 Added support for indicating player index on DS4 controllers -82be6dd7c Fixed regression in bug 4966 - KMSDRM: Add dynamic modeset support -37faac0d8 Fixed java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.WindowManager android.app.Activity.getWindowManager()' on a null object reference -27889d026 winrt: Wait for EnumerationCompleted before leaving WASAPI_EnumerateEndpoints -e9bc21fba Fixed rumble for third-party Nintento Switch Pro controllers -428cfddb4 Fixed crash when a controller is disconnected while rumble is pending -281d05a6d Fixed handling the guide button with both V1 and V2 of the Xbox One Bluetooth wireless protocols -69a8c8468 Fixed using more than one Xbox Bluetooth controller Don't prevent duplicate devices using hidraw, instead libusb takes precedence and all hidraw devices that aren't handled by libusb are available -2a91f682b Fixed bug 5012 - KaiOS keycodes support -96836ec64 Add 500ms max wait time for hid_write to complete on Windows It appears that with some (presumably) flaky drivers or hardware that the WriteFile in hid_write never completes leading to GetOverlappedResult to block forever waiting for it. -07000bfc3 Fixed bug 5010 - SDL_Init with SDL_INIT_JOYSTICK hangs for 10 seconds when playing audio from another application -c7a739bef Fixed bug 4643 - Append EGL CFLAGS in CheckOpenGLESX11 -aa384ad02 Fixed bug 5001 - Feature request: SDL_isupper & SDL_islower -a8f91340c Updated configure with change from last commit -11b63facd Prevent Mesa from including X11 headers if X11 is disabled This fixes compilation errors that occur when trying to compile SDL2 for a X11-less target. The errors were due to the fact that Mesa will include X11 headers unless a couple of macros are defined. -3b3ae4d14 Possible fix for bug 5010 - SDL_Init with SDL_INIT_JOYSTICK hangs for 10 seconds when playing audio from another application -a19757ac8 Fixed bug 5007 - Segfault in KMSDRM_VideoQuit() on Raspberry Pi Zero with no display attached -f00ddd0a3 Updated WhatsNew.txt with SDL 2.0.12 release notes -25061816b Fixed compile warning -eb19631a1 This controller firmware is supported on Windows, and is covered by the Bluetooth check on Mac OSX -49564c8b8 Added support for the PDP Victrix Pro FS with Touch Pad for PS4 -4572dd2ae Fixed bug 4854 - Add a way to extend the values in controller_type.h -27f346a05 Fixed compile warning -339612d5a ControllerList: add support for Victrix Pro FS w/ Touchpad for PS4 -52be66338 Use SDL math functions in Steam Controller support -756d2073f Updated the HIDAPI Xbox One driver with support for Bluetooth Xbox One controllers -997f3e9e8 Fixed build warnings -11a84e4fa Make sure hidapi is built for the release DMG -bebc48677 We already have a hidapi implementation for Windows, we don't need libusb -74ed21561 Updated version to 2.0.12 for release candidate build -6590d078d Fixed bug 4996 - Mac: XBoxOne Bluetooth rumble isn't working -534621636 mac: Fix gamepad detection -51e9e9845 Fixed whitespace -8a6f1aa5f Fixed bug 4369 - Going fullscreen with green knob in MacOS freezes app for 15 seconds. -bd5da73af Fixed bug 4992 - UWP/WinRT does not set thread priority when using SDL_SetThreadPriority -1af31a26d Fixed trying to handle the HORI Wireless Switch Pad when connected via USB -20d67446e Xbox One controller rumble doesn't need synchronization if you use a packet counter of 0 -2cd88ddf9 Temporarily disabled NEON optimizations added for bug 4365 The ABGR to ARGB blit results in an empty surface, this needs to be looked at. -9013c9169 Fixed bug 5005 - warnings in kmsdrm -7f26ff237 Fixed bug 4987 - Can't build on MinGW a recent state (15'th February, 2020): conflicting types -cbd1a2f7d cmake: Forgot to add this file to revision control. -21a2e0c78 Fix compilation C90 mixed declarations and code (Thanks Cameron Gutman !) -e2b132ca7 Better fix to set the palette opaque, when there is also a colorkey (see bug 3827) -e3b0713e4 Don't call setPreferredOutputNumberOfChannels on iOS, it breaks audio output -2c9871a4a Fixed surround sound support on Apple TV -f48576600 Fix: set to opaque when a palette surface is converted to an alpha format. -bf8aa1eda Fix regression: when a palette + colorkey is converted, it needs a blend mode. -094655cff cocoa: Make sure wait for button enable can't be infinite. -723165187 cocoa: Removed a debug printf that was accidentally committed. -9a7c2b224 Fixed bug 4999 - Palette surface always promoted to alpha (Thanks Cameron Gutman!) -dd1d8ab62 cmake: more proper sdl2-config.cmake work (thanks, Alexander!) -be4d488e0 cmake: Backed out changeset 9009d85d3762 -4d9e6e5f7 cocoa: When exiting a fullscreen space, wait for window state to normalize. -8d1463632 Fixed support for third party Xbox 360 wireless controller dongle -44698c497 dynapi: Fixed build on non-Android platforms. -ad225047b Added Android SDK conditionals to game controller mappings The Nintendo Switch Pro controller has a different mapping on Android 10 and newer -d7ece7ee6 Made SDL_GetAndroidSDKVersion() available for applications -93b26f172 opengl: Backed out hg changeset 94f9f40a957f -1b82606e1 x11: Wait a bit in SDL_SetWindowSize() to see if window manager vetoed change. -e73152257 x11: Don't delay an extra 10ms if we were just going to break out of the loop. -367a8b970 x11: Don't wait for the window to move if it's already in the place we want it. -1d624aa57 Further improvements for bug 4128 - CMAKE: Generated target import file contains incorrect include path -4a9dbfef6 Fixed bug 4987 - Can't build on MinGW a recent state: conflicting types -dc54add5e Added some extra permissions and features likely to be used by SDL applications -80cf4f072 test: Improved detection of OpenGL support -582f57060 Improved CPU detection on ARM platforms -8f1a916ac Add basic support for compiling on RISC OS -033aa51d8 testfilesystem: Don't exit the application if SDL_GetBasePath isn't supported -35704c983 Fixed bug 4980 - Build fails for SDL_kmsdrm*.c -715f8d42a Fixed bug 4986 - Memory leak in HIDAPI_JoystickConnected -f4e23553d Fixed audio not coming out of the phone speakers while recording on iOS -922b3dc3e Fixed re-setting the audio session category when closing an audio device -229c2f8f5 cmake: Add PACKAGE_VERSION and SDL2_VERSION to sdl2-config.cmake.in -d1df34370 x11: SDL_SetWindowPosition should try to wait for the window manager. -a77a890d4 wayland: Don't delay pending surface resize handling on Vulkan. -7ad77bccb wayland: Don't force the window into OpenGL mode if we want Vulkan. -14bf532df Fixed opening audio on Android from the Steam Link shell activity -b43128647 Resolved conflict and added Android_JNI_RequestPermission() -e261bd420 Improved fix for bug 4748 - Calling WIN_UpdateClipCursor() / WIN_UpdateClipCursorForWindows() on WIN_PumpEvents() causes beeping and choppy mouse cursor movement, right-click doesn't work -afb70f268 test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility. -0a6d80abf mac: Wait a bit before activating app at startup. -6fe6946a2 Fixed relative mode mouse events stopping if you click on the title bar -6ec14b7fd Fixed iOS and Android build -4bb95e840 Implemented OpenSL-ES audio recording on Android -fe8ce66b5 Attempt to make version detection safe for Mac OS X < 10.10 -52b410ab8 Workaround for bug 4822 - Broken visual output in full screen mode with OS X 10.15 -c31727c7e Fixed bug 4748 - Calling WIN_UpdateClipCursor() / WIN_UpdateClipCursorForWindows() on WIN_PumpEvents() causes beeping and choppy mouse cursor movement, right-click doesn't work -668276fe8 Don't add a frame to borderless windows. It was done to allow hotkey resizing of borderless windows, but Windows will sometimes draw it, regardless of our WM_* message handling. See bug 4466 for more details. -f867cebbd Fixed bug 4709 - incorrect (not) handling of windows on-screen cursor keys -232b7feef Make it possible for the application to use different C runtime begin/end thread functions -9feabd351 Make sure SDL_CreateThread has the same signature regardless of how the DLL was created. -4378fcd9a wayland: Fix building with -fno-common (which is now the default in GCC 10). -d55f47d56 Fixed compile warning -cbc65ce80 src/core/linux/SDL_threadprio.c: fix build without threads Add an include on SDL_error.h to avoid the following build failure without threads: -ed10d9473 opengl: Build out full GL_LINES and respect the diamond-exit rule. -13155b35b The scissor rect needs to be updated when the viewport changes in the Metal renderer -3e935aecb Fixed bug 4966 - KMSDRM: Add dynamic modeset support -64c58b9f1 Fixed NullPointerException -e5e541697 Removed VID/PID 0x1532/0x0037, which was listed in the Linux kernel as a Razer Sabertooth, because at least one variant of the Razer DeathAdder mouse shows up with this VID/PID. Specifically the Razer DeathAdder 2013 has this VID/PID -833f76ab7 Fixed bug 4968 - NULL passed to memcpy in WriteProprietary in SDL_hidapi_switch.c -dd0ebfdf8 Use the triggers to test rumble for more fine grained vibration feedback -8ba77b35a Use the asynchronous HIDAPI rumble code for Nintendo Switch Pro controllers -81256207b Update for bug 4923 - Calling SDL_GameControllerRumble() often takes 8 ms -d88f3f522 macOS: fix crash if and when joystick-init-on-add fails -a199cb89a Updated the Android Xbox One Wireless Controller mapping for the latest Xbox controller firmware update -dc1d3c297 Catch both PS3 and PS4 motion controls and don't treat them as a game controller -1d1a35ef6 Fixed Visual Studio build -1bd120266 Added SDL_hidapi_rumble.c to the macOS, iOS and tvOS builds -7c7ae0029 Added SDL_hidapi_rumble.c to the Visual Studio project -65fd63369 FIX for SDL-4927: CFRetain+CFRelease a game controller's IOKit object -02108cf7e Added missing files from previous commit -1684606fd Fixed long delay on main thread caused by blocking rumble writes in HIDAPI drivers There is now a thread that handles all HIDAPI rumble requests and a lock that guarantees that we're not reading and writing the device at the same time. -6efebf176 Moved rumble expiration to the main joystick handling level, and prevent sending the driver layer duplicate rumble requests. -976eee77c Correct joystick hat indexes on linux The index and indices were swapped; Which is fine as long as there are no gaps in the ABS_HAT* event availability but otherwise things do get confused. -d19006c5b Fixed bug 4965 - Update the .hgignore file -ca2186a21 Fixed bug 4758 - hgignore clion build artifacts -4b585e75d Fixed bug 4833 - Use EGL for X11? -67f447886 Fixed bug 4917 - Wayland: handle discrete pointer axis events -68e702b65 Fixed the hidapi Info.plist for submission to the Apple App Store -b5849daf3 Fixed build warnings on Android -212609b3f Map the right pad on the Steam Controller to the right stick in the game controller API -39a498c94 Build the hidapi framework and weak link it on Mac OS X -91121ee4b Weak link the hidapi framework on iOS and tvOS -1190343f3 Build hidapi as a framework on iOS, so it can be linked by the application as well. -62a3d6c00 Fixed build -4e33c013d More Xcode project improvements -37278066f Export SDL functions for iOS application delegates -66579dbd1 test: Common framework now accepts --usable-bounds command line argument. -80e7e2eb9 test: change path in a comment from '\\' to '/' char. Nothing serious here. -0641711e9 Added missing file from previous commit -bc6851632 Added a unified Xcode project for macOS, iOS and tvOS -0897f2359 Fixed compiler warning -214eb88f0 Added SDL_hidapi_steam.c to the iOS and tvOS dylib build targets -c7a62b410 There are lots of unused macros in the Steam controller code -355f0b54e Added support for the Steam Controller on mobile devices -c9c89783c Miscellaneous pending fixes -598cf6947 Fixed member order to make more sense -43b377b07 Fixed wired PS4 controller support on Android -39563b7bf x11: Use XSync when changing window position instead of XFlush. -c7e1b289e cocoa: Fix command line apps' menu bar not working on macOS Catalina. -059de38c2 darwin: Don't pass NULL device refs to IOHIDDeviceGetValue(). -b4c2e29ee video: Added a hint to override the display's usable bounds. -7ea3f5b46 Fixed bug 4898 - No rumble because of integer overflow in SDL_JoystickRumble -5e649983e Don't enumerate devices we can't open -adb53d0b1 Fixed disabling the Xbox 360 wireless HIDAPI driver -ce7c51a9c Always release devices in onPause in case we're going to be force stopped, and for consistency with interacting with other activities that might use the controller -c9f672fde Fixed compiler warnings -2ae41b9c6 Fixed mapping for both versions of the Xbox One Elite Series 2 controller firmware connecting over Bluetooth -48240ac88 Added mapping for the Xbox One controller connected via the wireless dongle using xow -6dc172d09 Turn off rumble on drivers which don't respect the replay.length value -30ff5fcfc SDL_LEAN_AND_MEAN defaults off -b5e3d264f Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds Protected more code with #ifdefs to reduce the size of minimal shared library builds -b1c6e7c24 Fixed compile warning -443bce741 Added support for the paddles on the Xbox One Elite Series 1 controller -6f89b059f Documentation of the footprint #defines -f30ef6ed3 audio: Fixed a '//' style comment. -dbe5c14b3 audio: Calculate a legitimate SDL_AudioSpec::silence in SDL_LoadWAV_RW(). -55afc281f Add #define SDL_HAVE_BLIT_N_RGB565 to compile out RGB565 LUT -7df22cf2c A few #defines to reduce SDL2 footprint. Only applied when library is statically linked -25c88ea90 The Xbox One 0x01 initialization packet is an ack packet -9c3d1602a Refactored code so SDL_GetJoystickGameControllerType() is called less during controller detection -ff0680110 Added missing file from previous commit -43aa1fa9e Added support for detecting previously unknown Xbox 360 and Xbox One controllers using the HIDAPI driver with libusb and Android -27035425e There are multiple bindings for XBox One controller model 1708, depending on firmware revision -bde1a371d Added support for the NACON GC-400ES -0a7fe18fe On Mac OSX there are spurious hat events at program start, so skip these -4e682461c Reattach the kernel driver after closing USB controllers -005e2dff2 Android: prevents rare crashes when app goes to background or ends. -d52ba78b2 Fixed bug 4246 - Android: orientation between portrait<->landscape doesn't work -a8780c6a2 Updated copyright date for 2020 -572f4a850 Fixed bug 4929 - Software renderer produces bugs when optimizations are turned on with Visual C++ 2019 -c6817a2c1 Added support for the paddles on the Xbox One Elite Series 2 controller -4e1cc124d Improved Xbox One controller initialization -981e0d367 Fixed bug 4903 - Lack of color multiply with alpha (SDL_BLENDMODE_MOD + SDL_BLENDMODE_BLEND) blending mode for all renderers -669729a8a Improved Xbox One controller initialization sequence This sequence works across Microsoft, PowerA, PDP, and HORI controllers. The newer Microsoft XBox firmware requires synchronizing the rumble sequence number, when SDL sees it after the initial connect The Razer Wildcat controller requires waiting for init responses before continuing the initialization sequence. The PDP Battlefield 1 controller takes over a second to be ready for initialization, and if initialization is attempted before then, it will fail. -344860052 Added support for the HORI Fighting Commander -6705e27c9 Added D-PAD bindings for the Linux Steam Controller -cb800d1c2 Fixed compiler warning -7775f7ced Fixed deadlock in HIDAPI joystick system -3a796d6a5 Free the joystick player index when the joystick is removed -1d321850b Added support for claiming individiual interfaces on USB devices on Android This is needed for supporting multiple wireless Xbox 360 controllers -acbf25935 Emscripten: build fix for testoverlay2.c -3ce56f621 Fixed error formatting -d2cda502c Send the full Xbox One controller sequence for Microsoft controllers This switches Bluetooth controllers back into USB report mode for the latest Xbox One S and Xbox One Elite Series 2 firmware -196f69984 Fixed NEON detection on arm64 CPUs This probably breaks RISCOS, but we need a better fix from Cameron Cawley for this -c14a59d99 Worked around an issue where the kernel would lose the force feedback effect -e3cedf967 Add the destination format to the error when conversion isn't possible -d33b122f4 The Xbox One S Bluetooth controller with older firmware uses b16 as the guide button. The same controller with newer firmware uses b12 as the guide button. Map both buttons so both firmware revisions will work with the same mapping. -a7bf6af8c The Amlogic TVB-906X is Android TV -5d28c3154 Only initialize Xbox One controllers once they're ready for initialization (or if they are silent until init) This fixes the Hyperkin Duke Xbox One controller showing the Xbox startup animation every time an SDL application launches -47abe4e3b Fixed crash when unplugging a HIDAPI controller -f34795d05 Added support for the updated Hyperkin Duke Xbox One controller -a56aaea13 Fixed handling the 8BitDo M30 in Nintendo Switch mode -f4375e86f Added support for the 8BitDo M30 GamePad -78ce18f5c riscos: Add CPU feature detection -eb3d39bc8 Added support for the 8Bitdo FC30 Pro -598bcfc5f Fixed bug 4928 - CMakeLists.txt: put cmake package helpers in proper libdir -2b1edf411 X11_InitKeyboard: do not call XAutoRepeatOn unnecessarily Use XGetKeyboardControl to initialize the current XKeyboardState, and skip XAutoRepeatOn invocation if global_auto_repeat is AutoRepeatModeOn. -ed514cd0e have_mitshm: use XShmQueryExtension to check for MIT-SHM extension Do not try to guess MIT_SHM extension availability from the string returned by XDisplayName, use the appropriate API instead. -cdbeae521 wayland: support wl_data_device_manager version < 3 -d9c4be064 Added support for the Hyperkin Duke controller -41dad5d7f Fixed bug 4357 - iosbuild.sh broken with SDL 2.0.9 -4c9628a00 Fixed GameCube controller axis and trigger ranges and X and B button being swapped -58a11d30d Fixed bug 4920 - Wider support for seconds of battery life left on Linux platforms using sys interface -8b0660b25 Fixed bug 4918 - SDL failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows -98ce0e50b Removed unnecessary setlocale() on Mac https://github.com/signal11/hidapi/commit/240bad3b669ad4874c8aa2d68e18e82232d63e35 -a9482a1d6 Added support for the Nintendo GameCube adapter, tested on Steam Link hardware -9340cfa9a SDL_x11events.c (X11_DispatchEvent): remove FIXME and use SDL_strtokr(). -ef3ca2cc4 Fix build error in SDL_render_metal.m (bug #4916.) -6d639fce2 SDL_ScaleMode: fix compilation GLES renderer -131e13a77 direct3d11: Always set vertex buffers when updating them (thanks, Konrad!). -982f8a83e Fixed bug 4910 - Missing joystick-driver type check in haptic -f21e17276 Use IOHIDManagerRegisterDeviceRemovalCallback() to monitor for HID removal -dd5987e80 Fixed bug 4911 - Build broken when hidapi enabled -5e19e66c7 Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode -f0cee3ede Fix shutting down HIDAPI device with multiple joysticks Using Wii U GameCube USB adapter with multiple controllers attached and restarting SDL input in a game results in extra joysticks with NULL name. -d000a592a Fixed windows build -d004cc705 Android: same way as in nativePause(), resume events are sent from SDL thread -45a9b5fa2 Android: fix call of glFinish without context. -f3a547d00 Added support for the Hori Dragon Quest Slime Controller -868551b12 Fixed duplicate controller entries on Mac OS X when using libusb, due to the HID interface number not being available in the Mac OS X HID code. -46e1377d4 Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. Added the functions SDL_JoystickFromPlayerIndex(), SDL_JoystickSetPlayerIndex(), SDL_GameControllerFromPlayerIndex(), and SDL_GameControllerSetPlayerIndex() -f050309ee Android: fix IllegalStateException in onBackPressed() -9996d1bb7 fix xcode project file permissions -95d40e8a2 kmsdrm: Fix busy-loop within libc's dlopen() For some obscure reason, the order in which the libdrm/libgbm libraries are loaded matters. -6b7678720 Make sure the Xbox 360 driver doesn't try to talk to the wireless controllers -1db56619d Fixed rare infinite rumble in HIDAPI controller driver -25bd5070f Fixed GameCube rumble -202c966a4 Added support for the Nintendo GameCube Controller, using the Mayflash GameCube adapter. -2481ab934 Fixed compiler warning -c5024a182 Backed out debug code -20daf54fd Added new HIDAPI driver files to the Xcode projects -8d742d474 Added new HIDAPI driver files to the Visual Studio project -fead0b24e Added missing files from previous commits -e22e77dad Added an untested driver for the Nintendo GameCube adapter, based on code contributed by Ethan Lee -15d30298c Added support for wireless Xbox 360 controllers using the HIDAPI driver -e7f7e3f40 Refactored HIDAPI controller code to support dongles and hubs that dynamically attach controllers -5d5a56717 Fixed bug 4906 - Pressing Back button terminates app after SDL_StartTextInput -4237b1834 Fixed compiler warning -7b2826f6c Added Android support for the Hyperkin X91 and the SteelSeries Stratus Duo -52b6ab219 Added support for the SteelSeries Stratus Duo -bc430d405 Update for bug 4883 - Add approximation for display DPI on iOS -a7ae9175c Fixed bug 4898 - No rumble because of integer overflow in SDL_JoystickRumble -4d4e5584e Fixed binding D-pad on NES30 controller -9f8009f2e Added mappings for the Razer Serval on Windows and Mac OSX -cf9af481e Added support for the 8Bitdo NES30 GamePad in wired mode -c2b6d6f9e Enable the LED on PowerA Xbox One controllers -511df4a53 Added support for the BDA XB1 Spectra Pro -55f8eabfa Identified the BDA XB1 Classic Controller -0352814a8 Added general remapping of controller manufacturer -b51d7f35a Added support for the HORI PAD A -23c39a2e4 Strip trailing whitespace on controller manufacturer identification -cd515bd1b Fixed Xbox 360 Controller support using libusb on Linux -1ac7eabac Fixed comment typo -13e101516 Android: use SDL_arraysize() -210f6dda9 Android: use 'RegisterNatives' to export the native methods -a613fc7cc Added names for official Microsoft controllers, since they don't have descriptive product names -0f5291602 Added custom names for some controllers -e029fdbb3 Shorten "Performance Designed Products" to "PDP" -325a2efb3 Added support for the full line of PDP Xbox 360 and Xbox One controllers -8b50dcb21 Use the controller product string instead of hard-coding controller names -89401b21e Added support for the Razer Raion Fightpad for PS4 -a21f6b7a9 Add the manufacturer to the joystick name on Mac OS X, for consistency with other drivers -2a161e7ad Remove any duplicate manufacturer in the joystick name -3469481ef Don't include the manufacturer if it's already included in the product string -bb37a1ebf Fixed the name of the Razer RAION Fightpad -82d2c357c Fixed rumble after Xbox controller initialization When we initialize the controller it has an internal rumble sequence number, and if our rumble sequence number doesn't match that, rumble won't happen. To fix that we cycle through the range of sequence numbers, and at some point we'll match up with the controller's sequence number and it'll roll forward until it matches our next rumble sequence number. -3d34750ce The PowerA Mini controller blocks while writing feature reports, so don't try to use the HIDAPI driver for it on Linux -362650636 Added some missing Xbox controller names -140918bb6 Fixed bug 4883 - Add approximation for display DPI on iOS -54748a39b Fixed bug 4890 - Add hint for SDL that the graphics context is externally managed -135a90539 Fixed the Apple TV remote menu button on tvOS 13.2 (thanks Romain Tisserand) -7a51ad6a5 Fixed the game controller menu button on tvOS 13.2 (thanks Romain Tisserand) -597f11e56 cocoa: Patched to compile on older compilers. -8342fa7c7 Fixed controller mapping issues caused by PS3 gyro jitter -8ce894a31 Ignore axis jitter when mapping controllers -6d0016681 Get full axis range for PS3 controller triggers on Linux -ca2c8609e cocoa: SDL_GetDisplayDPI() should account for Retina displays. -b7576025e Fixed bug 4882 - Fix build for iOS when disabling OpenGL -e5af951ea Fix sending SDL_WINDOWEVENT_RESTORED after unminimizing windows on X11 -55eb76218 Use stat() to minimize input device opens when not using udev -7a3ae5903 Fixed bug 4877 - Add support for loading menus from a nib/xib instead of building a hardcoded minimum set -3da6a0b20 pulseaudio: don't let FlushCapture get stuck in an infinite loop on shutdown. -7b08eb481 direct3d11: Fixed incorrect texture coordinates (thanks, Martin!). -c8a2ef863 haiku: Disable pointer history -183929bd2 cmake: ${SDL_CMAKE_DEBUG_POSTFIX} needs to be wrapped in quotes. -b98808f63 Updated DPAD binding for 8Bitdo Zero controller -2fd3f756d Fixed trying to use the HIDAPI driver for the original Xbox One S Bluetooth controller -8aaf945b2 Fixed mapping controllers that have axes that start at -32768 and then snap to 0 at the first input report -a3a8fcef7 Added support for the 8Bitdo SN30 Pro, wired connection -4a7761388 Added the full Xbox One Elite Series 2 controller initialization sequence, to start input reports after switching out of Bluetooth mode. -d4e1c7972 Backed out changeset 36b79874a9c8, which fixed bug 4775 This change broke individual key events, so I'm reverting the change until we can investigate a better fix. -b8d65da45 Check for duplicates in the supported controller list -0b863f8a5 Sorted controller entries by type and VID/PID to more easily find entries in the list -84f8e53c8 Fixed detection of the Mad Catz FightPad Pro -98cc9cf20 Added support for the Google Stadia Controller -43cb7b3c5 Added support for the Hori Fighting Commander -a76e54747 Added support for the PowerA XB1 Fusion Fight Pad -0d0ec5fe5 CMakeLists.txt: sync DYLIB_CURRENT_VERSION to Xcode project -a5e6b87ce Added support for a variant of the PowerA FUSION Pro Controller -532164366 Use the same logic to get the config descriptor in hid_open() as in hid_enumerate() -f3d95396d Added some missing controller names -8243a3e80 Added support for the Hyperkin X91 -de6397cff Use SDL_hidapi.c instead of the platform specific hid.c implementations when libusb isn't available -494af7a6e Backed out change to dynamically load udev - it's already happening in SDL_hidapi.c -2713a1aae Moved the SteelSeries controllers into the "known controller" section -26d53fbb8 Updated identification for the SteelSeries Stratus Duo -308e7f2fe Linux hidapi code dynamically loads udev -359ae75bb Fixed DragonRise Generic USB PCB showing up as a PS3 controller -116bd7eb7 Added the Linux hidraw sources when libusb isn't available -8e153922e This packet didn't end up being needed to initialize input for the Xbox One Elite Series 2 controller -6fc388644 SDL_gamecontroller.h: remove comma at end of enumerator list -6dce9733d Use SDL_zeroa() appropriately -733f25252 Fixed build -13006ba9e Added support for the PDP Versus Fighting Pad -b5aff9d7c Added SDL_GameControllerTypeForIndex() and SDL_GameControllerGetType() to return the type of controller attached. -c0650aca2 Added support for the PDP Battlefield One controller -a132b183c Fixed the guide button on the NVIDIA Controller v01.04 -cc4f89052 Added support for the NVIDIA Controller v01.04 on Linux and Mac OS X -b8d325c83 fix xcode project file permissions -2a7b635b9 Added support for the NVIDIA Controller v01.04 on Android -51487a71b Added support for the MOGA XP5-A Plus -c8896e468 Turned on controllermap debug output by default -405a3c821 ran gendynapi.pl after newly added SDL_string.c functions. -f7df146d1 updated os/2 config file -8cdb4526d CMakeLists.txt: add several missing function checks for unix case. -d3232a82a configure: add back mistakenly removed strtok_r check, and regenerate. -650964461 Improved XInput VID/PID detection and added SDL_wcsstr() and SDL_wcsncmp() -eb8f14bb6 added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.) -ce8411c58 Fixed Xbox One Elite Series 2 showing up as 2 devices in Bluetooth mode on Windows -200d37dab SDL.c (SDL_ExitProcess): unconstify its param to match its declaration. -972a70d84 Added support for the Xbox One Elite Series 2 controller on Mac OSX -68d8fc5c7 Added support for the Xbox One Elite Series 2 controller in wired mode -2bfcf5cd9 Added Linux controller mapping for the Xbox One Elite Series 2 controller in Bluetooth mode -1e24a1514 Added names for some missing Xbox controllers -144956442 Added identifiers for the Xbox One Elite Series 2 controller -df728f859 Fixed unused function warning on Android -dd7fe0af0 Fixed bug 4814 - Missing scancodes on Linux -b1539c4c4 Fixed bug 4819 - Attempting to create an OpenGL ES context with unachievable MSAA parameters under X11 dooms the program -85aabec27 atomic: Support compiling on ARMv3 -20ddf45ed Added SDL_PIXELFORMAT_BGR444 -a9ac9e386 Don't try to use this driver with the Xbox One S in Bluetooth mode on Linux -9ca537302 Added support for the Xbox One S controller in Bluetooth mode on Linux -9d4c3f12c Fix missing prototype warning -2dab79bcc Fix crash when detecting SIMD -cf33f1f0e Added a utility function to simplify the hint handling logic -a63e93a19 Supported Android and Apple hardware has ARM SIMD capability -9a76bebfb SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS defaults to true, to match Steam's default behavior -8bd339802 configure: check for build dir when building version res (fix bug #4858) Fixes a race where we try to build version res file in build directory before it has even been created. Prevents errors like: -b44fe0f83 haiku: Rename BE_* entities to HAIKU_* In favor Bugzilla #2349. Update copyright years to 2019. -33ae5e5e9 haiku: mouse_relative fix -79510b756 haiku: mouse->ShowMouse method added -95a402d74 haiku: Add support for relative mouse mode. -bd648bd5a haiku: Add simple relative mode for mouse. -3b516e633 haiku: Fix crash when opening window. -50806eeea haiku: use addr_t instead of size_t for OpenGL dynamic loading. -55b5d8dce haiku: Invert mouse wheel values to match what SDL expects. -b22fb9e2b haiku: Implement message box for Haiku -a365c7f6f ran gendynapi.pl after SDL_HasARMSIMD() addition -b70222d05 Fixed a comment typo (thanks, Dominus!). -303646a69 Android: some readability: redundant casts, deads stores, redundant control flow -fea3c8bde SDL_qsort.c: sync comments with version 1.15 from mainstream -88ba6798e Wayland: touch events, use of memory after it is freed -86ae245bc Use correct enum: typo in org_kde_kwin_server_decoration_mode instead of org_kde_kwin_server_decoration_manager_mode -81cdd5000 Remove redundant 'SDL_GetErrBuf' declaration -9e509e4a4 SDL_render_gles2: remove ineffective widening cast warning: either cast from 'int' to 'size_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast] -ce308a784 revert this const parameter for X11 function -dab55a8d2 Readability: remove redundant cast -f16e51068 Fix const warning in RLE getpix functions -25d53a447 SDL_syspower.c: remove redundant expression -d4a67e254 Readability: change some pointer parameter to be pointer to const -3d100df36 Readability: remove const-qualifation from function declaration const-qualification of parameters only has an effect in function definitions -60d3965ec Readability: remove redundant return, continue, enum declaration -b458d7a28 Readability: remove redundant cast to the same type -56cbe1203 BlitAuto: remove redundant cast to the same type -735691ecd Remove nested redundant #ifndef -ff0d9245a SDL_syspower: remove dead store warning Value stored to 'str' during its initialization is never read -42153342a Use fill_function for FillRect SIMD/NEON (bug 4365) -bda618a2a iOS: remove some unused code, minor code style cleanup. -df49e2a57 iOS: replace a deprecated function call with a non-deprecated equivalent. -7289e5e21 Android: remove warning in blit_features "integer constant not in range of enumerated type 'enum blit_features'" -463bf5c2d Android: fix compilation error of SDL_cpuinfo.c on android-r13b (bug 4365) -c0255be45 x11: check if the X server honored our XMoveWindow() call (thanks, R.E. Rust!). -a963e36e2 macOS: more robust detection and switching of exclusive-fullscreen display modes (bug #4822). -a9b867ab0 macOS Fix potential memory leaks in the Metal renderer caught by clang's static analyzer. -1ce1364b2 d3d11: Don't fail if there's no vertex data to upload (thanks, Martin!). -6dffc5d46 cpuinfo: Remove incorrect #warning when building for non-ARM architectures. -b7df26037 cmake: added support for enabling the ARM SIMD/NEON code. -d5e9fcf16 configure: Regenerate configure script with the ARM SIMD/NEON changes. -070295490 configure: warn about MIT-licensed code if using ARM SIMD/NEON optimizations. -72f8044a4 ARM: NEON assembly optimization for SDL_FillRect -1187b013a ARM: NEON assembly optimization for function BlitARGBto565PixelAlpha -2dfe06056 ARM: NEON assembly optimization for function BlitRGBtoRGBPixelAlpha -a6bfdd103 ARM: Create configure option --enable-arm-neon to govern assembly optimizations -74846657e ARM: SIMD optimization for 4:4:4:4 to 8:8:8:8 normal blits -becc649ae ARM: assembly optimization for SDL_FillRect -7ac733f02 ARM: SIMD assembly optimization for BGR-to-RGB 32bpp normal blits -8425d9d5d SDL_blit: use a named enum for required hardware bits in dispatch tables -0eaa52ced ARM: SIMD assembly optimization for function BlitARGBto565PixelAlpha -57723b83e ARM: SIMD assembly optimization for function BlitRGBtoRGBPixelAlpha -6a6a05289 ARM: Create configure option --enable-arm-simd to govern assembly optimizations -59beaccd5 macOS: Expose high dpi-capable display modes on macOS 10.13+. -8081f1177 Fixed bug 2014 - Hardcoded srcA value in SDL_Blit_auto.c functions -59352cea8 Fixed bug 4775 - Japanese on Android, remove inputtype PASSWORD (Thanks Tamo!) -3a8b89942 Android: remove eglGetProcAdded busted comment (bug #4040) -0f871c033 Fixed bug 4843 - Passing NULL to memset in SDL_PrivateLoadButtonMapping (Thanks!) -ed469fa58 Fixed bug 4842 - Redundant condition in MS_ADPCM_Decode and IMA_ADPCM_Decode (Thanks!) -c9d0e2ae0 Fixed bug 4840 - Read of uninitialized memory in DXGI_LoadDLL (Thanks!) -d5d34de4d Fixed bug 4839 - Read of uninitialized memory in Win32_ResizeWindowShape (Thanks!) -758badffa Fixed bug 4841 - Misplaced parenthesis WIN_WindowProc / WM_ACTIVATE / ClipCursor (Thanks!) -b7ab3b398 Fixed bug 4838 - Use after free in SDL_JoystickUpdate (Thanks!) -3ac67cf45 Fixed bug 4837 - Use after free in SDL_SensorUpdate (Thanks!) -5025109f2 Fixed accidental whitespace -9da4bfc14 Added support for the Power A Nintendo Switch Enhanced Wireless Controller -f96da11f9 Reordered Power A Switch controllers so they're grouped together -9e7894efa Added support for the PowerA - Super Mario Controller -4a25a099a Fixed the location of controller_type.h in the Visual Studio project -7bf6c887c Fixed the location of controller_type.h in the Visual Studio project -9530ccba0 SDL_endian.h: Use endian.h for OpenBSD. -7c7801f16 Fix typo with __MIPSEB__ preprocessor check (bug #4836.) -9ececeeaa cpuinfo: Use a better default alignment value (thanks, Simon!). -cdc7181e6 Don't try to use the Xbox HID protocol with the NVIDIA Shield controllers -336a75491 remove warning prototype SDL_ExitProcess() -9c14c789a updated includes for _exit() -24bee6e5e Add internal function SDL_EGL_GetVersion() -b060b2ead Fixed whitespace -412ab7e1a Fixed bug 4829 - Sensor events incorrectly disabled -e5bd20030 Android: enable eglGetProcAddress (bug #4040, bug #4794) -03f27a3a7 Add robustness getting the EGL version (see bug #4040) -3ecce8474 egl: adjust how we load symbols in SDL_EGL_GetProcAddress. -4f304fd88 Added support for the BDA PS4 Fightpad -a1349d462 Build fix for the build fix -097b9c308 Better fix for iOS build -8984d25bf Fixed build on iOS -bf9092cf4 Removed unused variable -b3470f04b Added the hint SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to control whether Nintendo Switch controllers use their button labels or button positions for game controller button reporting. -e6ac16ef2 Added support for third party Nintendo Switch controllers that don't support the full protocol -43c5f62d4 Merged latest data from Steam -216f5b98a metal: Fix compilation when using older Apple SDKs (bug #4828). -6be83e614 emscripten: Patched to compile (thanks, Caleb!). -1b4de45d0 Fixed bug 4785 - SDL_CreateRGBSurface creates 1-bit surfaces with zero pitch -ed7483f82 x11: On macOS, look for X11 install in /opt/X11 instead of /usr/X11R6. -02a2ec986 video: Make sure SDL_FillRects()'s fill_function isn't used unitialized. -eb066a716 include: Removed a FIXME comment. -9f636be8c video: Removed unused variables. -e23067eab video: speed up SDL_FillRect[s] slightly (thanks, Jakub!). -e9c1e1269 test: Fixed wrong verbose flag check (thanks, watcom.hecht!). -16dee35cf windows: Remove /ARCH:SSE option from x64 Visual Studio builds. -aa0a6518a test: Fixed compiler warning on Visual Studio. -31ee4d3d8 Reduce delay to 1 ms in SDL_WaitEventTimeout() and SDL_WaitEvent() -526b9bdf1 Backed out changeset b0241180cdc5 Better commit incoming! -cd8652d8f events: SDL_WaitEvent()'s polling loop now sleeps 1ms instead of 10ms. -d5e378d19 cocoa: Implement SDL_WINDOW_ALWAYS_ON_TOP support (thanks, Gabriel!). -ec04110d8 dynapi: Deal with failure cases better, other fixes. -fe20c35be Fixed race condition when scaling Touch events, and changing the renderer target. Always read the output size of the main renderer. (similar to bug 2107) -074f6a512 macOS: Fix the initial window background not being black since macOS 10.14.2 or so, when OpenGL is used (bug #4810). Also fixes "CGContext: invalid context 0x0" errors when an OpenGL window is created (bug #4470). -009226c61 macOS: Fix non-highdpi OpenGL contexts not scaling properly in macOS 10.15 (bug 4810 and 4822). -72660a51d Fixed bug 4825 - SDL Renderer OpenGL: Buffer overflow (SDL_RENDERCMD_DRAW_LINES) -f8bdefe1b macOS: Fix asserts in SDL_Render's metal scissor code when the window is resized. -1773da89f macOS: Fix a new issue in 10.15 where the window decorations don't always get restored after SDL_SetWindowFullscreen(window, 0). -3b0dcaf47 Fixed bug 4797 - SDL fails to compile with Mesa Master (thanks Michael Olbrich!) -e5198bd29 Remove 'Enum' suffixes (bug 4813) -a0934a23f Fixed bug 4813 - Give enums their own name * SDL_PIXELTYPE_ * SDL_BITMAPORDER_ * SDL_PACKEDORDER_ * SDL_ARRAYORDER_ * SDL_PACKEDLAYOUT_ * SDLK_ * SDL_LOG_CATEGORY_ -97901b9f9 Fixed bug 4820 - SDL assumes RW_SEEK_SET == SEEK_SET -a747106c9 linux: If D-Bus isn't available on the system, don't keep trying to load it. -cf092eca9 mouse: Save initial position yet even if xrel and yrel are 0. -b38a5ba06 dynapi: Make gendynapi.pl work on older Perl releases. -c61ca915f WinRT: fix a link-time error when building UWP + x64 -3b3dbb5ad Removed unused volume check interval -ffc7d0919 endpointvolume.h checks not needed since changeset 13078:8ab094a9df6b . -7d47f526a SDL_LockTextureToSurface: robustness of locked region compared to texture size -a664e95d6 dynapi: move new SDL_LockTextureToSurface addition to the end of file. -1ae61f100 Added a helper function SDL_LockTextureToSurface() Similar to SDL_LockTexture(), except the locked area is exposed as a SDL surface. -f46ac1e9f macOS: Fix SDL_metal.h not being copied to the framework's Headers folder when SDL.framework is built using Xcode. -191fe25b1 Fixed rtkit feature guard -84dc44e24 Fix the RealtimeKit dbus include guards -4001e6b35 stdlib: Patched to compile. -987aa3113 stdlib: Try to coerce VS2019 to not replace some loops with memset() calls. -aef1ed4ac audio: Set (something close to) the correct silence value for U16 audio. -693755f0b coreaudio: Apple doesn't support U16 data, so convert in that case. -ee6d504ae offscreen: Define missing define on a older EGL for an EXT function which it wont have -8a41948e7 offscreen: Avoid using EGLDeviceEXT as it causes issues with older platforms, which is just a void* -68985371a offscreen: Add new video driver backend Offscreen -3d55a5148 CMake: tabs to spaces in new parts of README-cmake.md -00bc7f6b9 CMake: document iOS/tvOS support in README-cmake.md -6398abe58 CMake: bug-fix for tvOS support -4e518f98a CMake: add version strings to Apple Info.plist files -ec65a34b8 CMake: tvOS support/fixes -b13c951cc CMake: iOS support added -abd1dd661 Add Hygon Dhyana processor support -a74d33b79 SDL_messagebox.h: remove comma at end of enumerator list -213de4888 update version number in Makefile.os2 too -3fe2d8368 Updated SDL development builds to version 2.0.11 -cbde0ffa3 The PS4 is ignoring the volume values in the report, so we don't need to fill them in. -3efea5ea2 Don't have Windows headers define min/max, in case they're defined by application code -79e388bfd Fixed bug 4798 - PNG w/transparency breaks in SDL 2.0.10 but works in SDL 2.0.9 -32bb8b4b4 test: replace some exit()s with returns. -791df27a3 Fixed compiler warning on Android -715e070d2 SDL_blit_N.c: Correct vec_perm() application on little-endian 64-bit PowerPC -2d37d2918 KMSDRM_GLES_SwapWindow: fix non-vsync case If KMSDRM_drmModeSetCrtc is called when the swap interval is set to 0, the driver behaves as though vertical sync is engaged by limiting framerate to the refresh rate, but performance is much worse than with vertical sync enabled. -aaec90e5c Fixed bug 4789 - Linux accelerometers no longer available as joysticks -8a394209c SDL_windowsevents.c: remove isVistaOrNewer (not used since 8cb1dc50bb28) -51df932ef fix permissions -bf2f4703f SDL_windowsmessagebox.c: remove unused variable -1b5e3c19a SDL_bmp.c: remove unused variable warnings -e5580e18b x11: add a hint to force the VisualID used when creating a window. -f49c07b5c stdinc: On macOS and iOS, use memset_pattern4() for SDL_memset4(). -892c8d505 Fixed bug 4536 - Heap-Buffer Overflow in SDL_GetRGB pertaining to SDL_pixels.c -b21338eb5 SDL_bmp.c: restore most of the original formatting. -847bd8d98 direct3d: Be more aggressive about resetting state when textures go away. -a3804ba1d d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!). -6c295129b LoadBMP: fix some warnings -830979c55 LoadBMP: use code from SDL_image which allows loading compressed BMP files -cc64b369f Allow mouse messages from Wacom pens, e.g. right click pen buttons, etc. -afb9ff950 Fixed bug where the Steam overlay would generate an event and stop input processing for the frame. -9c8e403f6 use 'U' suffix on constants instead of (unsigned int) cast. -d52080c0a Android: minor warning -70dc8d164 Android: fix corresponding warnings -6794ec667 Android: add more warning flags -0a9c74aa9 Fixed bug 3918 - HIDAPI, CMake support for android project -13c4d5e7e Fixed Windows relative mouse coordinates when capturing the mouse over RDP -0c2637384 gl/gles/gles2 render: fix SDL_RenderClear being affected by the clip rect in some situations. -ce3b16fc9 Fixed bug 4475 - add Gasia Co. Ltd PS(R) Gamepad support -1e47790c8 RPI_FreeCursor: set global_cursor to NULL to prevent double-free (bug 4769) -2cb26188e Fixed bug 1663 - SDL_EventState(SDL_DOLLARGESTURE,SDL_IGNORE) etc. has no effect -7d6f7e8d3 fix permissions -455944c87 Fixed whitespace -b521df66c [SDL][IOS] Audio fix - applies stream to sound data when resampling or reformatting is required. -5c15e81cf Prevent the SPEEDLINK COMPETITION PRO joystick from switching into Android controller mode when enumerated over HID on Windows 10. -dd29abb47 macOS: Use the proper type (NSSize instead of CGSize) for the bounds of metal views. -2937317f1 Fixed bug 4172 - remove logging Gesture error "NumPoints = 0" - not necessary when app isn't recording gesture. - happen when gesture path has less than 2 different points -05f35c242 Fix audio conversion U16_to_F32_SSE2 (bug 4186) -1d220401c Fixed bug 4186 - ARM/NEON audio converters cause strange clicking noises reverse the order when storing ouput buffer -c0fc94f2d Fixed bug 4186 - ARM/NEON audio converters cause strange clicking noises reverse the order when storing ouput buffer -bfdb0e974 metal renderer: optimize SDL_RenderFillRect slightly. -ff7888e69 render: fix colors not being set properly after the previous change -1be03b408 render: avoid a couple redundant memcmp calls in all drawing functions. Improves performance slightly. -e8278d0d5 metal renderer: use vertex attributes instead of indexing into a buffer with the vertex id in the shader. Allows for more flexibility with vertex setup in the future. -55a46abf0 metal renderer: more closely match buffer data alignment requirements from the metal specification. -69c6924cc render: simplify vertex and uniform data allocation. Improves performance of various SDL_Render functions (bug #4764). -e5acccc7c metal renderer: use the device address space instead of the constant address space for colors. -3fb5cabe5 metal: Update compiled shaders based on compilation script changes -9e57e3e59 metal: Update shader compilation script with fixes for newer xcode versions and for running on older platforms -79cd6cfc9 iOS: Fix issues with Split VIew on iPad (bugs #4586, #4705). -7f9016f26 Android: remove tabs/indent -412775f5a Android: SDL_image/SDL_mixer/SDL_ttf partially compiling with CMake (bug 3918) -7a84dd427 Disable HIDAPI by default, as it breaks on Linux when trying to use libusb with non-root permissions on some distributions -155087d10 Fixed bug 3918 - CMake support for android project -7f5fc74c5 fix permissions -cbdee4d65 [ SDL ] Fix compile error building for Windows/ARM64 on Visual Studio 2017 Win10 SDK 10.0.18362.0 which requires ar,74intr.h/arm64_neon.h header instead of armintr.h/arm_neon.h for intrinsics. -c76f0f5b6 hidapi: Explicitly include locale.h, for setlocale -2a1adf71a Fixed bug 4747 - [Patch] SDL_ShowMessageBox ignores BUTTON_RETURNKEY_DEFAULT flag -e9ec7d41b Fixed bug 4354 - CMake builds do not correctly enable IME on Linux -afdb40af6 Fixed bug 4689 - SDL fails to detect compositor shutdown on Wayland -- program keeps running -aa09e6122 Port libusb hid.c to SDL, add to MinGW configure -aebaa316c Add public APIs for creating a Metal view attached to an SDL window. Add SDL_metal.h. -f3683d3a0 macOS: fix a typo in touch handling code. -109cbd6e8 Fix touch-related compile errors on Linux. -6f8910e39 minor warning fixes. -2fb71ac52 Implement touch window IDs on x11/xinput2. -42e4219c1 fix permissions -edc158894 remove test/aclocal.m4 -67fa8601d Fixed building on Mac OS X without libusb -e92fe23c8 Fix nullptr crash on android -63197c433 Fix bug where the wrong button was the default in the old message box because buttons were added backwards, breaking the indexing used by GetButtonIndex. -d52ffcf98 Added support for a few controllers on Android -d5ec735a3 Add a windowID field to SDL_TouchFingerEvent (bug #4331). -59ea0735f configury: allow libusb-less hidapi for macosx. -c37c6cbbc use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer -f7d82e561 hidapi: Add SDL_hidapi.c, allows support for multiple hidapi backends. -c10a87429 Make sure HIDAPI is initialized whenever we call HIDAPI_IsDevicePresent() -c172f36bf joystick: Ensure HIDAPI is initialized before calling it -e149f4c4b cmake: Fix locating libusb header at configure-time -1b7fc81e3 minor whitespace tidy-up. -f8400cbba Fixed bug 4692 - Command line parsing -4953e050f use SDL_zeroa at more places where the argument is an array. -7a47c292c Fix bug 4746 - introduce SDL_zeroa macro. -f96d7cc0f minor build fix. -fdc67c3c6 MS_ADPCM_Decode: fix assigning an array to a pointer (lose '&'). -2ea0ec620 better readability.. -5f04ed5fb SDL_iconv_string: add (char*) casts before SDL_malloc() calls. -ceee7def8 minor build fixes. -97fefd050 Fixed bug 4538 - validate image size when loading BMP files -738dff4bb hidapi: Update repository URLs -a54336100 Fixed bug 4742 - SDL 2.0.10 DMG has duplicated files (instead of symlinks) -31cb854f9 Fixed bug 4745 - 2.0.10 fails to build against macOS 10.11 SDK -18bcafffc Fixed bug 4739 - Android: loading native libs, generated by bundletool (Thanks akk0rd87) -39e8b007a macOS: fix atomics using deprecated functions instead of compiler intrinsics, when SDL is built with the Xcode project. -dc714389f Don't call hid_enumerate() if the HIDAPI drivers are all disabled -aaffbb2ef Added tag release-2.0.10 for changeset 969a6f84b061 -0e9560aea (tag: release-2.0.10) hidapi: Zero out new hid_device_info structs -bf9bf602e Copypaste SDL_NSLog to UIKit backend, document it as such -e954e32b0 Fixed bug 4726 - Fix for tvOS GetPrefPath -52e62329c Fixed build error -a06d8cd0d Merged latest changes from Steam into controller_type.h -1dc24160a Add linked list of opened HID devices to prevent accessing already freed devices in device removal callback that is sometimes called even after being unregistered -89de2512e Added support for the Victrix Pro Fight Stick for PS4 -a4bfe2a4a Allow hotplugging joysticks without udev -e7c2cf107 Fixed bug 4704 - SDL_HINT_ANDROID_SEPERATE_MOUSE_AND_TOUCH on Windows? -064d1223f Fixed bug 4723 - Generic Xbox pad controller bindings seem odd/broken -6a7161dce Blacklist Corsair device causing hang -8fb8adfc9 macOS: Fix SDL_GL_CreateContext/MakeCurrent on non-main threads causing a Main Thread Checker warning when built with Xcode 11 / the macOS 10.15 SDK. -73536d93e ios: Fixed MFi guide button not being detected (thanks, Caleb!). -70f0b093f cmake: Add setupapi library to Windows build dependencies (hidapi needs it). -27ad8e5d7 cocoa: Set keyboard mod state correctly when turning off capslock. -86965eecd x11: prevent a synthetic mouse event when using a touchscreen -6ef01e523 x11: set some modality things on message boxes with parent windows. -662520351 SDL_Mouse/Touch: discard synthetic events when hints are not set. Those are generated/flagged by platform layer. -d550867ae fix permissions -66d4d8e25 cmake: Added HIDAPI support. -4df22d812 configure: Windows and macOS now respect --enable-hidapi. -7e09718df Ignore synthetic mouse events generated for touchscreens -e841b066f cocoa: Another attempt at mouse vs touch support. -680e7937e Fixed bug 4710 - audio/alsa: avoid configuring hardware parameters with only a single period -67bb882e1 Fixed bug 4707 - SDL_SetRelativeMouseMode fails on Vivante -f994da0ef Fixed bug 4702 - Android back button does not send SDL_KEYDOWN event fallback when event.getSource() is SOURCE_UNKNOWN -3fc447dfc Fixed bug 4708 - testdropfile: double-free -b46c77199 raspberry: Actually commit the whole patch. :) (Thanks, Joe!) -d2d06f444 cocoa: Don't report trackpad mouse events as synthesized touches. -d2058b45a raspberry: Fixed missing mouse cursor (thanks, Joe!) -d5ebbcb4e dbus: Don't SimulateUserActivity if we're already inhibiting the screensaver. -94658099e dbus: Add org.freedesktop.ScreenSaver.SimulateUserActivity support. -027887da1 iOS: Fix the window size not being set properly when Split View is used on an iPad (bug #4586). -972bdfb47 Made it more explicit that 2.0.10 and newer are required for the SDL_RW* functions -60606dfb3 Documented that the SDL_RW* macros no longer exist, and you can't use an older SDL library if you build with SDL 2.0.10. -959cfc428 Fixed memory barrier macro check so it isn't quite so fragile -a8bea8581 Limit the compile error to the case where we actually define the memory barrier macro as the function -cc47810d3 Fixed bug 4683 - SDL_atomic infinite recursion on armv6/armv5 w/ thumb -797d2c595 Fixed bug 4436 - [OpenBSD] fix D-pad -22a2decf6 Android: concurrency issues, make sure Activity is in running State when calling functions like SDL_CreateWindow, SDL_CreateRenderer, Android_GLES_CreateContext -cfed0b773 Add an "error" label in SDL_CreateRenderer (no op) -aa45af7fc Android: explicitly expand Android_GLES_MakeCurrent/Android_GLES_CreateContext from SDL_egl_c.h -57e08c27e cocoa: Check for capslock in -[NSResponder flagsChanged], not with IOKit. -0beadea57 windows: Call GetWindowText() with the correct parameters (thanks, Zebediah!) -282b2b939 define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. fixes Visual Studio builds. -83a713f1a update version in os/2 makefile -bcb357d45 fix permissions -ccba8d469 Android: export Lock/Unlock activity API -7f78d0f0d Fixed bug 4684 - GLES1 variables missing under Android with CMake -31bb95f11 direct3d: Use D3DPOOL_DEFAULT for vertex buffers after all, release correctly. -51555a85c Enable Raspberry Pi video by default -e681623cb direct3d: Fix dirty textures failing to update -f3226457e Fixed bug 4672 - Warnings in SDL_LogEvent() -be6cda9f9 Rolling back GameCube HIDAPI support It causes the HIDAPI devices to always be opened on enumeration, which causes crashes in the Windows drivers when multiple applications are reading and writing at the same time. We can revisit this after 2.0.10 release. -56e2b9a4e Handle GameCube WaveBird controller differences Make wireless GameCube controllers use unknown power level instead of wired and don't allow rumble (it doesn't have hardware for it). -6f63c1c37 Make GameCube controllers only rumble if both USB cables are connected The Nintendo USB GameCube Adapter has two USB connectors. Black for data and grey for additional power for rumble. The Wii U and other software require both cables to use rumble. The rumble is weaker without the second USB cable. Other than that I don't know if there is any negative side affects from using rumble with only one cable. -b23cce282 Fix GameCube controller power level being reset to unknown HIDAPI_DriverGameCube_OpenJoystick() set power level to wired and then it was set to unknown in SDL_JoystickOpen(). -bd9529007 Use SDL C runtime functions -faed7f836 KMSDRM: fix inverted strcmp, remove useless if test (Bug 4624) -5998c5132 KMSDRM: fix compilation on linux, no d_namlen (Bug 4624) -d0fa93d63 wayland: Fixed C99-style variable declaration inside for-loop. -667c872b4 Fixed building DMG archive on Mac OS X -7162649f7 opengl: Be more robust in failing cases. -8ab907baa Only warp the mouse to set focus if we're definitely going into relative mode -14e8b93e3 Fixed compiler warning -99abcbb2b Fixed bug 4624 - KMS/DRM fails on FreeBSD because /dev/dri/card* nodes are symlinks -d3bedda4d cocoa: Patched to compile and also handle possible malloc failure. -3e720d2a8 Fixed potential double-free in mouse cleanup code -5dcac4ccd Fixed 4669 - Using the software SDL_Renderer on Android leads to GL errors & black screen when window resizes -e96d4760a Android: resize with software rendering, reverted again (Bug 4669) -12b92260c Android: try to fix resize with software rendering (bug 4669) -8a20d40d9 Android: revert commit SW_GetOutputSize, again (Bug 4669) -63506ae19 Added a patch note about batched rendering -e89789bb4 Added patch notes for 2.0.10 -eb71cd800 Make sure we haven't changed the size of the SDL_Event structure and broken binary compatibility. -5418d4162 Android: prevent ignoring surfaceChanged() in MultiWindow -98cc7589b Android: prevent using SW_GetOutputSize with software renderer (Bug 4669) -a55c0e147 Android: revert previous commit (Bug 4669) (Refs #1) -f2157b6c2 Fixed bug 4669: Android software renderer, black screen when window resizes -6c4765a17 Removed extraneous fprintf() call -67c67f3a6 Updated version to 2.0.10 -93a5e4ce0 Fixed bug 4667 - Build errors on Linux when building without Threads support -9306ef9b1 Fix synthetically generated mouse events getting lost forever after the device orientation changes (or the window is otherwise resized) while a finger is touching the screen. -f4625f52f iOS: remove some code which could affect the state of UIViews that aren't owned by SDL. -fffa791fc assert: Another attempt to quiet compiler warnings. -59e510b0b assert: Possibly fixing compiler warning on Android. -ed8b78d36 cocoa: ignore compiler warnings about OpenGL being deprecated. -90e2dc989 A few minor changes to placate static analysis. -4eb3c0c38 Added support for Xbox and PS4 wireless controllers on iOS and tvOS Also implemented SDL_JoystickGetDevicePlayerIndex() on iOS and tvOS, and added support for reading the new menu button state available in iOS and tvOS 13. -1213fe79d Worked around "Undefined symbol: ___isPlatformVersionAtLeast()" link error on Xcode 11 beta -289d10924 audio: Attempt to fix build on ARM versions of Visual Studio. -33b235f4c audio: Fix ARM NEON audio converter bugs. -5c56c8882 audio: patched to compile. -5bd9b8b16 Check src alignment for S32_to_F32 conversions -d9a2eff26 cocoa: Another attempt at synthesized mouse/touch events. -294574647 cocoa: Revised synthesized mouse/touch event strategy. -50f512319 macOS: Fix the coordinate space of SDL_GetDisplayUsableBounds (thanks Tim!) -74e86a51d iOS: Remove didAddSubview override in NSWindow, its code breaks things which rely on focus changing within SDL's UIWindow (bug #4659). -2fa33d6f9 wave: Fixed static analysis warning about dead assignment. -32ead2cb4 vulkan: Fixed use-after-free bug. -b530d75af assert: Fixed some compiler warnings. -747df96eb Better patch to make it more clear what's going on -3fbaa5da0 The hat index passed to the application should be zero-based with no holes -a1a2f9b9f Fixed bug 4486 - Segfault when pressing a trigger on the Steam Controller (Linux) -d01150abc Fixed bug 4665 - Add support for single touch evdev devices -797b28133 wayland: HiDPI support -09142eb71 fix permissions -cd011bb1e SDL_Wave: missing field 'length' initializer -f5a347853 assert: mark SDL_ExitProcess as SDL_NORETURN again. -04b50f6c6 cocoa: Backed out CVDisplayLink code for macOS vsync. -39733dc6b Fixed bug 4615 - RPM Build fails due to unpackaged files -69d27a69c Fixed bug 4570 - Support Vulkan Portability rather than MoltenVK specifically -3e9bf2841 software: Fixed compiler warning and dos2unix'd the endlines. -04fedce0e software: Correctly track viewport and cliprect. -a2f2b7355 direct3d: Use D3DPOOL_MANAGED for vertex buffers. -aa80d279d Fix build with the 10.10 SDK -f7b7a9727 direct3d: Fixed SDL_RenderSetClipRect usage. -4f59d372f direct3d: don't dereference bogus pointer if current texture was destroyed. -4392c6ff1 Android: fix coordinates for Surface.ROTATION_180 https://discourse.libsdl.org/t/android-screen-orientation-issues-2-0-9/26262 -45a3dd171 Android: revert wrong fix typo calling onBackPressed() (Bug 4657) -f71454c0a testoverlay2: Changed some C runtime calls to be SDL equivalents. -a6af0b829 direct3d: Fixed more compiler warnings on Visual Studio 64-bit builds. -5fb20b309 video: fixed compiler warning on Visual Studio. -254eb6777 windows: Don't let Visual Studio insert an implicit dependency on memset(). -399df540e windows: Drop WM_ACTIVATE when window is hidden, but only if being activated. -f9a9193e2 Android: add MinimizeWindow function (Bug 4580, 4657) shouldMinimizeOnFocusLoss is un-activated (return false) -3f4e189b2 Android: fix typo calling onBackPressed() (Bug 4657) -1e8d9e01d Add mapping for Chinese-made Xbox Controller -d8da33c03 Fixed bug 4662 - SDL failed to build due to error LNK2019: unresolved external symbol _memset referenced in function _IMA_ADPCM_Decode with MSVC on Windows -9891c31ba Fixed bug 4641 - clang and clang-cl builds on windows create -Wpragma-pack warnings -781692c03 cocoa: report proper input IDs for mouse/touch events. -e43550c03 Fixed bug 4658 - iOS 12 fullscreen flag and SDL_HINT_IOS_HIDE_HOME_INDICATOR not working -225ae6909 Add notes for SDL_WinRTRunApp and SDL2-WinRTResources for non-C++ projects -762b788f6 Cleanup on bug 3894 - Fuzzing crashes for SDL_LoadWAV -b5e9ebbaf Fixed compiler warning warning C4018: '<' : signed/unsigned mismatch -a21b5b301 Fixed build -990e166a3 Fixed bug 3894 - Fuzzing crashes for SDL_LoadWAV -48ac92af5 Fixed bug 4041 - Android, SDL_Renderer OpenGLES 1 is loading GLESv2 library -1b73d578f Temporary fix for bug 4254 - a _lot_ of strict aliasing warnings -31765242d Fixed bug 4294 - Audio: perform more validation on conversion request -3f19a6d5e CVE-2019-7578: Fix a buffer overread in InitIMA_ADPCM If IMA ADPCM format chunk was too short, InitIMA_ADPCM() parsing it could read past the end of chunk data. This patch fixes it. -316ff3847 Fixed bug 4526 - replace SDL_RW* macros with functions for using in bindings -2b6473dc0 Fixed bug 4533 - Update ANGLE to load d3dcompiler_47.dll instead of d3dcompiler_46.dll -0442d19fc cocoa: Fix assert to use SDL_assert -a73dacbf6 Backed out Ben's chinese Xbox controller patch, as the generic catch-all for Xbox controllers should handle it. -f3c6b1f51 Add mapping for Chinese-made Xbox Controller -8728ce444 Fixed bug 4557 - SDL_SIMDAlloc and *Free should be in the public interface -56b7f4cf3 Fixed bug 4583 - PollAllValues appears to use an incorrect index for all axes above 0x18 -59483c644 Fixed bug 4593 - Respect CMake's BUILD_SHARED_LIBS default behavior -68bb8d6c1 Fixed bug 4594 - Fix install location of CMake targets on Apple platforms -d97387ccf Fixed bug 4600 - Dualshock 4 touchpad press is not detectable with SDL_JoystickGetButton -30a5e90ba Fixed bug 4603 - The iOS Test Xcode project file needs to add the metal framework -8a37848de Fixed bug 4605 - WASAPI_WaitDevice hang -82af42761 hidapi: Use GameCube adapter controller port for player index The Nintendo USB GameCube adapter has four controller ports. Return the port number as 0 to 3 from SDL_JoystickGetPlayerIndex() and SDL_JoystickGetDevicePlayerIndex(). -e7b514d8f riscos: Fix iconv warnings -15bae953b Fixed bug 4642 - Rework SDL_netbsdaudio to improve performance -f2c8d8e9c Fixed bug 4443 - Incorrect scan code reported for numpad 5 -5cb14f446 Ignore Xbox One S gamepads with older firmware in HIDAPI -b1100ec18 Fixed Android build warning -03cf24162 OpenSL ES audio cleanup and added a note with low latency audio discussion -166d15fd7 Fixed surround sound channel setup for Android OpenSL ES audio driver -23a2b4779 Protect against NULL device in the Android hidapi implementation -9261e473d Potential fix for a crash we're seeing on Android that should in theory never happen. -20ec86648 Added support for the Rotor Riot gamepad, and upcoming Xbox and PS4 controller support on iOS and tvOS Patch contributed by Nat Brown -6c0b304c9 Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux -23569362d Use SDL sized types -3e3294645 Fixed bug 4656 - SDL_evdev.c uses Linux specific integer types -723d01433 Fixed bug 4171 - SDL_GetQueuedAudioSize is broken with WASAPI -b5d3b6fc2 test: unify all the command line usage logging. -9b5811592 iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629. -dce56ab9f Added a function to get the current Android SDK version at runtime -f3e76ea1d Use the OpenSL ES audio driver by default on Android, as it has the lowest latency. -02f9667a0 Fixed static and buzzing when trying to use floating point audio on the OpenSL ES audio driver. -e401b9502 Return an error if both mouse relative mode and mouse warping are unavailable, instead of asserting. -8b57331e7 Fixed hiding the Android virtual keyboard when the return key is pressed -f91b87859 Android: minimum size for IME, so that it takes focus -7ec514d48 Improved iOS Bluetooth keyboard support * Don't stop text input after the return key is pressed * Handle arrow and escape keys -50aab1987 Fixed bug 4639 - CMake build does not generate libhidapi.so for Android -9b2202828 Fix use-after-free when pumping the event loop after SDL_DestroyWindow() -a4e33b9cc Added support for Bluetooth keyboards on iOS In this case the keyboard is shown and immediately hidden, but we still want to accept text input -582a3c994 Fixed mouse focus for touch events on iOS -4bd808346 vulkan: Swapped out a free() that should have been an SDL_free(). -ebbb295e8 vulkan: Patched to compile on Visual Studio. -d778b26dd Patched to compile in C89 mode. -5f3416203 Fixed bug 4474 - Add support for an ASUS Gamepad variation -41c718db8 Fixed bug 4469 - make SDL_CreateTextureFromSurface pick a more appropriate format -c377de544 Fixed bug 4436 - [OpenBSD] fix D-pad -510b01f5f Fix WORKING_DIR parameter -ee0a482a8 Fixed bug 4401 - SDL_GetWindowPosition() wrong after SDL_SetWindowPosition() until window is moved on macOS -2ee9b1ddc Fixed bug 4025 - SDL_Renderer OpenGL : add support for textures ABGR, RGB, BGR -8dea23c70 Fixed bug 3911 - SYSWM generic X11 events missing event data -29f344531 video: Add Vulkan support for vivante fb Vivante drivers use the VK_KHR_display extension for rendering directly to the frame buffer. This patch adds support to the video driver for Vulkan rendering using that method. -00e5eeb40 test: added SDLTest_CommonDefaultArgs() -18d83093a test: configure/make shouldn't build GL/GLES1/GLES2 programs if unsupported. -62a579708 Windows are not in a minimized state when they are shown This fixes https://github.com/ValveSoftware/steam-for-linux/issues/4313 "Exiting game a in Steam Big Picture Mode gets semi-windowed BPM" -abcfe8048 [SDL] iOS fix bug with audio interrupted by a phone call not restoring. -59da5b720 [SDL] ios Touch Fix. -ba0fc92de Patched to compile. -6eb052113 Emscripten: Use EMSCRIPTEN_EVENT_TARGET_* -4e5b5cba1 Emscripten: Switch from canvas[XY] to target[XY] Allows mouse/touch events to work on non-default canvases -60c48ed78 Emscripten: Store canvas id in WindowData Also replace all hardcoded uses of "#canvas" or NULL -f0a4fea89 Fixed bug 4608 - Android: not getting SDL_WINDOWEVENT_FOCUS_GAINED on start of our app -1a38853e0 Fixed bug 4566 - Hot-plugging Bluetooth controller causes force-quit on Android -53a6196b3 Don't redefine __SSE__ and related macros if they're already defined -f5252530d Change my previous fix based on feedback from dev @saml -624f8ca80 Created Xcode schemes for building on iOS and tvOS -ecce803d5 Fix compile errors I hit when building org.libsdl in source2 (part 2 of 2) @saml -45b5453b1 Fix compile errors I hit when building org.libsdl in source2 (part 1 of 2) -f79190f40 Use _Exit() when available -46af90d8c Add a configure option allowing users to choose whether to install sdl2-config -2c92c8e85 Android: add static variable initialization in non blocking event loop -cb18117c9 Added a helper function to tell whether or not a window can be minimized -f1b57f378 Only leave fullscreen mode if we're actually going to minimize -9950271bb Fixed bug 4580 - Android 8: immersive fullscreen notification causes flickering between fullscreen and non-fullscreen and app is unresponsive -2f6c988e7 configure: Cleaned up audio/video summaries when building for Windows. -90b08881a iOS: Remove code trying to support compilation on the iOS 7 SDK, the deployment target has been set to iOS 8 for years and there's other unconditionally compiled code that depends on newer SDKs so that code is useless. -9d7b26155 macOS: Fix compilation when using the 10.9 SDK or older. -cf87d5764 Explicitly load hidapi as a dependency of the SDL library This fixes loading on Android 4.2 -f07c992bb hidapi: Add GCN L/R buttons, just in case someone wants them... -bd344c228 Android: when event loop is not blocking in pause, backup EGL context (Bug 4578) Backup the EGL context when SDL_APP_DIDENTERBACKGROUND has been removed from the event queue. -00c824a8b Fix disabling OpenGL vsync on macOS 10.14.4+ (bug #4575). -aae49015d Fixed bug 4581 - generate synthetic mouse events at window boundaries when real touch events are actually outside the window. -cfefe5434 Fixed bug 4581 - mouse events with SDL_TOUCH_MOUSEID make window lost focus Virtual mouse events should never leave the window or change focus for single window applications. -d68e501db Fixed bug 4582 - Maximize/Resize not working on Windows 10 When viewport is set, projectionAndView changes, but ID3D11DeviceContext_UpdateSubresource was not called. -eb7affeeb SDL_HINT_MOUSE_TOUCH_EVENTS: move tracking appart in case of 'window' is null -a1a9fd50c Bug 4581: move tracking appart so it doesn't require the window to have focus -a46af76b0 Fixed bug 4579 - SDL_android.c s_active not being atomic -9eac91dd2 Set SDL_HINT_MOUSE_TOUCH_EVENTS for iPhone and iPad as well -b6f33a687 https://bugzilla.libsdl.org/show_bug.cgi?id=4577 -05333a6e9 Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE to set whether the event loop will block itself when the app is paused. -b470cd9b0 Android: default SDL_HINT_MOUSE_TOUCH_EVENTS to 1 as previous behaviour -6f732d4ee Update WhatsNew.txt -458c60e6a Update WhatsNew.txt -bfdd0b228 Android: remove SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH java layer runs as if separate mouse and touch was 1, Use SDL_HINT_MOUSE_TOUCH_EVENTS and SDL_HINT_TOUCH_MOUSE_EVENTS for generating synthetic touch/mouse events -e41576188 Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch events -ab03892dd Bug 4576: track both FingerId and TrackId -e39c0a1f7 Bug 4576: fix wrong scaling -236b86067 Bug 4576: one more warning -b45abbb2a Bug 4576: fix warning and compile -9b3c2258a Bug 4576: remove touch/mouse duplication for Android -9d28156f1 Bug 4576: remove touch/mouse duplication for IOS -42de5f97c Bug 4576: remove touch/mouse duplication for WinRT -b086edc91 Bug 4576: remove touch/mouse duplication for Emscripten -b8e5c561d Bug 4576: remove touch/mouse duplication for Wayland -6bc2d9de1 Bug 4576: remove touch/mouse duplication for linux/EVDEV -1a4c3b57b Bug 4576: remove touch/mouse duplication for Windows -a3f2c446e Bug 4576: handle mapping of TouchEvents to MouseEvents at higher level -1febfedf8 configure.in: Rename configure.ac to fix an 'aclocal' warning -14b385f2b docs: Replace references to configure.in with configure.ac -af4bbb306 configure.in: Rename to configure.ac to fix an 'aclocal' warning -9a8d5215c Handle potentially calling SDL_JoystickUpdate() and SDL_JoystickQuit() at the same time. -2fbfe8b91 coreaudio: Set audio callback thread priority. -6a3356ab3 Backed out changeset cec31de4e126 -8ab698af1 opengles2: Fix static analysis warning. -01c924fa9 Hopefully fixed the mingw32 build -deb7d08c2 Fixed Visual Studio build -ac23d78f7 Didn't need to add SDL_windows.h include, that was already included -b2e76d860 Fixed Windows RT build -a71489221 Fixed archiving the SDL dynamic library on iOS and tvOS -a0ac5ffc9 Fixed building with C++ -03fc5eebc Fixed building with C++ -8177388e5 Fixed declaration of SDL_main_func for C++ -4d8ac6b8b Added support for building SDL as a dynamic library on tvOS -de82759c8 Added support for building SDL as a dynamic library on iOS -edebdeb47 testgesture: Make the background gray. -82ebe63f9 Fixed Visual Studio build -d49f1faeb Fixed iOS build -cf7c05c28 Fixed Mac OS X build -fd946a48d Fixed configure error if pkg modules aren't available -6311c7cf9 emscripten: force resize event when pixel ratio changes Without this, applications can't react to changed canvas size on window zoom. -b8bd0aa0b Fixed bug 4450 - SDL_mouse.c fails to compile with CMake generated Visual Studio files if SDL_VIDEO_VULKAN 0/undefined -faf97978e Fixed bug 4511 - SDL_gamecontrollerdb Mapping for Sony Playstation USB controller -b6a45f1a8 Fixed DualShock 3 mapping -35255342c Fixed bug 4525 - Fix crash in ALSA_HotplugThread caused by bad return value check -55f18d362 Fixed bug 4544 - SDL2.m4 SDL2.framework patch made it impossible to fail detection -8bc59f87e Fixed CVE-2019-7635 and bug 4498 - Heap-Buffer Overflow in Blit1to4 pertaining to SDL_blit_1.c -0f148eb65 Fix polling left trigger reporting right trigger's values. -58ca76bee Fix DirectInput error codes being lost -c52861562 hidapi: Add support for Wii U/Switch USB GameCube controller adapter. -938a5508d Fixed bug 4452 - Please replace AC_HELP_STRING with AS_HELP_STRING -40e3c015f Added missing PKG_CONFIG macros -cada4b8b8 Use host system pkg-config when (cross-)compiling and convert to PKG_CHECK_MODULES -12c5cda6b Fix compiler warnings. -08dc8cc20 testgesture: Add dependency to SDLtest to Visual Studio project. -6727408d2 testgesture: cleaned up code formatting, etc. -7cc0a606d testgesture: minor cleanups. -5897ed85f test: Moved testgesture.c over to the common SDLtest framework. -f95ca7bb8 events: Disable all the signal-handling code on platforms without support. -8a5a05c16 events: Let arbitrary signals to simulate iOS/Android backgrounding events. -911bf6241 events: Make debug logging of the event queue a hint instead of an #ifdef. -cbe80d470 KMSDRM: valid file descriptors could positive or 0. -1 is invalid. (Bug 4530) -3bc1a8b61 Android: minor comment update -063c0c2a7 Android: check SDL is initialized before sending the event Avoid error message: SDLActivity thread ends (error=Video subsystem has not been initialized) -82758efc4 [iOS DAC] Fix touch events getting from SDL2 to source2. -d05eec720 Fixed initial display orientation at Android app start -1a8e3a027 HIDAPI: fix bug that caused non-HID class parts of composite devices to have windows HID functions called on them. -cddb285cd Fixed bug 4513 - Wayland, fix crash when remove event is sent (from Sebastian Krzyszkowiak) -052b4f296 SDL_EVDEV_kbd_init: uninitialized data for ioctl (Bug 4530) -b28e956b8 Fixed bug 4542 - Image flipped vertically when rendering on texture -28f54ee43 SDL_MouseQuit(): clear mouse->cur_cursor (Bug 4530) -7b2759427 KMSDRM: missing return value in VideoInit() (Bug 4530) -3b49ee526 KMSDRM: change calls free() to SDL_free() (Bug 4529) -2fd4aee14 Un-activate some routine on mips because they are slowers (Bug 4503) -47fb781b9 BlitNtoN BlitNtoNKey: remove non-aligned word read/store (bpp 3<->4) (Bug 4503) -6fbe9e23f raspberry: expose second display. -90a075d75 Fix windows build -e9a7b6973 Fix bug 4053: Blit issues on Big Endian CPU -ea4c4cfc2 Fixed bug 4500 - Heap-Buffer Overflow in Map1toN pertaining to SDL_pixels.c -afd1b3dae Fix invalid memory access and optimise Blit_3or4_to_3or4__* -1aa2ad2fe Better naming for the blit permutation variables -f6a2ae600 Faster blit colorkey or not, applied to bpp: 3->4 and 4->3 -604b44f20 Fix wrong access and simplify -5ed30f844 Some simplification of previous commit -5fd228921 Faster blit with CopyAlpha, no ColorKey Applied to following formats: -704e62bbf Code factorization of the pixel format permutation -0a007a9be Fix wrong comment -e5192384d Faster blit with no ColorKey Applied to following formats: -7372295ec Faster blit when using No Alpha or Set Alpha, + ColorKey Applied to following formats: -bb9a9080d Fix pointer warnings -3543a44ae Faster blit when using CopyAlpha + ColorKey Applied to following formats: -03cbac404 Android/openslES: fix warnings, comment out un-used interface -614c8aea2 Android/openslES: set number of buffers of DATALOCATOR to internal NUM_BUFFER If we increase NUM_BUFFER, Enqueue won't fail with SL_RESULT_BUFFER_INSUFFICIENT -bf823bf2d Android/openslES: prevent to run out of buffers if Enqueue() fails. -40781dfb1 opengles2: patched to compile. -b7504f311 opengles2: keep cached texturing state correct. -a609c03ac opengles1: keep cached texturing state correct. -40a52ceef render: Fix OpenGL draw state cache for various points of texture binding. -670f3d332 Fixed bug 4484 - use SIMD aligned memory for SDL_Surface -9292dc7ca Fix include path compilation -9a98dcc51 Rename surface aligned memory flag to SDL_SIMD_ALIGNED -65e07b388 iOS/tvOS: fix support for SDL_GameControllerGetButton(controller, GUIDE) with MFi controllers (thanks Caleb!) Fixes bug #4463. -e5d194e90 Add SDL_MEMALIGNED flag for SDL_Surface using aligned memory. -7b8bac595 Add fast paths in BlitNtoNKey -cd25c83aa Fix blit with blending (Blit_A) to RGB332 which has no palette -5b07148f7 Fixed failing SDL_ConvertSurface() when blit has failed. -a052d81bd Add explicit unsigned int and char types in (for bug 4290) -1128d5731 Fixed bug 4290 - add fastpaths for format conversion in BlitNtoN -3b4e36936 Emscripten: No need for Runtime. for dynCalls -53ead95e1 Emscripten: Avoid SDL2 in JS global scope After this fix, closure works with the LLVM wasm backend on SDL2. -6d89a7bc7 Emscripten: remove GLES_DeleteContext implementation It was calling glClear without a context. The issue it was trying to solve was actually that after destroying a window and creating a new one , the contents of the old window were preserved. This no longer happens since we resize the window to nothing on destroy. -04b1494cf Emscripten: resize canvas to 0x0 in DestroyWindow Closest we can get to actually destroying it -d60546aaa Emscripten: don't zero the display mode before adding it -4a2888af1 Emscripten: use UTF8ToString instead of Pointer_stringify -aacb1091d Emscripten: call emscripten_sample_gamepad_data -8dab9c956 Emscripten: Use set_canvas_element_size This will be needed for supporting multiple canvases and set_canvas_size is deprecated anyway. -ed66a430c Emscripten: Do not consume mouseup event outside of the canvas -2838abb5b Emscripten: fix duplicate mousebuttonup/mousebuttondown events when touch events are disabled -1767d0918 Emscripten: use a fake size for external sizing check The check would fail if the canvas happened to be the correct size already. (#66, mentioned in #58) -80d690a2a Emscripten: reset fullscreen_window when leaving fullscreen If the browser left fullscreen mode by the user pressing ESC, the next call to SDL_SetWindowFullscreen(1) will fail as it thinks the window is already fullscreen. (#65) -82b2c849f Fixed bug 4024 - GameController error "Unexpected controller element" -adabfdc0c Revert SDL_gamecontrollerdb.h and sort_controllers.py from bug 4024 -d984f323f Fixed bug 3827 - issue with MapRGB, palette and colorkey -2bd26b8da Fixed bug 3827 - issue with MapRGB, palette and colorkey -7b354dda7 Fixed compiler warning -8ad4000ce Android: some typos -b9aa3768a Android: automatically attach to the JVM non-SDL threads -61827c6d1 Fixed compiler warning on Android -07548602d Fixed bug 3657 - Color-key doesn't work when an alpha channel is present -9d10c7385 Android: remove duplicate code in SDLGenericMotionListener_API24 and use parent method -55838d8bd Android: remove another hard-coded constant for Samsung DeX (no op!) -56f4a711e Android: minor change in the evaluation of SOURCE_CLASS_JOYSTICK (no op!) -8f828a8e1 Android: remove hard-coded constant for Samsung DeX (no op!) -e5f8801f5 Android: prevent concurrency in Android_SetScreenResolution() when exiting by checking Android_Window validity -6690a4694 Android: also update APP_PLATFORM to android-16 in Application.mk -ede0fc4f4 Fixed bug 4024 - remove trailing comma of Controller mappings because it reports an error "Unexpected controller element" -8a19ff3e2 Android: add mutex protection to onNativeOrientationChanged -e994be583 Android: move static variable isPaused/isPausing to SDL_VideoData structure -291f6006a Android: merge SDLJoystickHandler_API12 and SDLJoystickHandler_API16 -a86754167 Android: remove trailing spaces -d86de288d Android: remove old code after Android-16 has been set as minimum requirement -861a21f98 evdev: don't debug log on a BTN_TOUCH from a non-touch device. -2755a505a evdev: Add touchscreen mouse emulation and pressure support (thanks, Zach!). -dc263450f Android: create Pause/ResumeSem semaphore at higher level than CreateWindow() -1b24b2eca Android/openslES: fix Pause/ResumeDevices when openslES is not used -ae41831e0 Android: minor, remove static attributes, move mIsSurfaceReady to SDLSurface -647b1f6a6 Android/openslES: check for non NULL variable, some intialization. use the previous naming -7b1cc441d Android/openslES: start playing, after creating ressources -955d87894 Android/openslES: set audio in paused/resumed state for Android event loop And also in "stopped" state before closing the device. -59c8c7b68 Android/openslES: move a few static variables to SDL_PrivateAudioData structure -5aeeaaab7 Android/openslES: register and use CloseDevice function. -365fd9c60 Android/openslES: some space and indentation to match SDL conventions -7dc92a766 Initial Android OpenSL ES implementation, contributed by ANTA -fb8cb95fb Fixed compiler warning -390459d83 Updated minimum supported Android version to API 16, to match latest NDK toolchain -be991f3a7 Fixed bug 4453 - GLES / GLES2: first white renderer clear cmd is drawn as black -7b42f03fd Android: move and group JNIEnv helper functions -7f3478305 Android: change the way JNIEnv is retrieved -dc10d96cd Android: use the same naming for JNI env local variables -3cfd907df Android: Audio thread is already setup for the JVM In 'src/thread/pthread/SDL_systhread.c' RunThread() calls first 'Android_JNI_SetupThread()' -9d82f4e98 Android: use pthread_once for creating thread key 'mThreadKey' -9a98e5afe Android: don't call Android_JNI_ThreadDestroyed() for Java SDLThread -42e18bd0c Android: fix bad merge from previous commit -b44a7aea8 Android: fix prototype of Android_JNI_InitTouch -7a1d1baef Android: add name for Touch devices and simplification, from bug 3958 -d23c2f07e Fixed bug 3930 - Android, set thread priorities and names -0e0e0272b Android: remove deprecated PixelFormat in surfaceChanged() -5c11e5ef9 Android: some simplification, don't need mExitCalledFromJava -66fbfe1d0 Android: nativeQuit for SDLActivity thread -dad816110 Android: only send Quit event to SDLThread if it's not already terminated -61d37de09 Android: un-needed transition to Pause state. -8dd915507 Android: prevent a dummy error message sending SDL_DISPLAYEVENT_ORIENTATION -02f292eb1 Android: add some SetError for Android_SetWindowFullscreen -68c0e69f0 Android: native_window validity is guaranteed between surfaceCreated and Destroyed -1803944bb Android: concurrency issue for Android_SetWindowFullscreen() -59df6d6b1 Android: don't allow multiple instance of SDLActivity -cfe2924d0 Android: some robustness when quitting application from onDestroy() -462e62e15 Android: better fix for bug 3186. Run those commands from SDL thread. -9f23d1815 Android: allow multiple calls to nativeResume() -911f1d3e6 Android: remove SURFACE_TYPE_GPU, deprecated in API level 5. -e4f558a50 Android: un-needed check of "isPausing" and minor typos -35722b642 Android: fix wrong state after immediate sequence pause() / resume() / pause() -d4c0f498d Fixed bug 4255 - SDL_GetGlobalMouseState() returns incorrect Y on secondary display -5e13087b0 Updated copyright for 2019 -2a885eb03 Android: fixed immediate transition to pause and resume. -cf1223445 Android: make Android_PumpEvents() more readable No behavior change in this commit. -ca184ac38 Android: concurrency issue with egl_surface EGL_BAD_SURFACE - (bug 4142) -2e19343df Android: use Mutex instead of Semphore for bug 4142 -23478642b Android: prevent the error message from SDL_EGL_CreateSurface() to be masked. -cc8f1136b Fixed bug 4142 - Concurrency issues in Android backend -d11f7615f Android: minor preparation for bug 4142 (concurrency issues) -5dc25fef3 Android: preparation bug 4142, reduce usage of global variable Android_Window -a95f91bce Fixed bug 3250 - Wrong backbuffer pixel format on Android, keep getting RGB_565 -a02998a29 Android: make sure surfaceChanged try to enter into 'resumed' state. -4d2b5c791 Fixed bug 4424 - Android windowed mode is broken (Thanks Jonas Thiem!) -03b0e1dee Android: on rare occasion, prevent Android_JNI_GetNativeWindow() from crashing -1e22fc151 Android: fixed comments and spaces -2a412eb94 Fixed bug 3186 - Android SW keyboard not restored when app becomes foreground. -d09774a47 Fixed bug 3511 - documentation to end an Android application -9cdd0dd99 PSP renderer: use colors from 'draw' union (very likely, but un-tested) -ebd9efb36 opengles 1: same fix as in bug #4433 -87b763691 opengles 1: use color from 'draw' union in SetDrawState() -dc3443602 render: Fix internal state getting out of sync when destroying a texture that was just rendered and then creating a new one, in the GL and GLES2 backends. Fixes bug #4433. -0a7059011 render: Prefer the Metal renderer over OpenGL. -c7db6ade7 metal: Implement SDL_LockTexture for YUV formats. -ce8c716ad metal: Implement SDL_LockTexture for non-YUV textures. -c0c8f2d70 Gesture: remove warnings when ENABLE_DOLLAR is undefined. -c3e3503ee testgl2: Press 'o' or 'p' to decrease/increase OpenGL swap interval. -13869f194 cocoa: Implement OpenGL swap interval support with CVDisplayLink. -1ed602196 Fixed bug 4426 - allows re-creation of software renderer -182969275 emscripten: SDL_PrivateJoystickAdded() wants an instance id, not device index. -e5476c653 Fixed bug 4425 - promote to alpha format, palette surface with alpha values. -bd08d72de Fixed building with the 10.10 SDK -98829d37e Handle both "Sony Interactive Intertainment" and "Sony Computer Entertainment" when ignoring motion sensors -71b664517 Rename _SDL_sensor_h in public header, not to trigger Wreserved-id-macro -0b6e24f7e Linux Haptic: Fix periodic.magnitude value -39e8e3951 Fixed bug 4379 - fix parallel build with slibtool -1c9595b16 Fixed bug 4415 - SDL menu bar is nonstandard on Mac -70ce0f2e0 Added the hint SDL_HINT_GAMECONTROLLERCONFIG_FILE to specify a file to load at initialization containing SDL game controller mappings -898644d18 Made it more clear that the values being compared are floats -f9192ab8f wayland: Do not try to lock on an invalid pointer -7468d1e09 Fix warnings detected on Android build -39ec1699e opengles2: fix prototype of glDeleteBuffers -252dc85e9 Fix warnings detected on Android build -a7563bcd3 joystick: Removed unused variable. -c7b713714 Whoops, forgot to add a new source file. :/ -6ed76ae18 Fixed the ROCCAT Tyon mouse showing up as a joystick on Windows -fbead6354 joystick: Added controller config for IMS Passenger Control Unit Devices. -2878d4f80 egl: Don't force X11 support when testing for EGL. -1689e9f91 linux: Move SDL_LinuxSetThreadPriority() elsewhere to fix build. -bd3ee07c8 wayland: Send SDL_TOUCH_MOUSEID mouse events for touches. -6259a7263 Warnings: fix a documentation warning and missing prototypes -db320e460 Fixed the PS4 motion controls showing up as a separate game controller on Linux -69c256c10 Fix comment and end of lines -f64c94337 Update comment URL of USB document (HID Usage Tables 1.12) -09b462044 Windows: NEON detection and intrinsic includes on Visual Studio -aea7e56a2 android: use __ARM_NEON instead of __ARM_NEON__ to include -cca9d24cd direct3d: be more aggressive about resetting invalidated cached state. -939bf1c4d render: fix some static analysis warnings. -33f78eb16 direct3d: Make sure streaming textures update before being used for drawing. -b744108af Patched to compile on C89 compilers. -3c9361509 direct3d: Release and NULL out vertex buffers on reset. -d4a21f54b cmake: Comment out some debug logging that can upset build environments. -65a7c98c6 directfb: Updated render backend to new internal API. -583f61b20 kmsdrm: Check for resources when validating KMSDRM device in check_modesetting. -b3ac87d55 kmsdrm: uninitialized KMSDRM fixes -3323b355c android: use cpufeatures to support SDL_HasNEON() (thanks, Sylvain!). -1e4acca85 Added some detail to a Doxygen comment (thanks, Sylvain!). -fac40f8e4 Patched to compile on Linux with threads enabled. (whoops!) -c4bc59a50 Patched to compile on Linux with --disable-threads. -f205f3a8c Added support for the Razer Raiju Mobile -a95291c9c Fixed the hotspot for cursors on Raspberry Pi -aea483577 Fixed bug changing cursors on Raspberry Pi -3f0d520a4 SDL_touch.h (SDL_TouchDeviceType): remove comma at end of enumerator list. -37b1f989c metal: use a staging texture in SDL_UpdateTexture, to make sure it doesn't stomp texture data being drawn in a previous frame on the GPU. -7b306bf34 Added atomics support for armv8-a (Raspberry Pi 3) -bd0ae0a5d Do a second pass to find libraries without a single version digit after the .so This finds libsndio.so.6.1 on Raspberry Pi -872936a48 metal: Fix an incorrect division. -4a58722b9 metal: SDL_RenderFillRects uses one draw call per 16k rectangles (within the given FillRects call), instead of one draw call per rectangle. Reduces CPU usage when drawing many rectangles. -5f9805145 wayland: ask xdg-decoration protocol extension to use server-side decorations if possible. -14e389ead minor update to Makefile.os2, added a test/Makefile.os2. -5c5ba0e33 Fixed bug 4394 - Crash in SDL_PumpEvents() after SDL_DestroyWindow() -ac15de18b Fixed bug 4392 - SDL_cpuinfo.h breaks compilation with C bool type -b73703b9c Fixed bug 4391 - hid_enumerate() sometimes causes game to freeze for a few seconds -d3fa42b8c os/2 bits for SDL_malloc.c -- from libffi -1a02403ea libm: Watcom defines huge=__huge: undefine it to fix build using Watcom. -ed8413c93 Makefile.os2: build libm as a static lib and add it to linkage. -457e58c40 opengles: Fixed compiler warnings. -9719f89db Back out change initializing renderer blend mode incorrectly. -fde7592ad direct3d11: Fixed missing rendering of solid primitives. -782f1685f Fixed a few compiler warnings. -29e15ce62 The default draw blendmode is SDL_BLENDMODE_NONE -1f6bd9511 Emscripten: make CloseAudio actually close audio cf. https://bugzilla.libsdl.org/show_bug.cgi?id=4176 -43d47f6b2 fix permissions -9262c0de9 software: fix blits with color mods that change during a command queue run. -2e348c1f5 Fixed bug 3193 - Dualshock 3's motion sensors overwrite analog stick -1a4c0d4e1 Fixed bug 4377 - SDL_PIXELFORMAT enum is anonymous, which prevents its use in a templated function -b815ad56f Fixed bug 4366 - Compile throws a warning on RPI (Raspbian Stretch) -5e1531944 Fixed bug 4367 - compatibility version decreased between 2.0.8 and 2.0.9 -c525ff354 cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!) -5029d50ea Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id). -2196e5765 Used confflags +=, so each option can be enabled individually, if desired -44c5d803b The Debian maintainers aren't using these rules, so enable dynamic loading of shared libraries by default for the Steam Linux Runtime -9665a5089 Added Vulkan headers version 1.1.91 Downloaded from https://github.com/KhronosGroup/Vulkan-Headers -48917e0e7 wayland: fix resizing and fullscreen toggling For starters, we need to correctly respond to 0,0 configure after unsetting fullscreen. Also, turns out that there should be no drawing calls at all in between eglSwapBuffers and wl_egl_window_resize, as otherwise EGL can already allocate a wrongly sized buffer for a next frame, so handle those together. -ed694ec61 close_code.h: #error if included without matching begin_code.h -a60751b7a fix bug #4362 - SDL_syswm.h with SDL_PROTOTYPES_ONLY broken in C++ mode -1dbf7dc2f os2: Do a distclean instead of removing files manually in buildbot script. -e45ed114c os2: Added a script for the buildbot. -244b79e19 metal: SDL_RenderReadPixels on macOS synchronizes the render target's texture data if it's managed, before reading from it. -c9fed2728 metal: fix the SDL_RENDERER_PRESENTVSYNC flag not being set on the renderer info on macOS, when vsync is used. -c2bba9e44 metal: fix the size of the buffer used for constant data. -bc57ac27f mir: Removed mir client support. -4026f89d1 Fixed bug 4308 - Prebuilt SDL.dll files not compiled with ASLR support (DYNAMICBASE) -cc39c7a0c Fixed bug 4320 - Android remove reflection for HIDDeviceBLESteamController -67a94893c Fixed bug 4319 - Android remove reflection for PointerIcon -47fb450be Fixed bug 4315 - little Warning in Android_JNI_CaptureAudioBuffer -6a9f45f2d Remove machine-specific IncludePath from SDL.vcxproj -457390fcf metal: avoid an extra buffer allocation and GPU data copy in RunCommandQueue, it's not needed. Improves overall performance. -4e86dfd8d metal: remove an obsolete section of a constant buffer. -0d79a8a1b fix build using Watcom : -4659e7389 merge fallout: Patched to compile, fixed some compiler warnings, etc. -62494a2e2 Merge SDL-ryan-batching-renderer branch to default. -eb2536c46 Closing SDL-ryan-batching-renderer branch. -a5ebd4d77 wayland: ask KDE protocol extension to use server-side decorations if possible. -8340b0f0e render: Add floating point versions of various draw APIs. -ff3bb857f joystick: Add Linux mappings for "Xbox One Wireless Controller (Model 1708)" -d42728ec1 fix NetBSD C90 build failure -329f2eb99 Fix crash when GL_LoadFunctions()/GLES2_LoadFunctions() fails https://bugzilla.libsdl.org/show_bug.cgi?id=4350 -aeee424f6 Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3 -9af581bd7 Fixed bug 4347 - Keyboard LEDs don't work on linux console -6c029f127 Added tag release-2.0.9 for changeset c75013b56028 -c49ecf6f7 (tag: release-2.0.9) rename os2 makefile so that 'make dist' catches it; update it a bit. -da56cefa8 Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases -950f39e23 Backed out changeset 2944045e695b, SDL_JOYSTICK_HIDAPI is only used on iOS for Steam Controller support, which is not publicly available. -e542d1a36 winmain: Patched to compile on C89 compilers. -f434a98c2 winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc). -b43f427fa README-ios: added a note about enabling hidapi. -91820998f Add and update include guards -df89abb23 Fixed bug 4335 - Android NDK build error -e381a1599 Updated Android project files and documentation -14c55ac89 This change looks okay in the general case. If we run into problems where these events aren't dispatched (initialized on a different thread than the main thread?) we may need to create a separate thread to handle device notifications like we do with the windows joystick subsystem. -be8ef94f1 hidapi: Don't run a separate event loop for device notifications. -91da4963d Added patch note for SDL_GameControllerGetPlayerIndex() and friends -b08bdc440 Don't build SDL_JOYSTICK_HIDAPI by default on iOS If you enable this, you'll need to link with CoreBluetooth.framework and add something like this to your Info.plist: NSBluetoothPeripheralUsageDescription MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app. -14329256c Generalized the XInput user index into a player index -545febcf2 Fixed initializing XInput user index -9987ca69f Added SDL_JoystickGetXInputUserIndex() -4d4e18c4b Added vi style for the Emscripten joystick code -04761d7d6 CMakeLists.txt: set dylib version numbers properly. (bug #2915.) -b699ddc0a Fixed reinitializing the SDL joystick subsystem on Android -f0549cc9c fix permissions -d7fa11204 Change our fullscreen wait logic to only wait if we need to. (thanks Rachel!) -e6068b5b1 Handle failure to load hidapi gracefully -c4918db58 Add exception handling to Android hidapi. -4a50a0421 wasapi/win32: Sort initial device lists by device GUID. -1ec56f730 x11: Fixed incorrect function signature for XkbSetDetectableAutoRepeat. -1fb20f0ab cocoa: Put a mutex around GL_SwapBuffers. -cad0a2f73 cocoa: Fix OpenGL rendering on macOS 10.14 ("Mojave"). -072e17bf9 cocoa: GL_GetDrawableSize only uses -[NSView convertRectToBacking] for highDPI. -b262b0ebc Small stack allocations fall back to malloc if they're unexpectedly large. -eedf2c965 opengles2: Fixed several incorrect things. -6ecd0b2c3 opengles2: removed useless memcpy. -ef3d970ac opengles2: Fixed incorrect cliprect state. -208c4b036 metal: CopyEx transform matrix must be aligned for constant buffer access. -638d624f5 metal: Don't try to create a zero-byte vertex buffer. -1ecf4dfc5 render: Added SDL_RenderFlush(). -09140bd8b render: Move PSP backend to new interface. -9fedff997 render: moved software renderer to new interface. -bd08a4e6b render: D3D11 now cycles through 8 vertex buffers. -a9094a21a render: D3D11 renderer patched to compile. -6e6f7382a render: first (untested!) shot at converting D3D11 renderer to new interfaces. -0c2e10dce render: Make the GL backends cache and defer more state changes. -fcb468133 render: D3D9 doesn't need to check for stream offset support anymore. -709f5ee41 render: Set the D3D9 stream source once and choose offsets during draw calls. -9870746bd render: Patched to compile. -5e644cfdf render: first shot at moving Direct3D 9 backend to new interface. Untested! -fdc52a65d render: patched to compile on C89 compilers, other untested code fixes. -daad53af1 opengles1: set some non-zero drawstate defaults. -c20a858da render: moved opengles2 over to new interface. -22475bf3f cocoa: Force an OpenGL context update when the window becomes key. -0d588cc4c render: Do state cache improvements for GLES1, too. -d04e55240 render: OpenGL renderer now caches some state, to improve non-batching mode. -06461bba7 render: Move non-batching flushes to different place. -43f15e05d render: opengles renderer actually works now. :) -b2db99cb9 render: First shot at converting opengles renderer to new interfaces. -c01da2175 render: get rid of the predeclared functions in the GL and Metal renderers. -051d1cfcd render: Make opengl backend take advantage of new high-level features. -8ac5c00a4 render: Add command queue debug logging. -2241b33f5 render: Update Metal and GL backends to use new high-level features, etc. -cc56de44a render: A bunch of high-level improvements. -8955fb9b3 render: First shot at moving metal backend over to new batching system. -55cb9966d render: first shot at reworking opengl backend for new batching system. -5fb67f9f5 render: Move to a batching system for rendering (work in progress). -e0cc19f2d testsprite2: report average FPS in blocks of five seconds. -a2f7af9a4 gles2: Make render command queue dynamic. -0d3275297 gles2: Major renderer optimization. Work in progress! -7ed7cb5e6 Created SDL-ryan-batching-renderer branch for the WIP renderer rewrite. -264b81b48 metal: Make sure layer drawableSize is adjusted on resize. -0cf1ae9d0 Fixed a comment typo. -a0b3dcc26 Fixed bug 4002 - Android, nativeRunMain() fails on some phone with arm64-v8a -80021c21b Speculatively disable rumble on the Razer Panthera Evo, which doesn't have rumble motors and probably hangs in the same way the Panthera does. -e987bedfe Updated Xcode library version to match libtool output with Ozkan's change -96259f1f8 Don't overwrite the default binding when changing the binding for a controller that was using the default. -963e74d68 Added binding for Mad Catz FightStick TE S+ (PS3) on Mac OS X -c152e380b Added support for the Razer Panthera Fightstick Fixed bindings for the Mad Catz FightStick TE S+ -9753b9cc4 CMakeLists.txt: fix typo SDL_SENSORS_DISABLED -> SDL_SENSOR_DISABLED -aae29c9eb test: Makefile should copy .dat files for testoverlay2. -3634e563c metal: SDL_UpdateYUVTexture shouldn't swap planes based on format. -34237b80f Better fix to make sure we're only returning controllers from the HIDAPI joystick API -4ffcd88ca Removed VID/PID 0x1532/0x0037, which was listed in the Linux kernel as a Razer Sabertooth, because at least one variant of the Razer DeathAdder mouse shows up with this VID/PID. -faf8f8b86 fix permissions -5ef8eb49b Don't show the Razer Raiju sound interface as a game controller -90a5607d3 Fixed compiler warning and use higher precision in angle calculation -207428b44 Don't rumble Bluetooth PS4 controllers by default, as that switches the controller into extended input report mode, which breaks games that use DirectInput. -16ccff3c5 Fixed whitespace -fda14741a Fixed Xbox One S Bluetooth support on Mac OS X -b6aaefc79 SDL_evdev.c: undefine _THIS before redefining it. -92396f7d7 Fixed Windows build -404ba5eea Fixed bug 4229 - Add support for ABGR format in DirectFB renderer -87bc1fb55 GLES2: Get sin/cos out of vertex shader The only place angle is activated and causes effect is RenderCopyEx. All other methods which use vertex shader, leave angle disabled and cause useless sin/cos calculation in shader. -044b00dca Fixed the DirectFB renderer not being enabled in autoconf builds -a1ca84411 Update the cursor clipping each frame, in case it was stolen by another application. -15b3794f1 Only reset the clip rect if it's currently the rect we previously clipped. This prevents us from clearing the clip rect globally when another application has set it. -09ab752aa Implement SDL_HapticStopEffect on Android (thanks Rachel!) -a794126d5 vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window. -a003fa0a0 Implemented SDL_GetDisplayOrientation() on Android (thanks Rachel!) -df5d565f4 cmake: add sensor subsystem to the build. -8adadf8f0 Added documentation for additional Android sensors -84e783201 Fix "unresponsible application" issues in Wayland -568068048 Fixed bug 4324 - Xcode 10 - more cleanup for macOS and iOS projects -30def8e26 Fixed bug 4324 - Xcode 10 - more cleanup for macOS and iOS projects -f67737733 cocoa: Fix OpenGL rendering on macOS 10.14 ("Mojave"). -eac3fd28d cocoa: GL_GetDrawableSize only uses -[NSView convertRectToBacking] for highDPI. -4db5e872a use less ancient versions of autofoo scripts -3e3ce6e95 Fixed bug 4318 - Android move Haptic code to API26 class -708ad1fd8 Fixed updating the rumble parameters on Linux -b0c48dd9d Support vibration magnitude on Android 8.0 (thanks Rachel!) -7be4fca62 SDL_power.c: Adjust SDL_POWER_DISABLED ifdefs to avoid zero-size array -dae4a0136 x11: Don't hardcode limit on lines of text in message boxes. -ee97d4f4c add a minimal config and makefile to test watcom/os2 builds. -703361e47 SDL_GetPowerInfo_Hardwired is static in SDL_power.c -cbacb0f1e add missing include. -e2ad654f2 iOS: Don't ignore the requested alpha bit size when determining whether to use an RGBA8 backbuffer. -cd63709ed Emscripten: Load eglQueryString and eglGetError This prevents an assertion on context creation failure (calling a null function pointer). -8c41e2624 metal: Fix SDL_RenderReadPixels to wait for the GPU to finish rendering to the active texture before reading its pixels. -d8022d19b macOS: Fixed MoltenVK dynamic library loading code. -d9094421e metal: Fix high dpi and resizing on macOS, and clean up iOS code. Fixes bug #4250. -9a98e4b64 Allow Android haptics to work when SDL is reinitialized (thanks Rachel!) -0e5a3f6ec SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining. -acb05f50d thread: make SDL_CreateThreadWithStackSize() a public API. -eff5f6509 Implement SuspendScreenSaver for Win32 -04cbf1326 audio: All device names reported by SDL must be unique. -0378529e1 audio: clean_out_device_list() already sets this flag to false for us. -f5a21ebf0 Added support for surround sound and float audio on Android -4679f6826 Removed unneeded variable qualifiers -82c2f04e6 Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases -88b325255 kmsdrm: find available card if called without index. -62f806ed6 This device gets Xinput driver loaded on windows. -337cea441 Fixed life-cycle issues with two activities sharing HIDDeviceManager -1e728f507 Close on shutdown, for consistency -e4c9806f4 Trying to track down NullPointerException in USB input thread -4d771c598 Don't flash the navigation bar when destroying a fullscreen SDL window -53260b31b There are legitimate reasons to skip full cleanup at shutdown, don't assert in that case. -3ac9e2aa4 Fixed bug 4296 - kmsdrm video driver leaks 1 bo in KMSDRM_GLES_SetupCrtc() -367f9b915 wayland: Fixed missing window sizing events. -f01cdcedb It turns out HIDAPI for Xbox controllers doesn't allow background input, so we won't enable it by default on Windows. -a0c53668e Allow SDL to use ReLinker if present. This fixes issues for applications that have a large number of shared libraries For more information, see https://github.com/KeepSafe/ReLinker for ReLinker's repository. -41ee51b9a Fixed updating bindings for controllers using the wildcard mappings -b60e5b82f Update documentation to note that this hint works on Android too (thanks Trent!) -93fb710a4 evdev: Don't initialize struct sigaction with "{ 0 }". -194455617 Make sure we don't read and write to HIDAPI at the same time, it's not thread-safe on Windows -ae5317e84 The Amlogic X96 is a set-top box -679d35531 Fixed UnsatisfiedLinkError when initializing the HIDDeviceManager in some cases -6e35e4214 Working on bug 3921 - Add some Fastpath to BlitNtoNKey and BlitNtoNKeyCopyAlpha -922623e1b SDL_blit_N.c (BlitNtoNKeyCopyAlpha): fix -Wshadow warnings by adding _ suffix to the temp Pixel local in the DUFFS_LOOP. SDL_blit.h (ASSEMBLE_RGB): add _ prefix to temp Pixel locals to avoid any possible shadowings. -b25187612 commit c6b28f46b8116552ec2b38d1d3c8535df28ba7a1 Author: Anthony Pesch Date: Fri May 4 20:21:21 2018 -0400 -de5367a61 Added display event files to the Visual Studio projects -5901fe466 Added display event files to the Mac OS X project -50d500253 Fixed build -088070e5a Moved display orientation handling on iOS out to a separate function for Qt apps -f225af0c1 Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes. Documented the values returned by the accelerometer and gyroscope sensors -f1bc1c127 Fixed crash trying to open HIDAPI controller as a haptics device on Windows -38ae49880 Updated required Android SDK to API 26, to match Google's new App Store requirements -7f4860e2b Doh.. __IPHONEOS__ is defined on tvOS -74e99f741 Don't use CoreMotion on tvOS -b8ae2c186 Fixed UWP build -6f758ad25 Moved SDL_IsTablet() to a cross-platform API function -e9f6805fc Removed dependency on C++ runtime on iOS -c6647bf9c Added the iOS sensor implementation -bdbc06b02 Fixed bug 4228 - Clean-up Xcode projects -c5bcefa7e Fixed duplicate definition of SDL_JoystickID -7749ee2a4 Added the dummy sensor driver to the Visual Studio projects -3e5dbc694 Added a dummy sensor driver -7c3040e08 First pass on the new SDL sensor API -c2791fc60 Don't crash if the app doesn't have Bluetooth permissions -2a4999b4b By default just build for 32-bit ARM and x86 -109544ca0 Add SDL_IsTablet() to Android and iOS SDL. -b09b25f6e Don't crash if the app doesn't have Bluetooth permissions -ad1e3c2a4 Fixed Android build error -0d22559e3 Fixed Android build error -5dfa4043a Fixed warnings building on Mac OS X 64-bit -6b3f11e2a Fixed code style -aeea6b9b1 Emscripten: Fixed SDL_SYSTEM_CURSOR_SIZEALL -90454b1ec SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined -7d3a7ef82 Use a single hint for both Xbox 360 and Xbox One controllers, since they are often the same driver. -a2add1f68 Use the HIDAPI driver for Xbox controllers on Windows, and determine the XInput mapping at runtime for extended functionality like rumble and guide button. -3f5ff751f Use a unified name list for Xbox 360 and Xbox One controllers for drivers that can handle both -aad340eb8 Added Windows Xbox controller state packet handling, for completeness. -63107524f Fixed input from the Steam Virtual Gamepad on Mac OS X -0903e8355 Use SDL specific window class to avoid conflicting with Steam -c88666580 Catch device removal as well as device arrival on Windows -641c674f2 Turned off debug messages -51902010c Remove the HIDAPI device if we get a read error from it This fixes detecting PS4 controller disconnect on Mac OS X, where there isn't any device removed notification -dfbd7f65a Fixed Mac OS X build -ec74c318b Polling hid_enumerate() every 3 seconds causes freezes and stutters on some USB audio devices and mice. We'll only enumerate devices when we get notification that the system devices have changed -2dc04b4c1 libm: one more static analysis fix. -67a48ad13 haiku: Patched to compile with new joystick interfaces. -e1ac643b3 bsd: Patched to compile. -67764070f bsd: Update joystick code for new interfaces. -b692c3523 emscripten: Patched to compile with new joystick interfaces. -941f8ecff joystick: define inline to SDL_INLINE -0b2863d45 joystick: #if 0'd out some things that aren't currently used. -a7c3d2af8 SDL_hidapi_ps4.c: lowercase windows header names. -f159d798d chmod -x Android.mk -5930b5085 Re-enabled the HIDAPI joystick driver on Windows and Mac OS X -4f41f07d4 Added missing files from previous commits -31b022439 Added notes that this code was contributed by Valve -99759bac8 There's no controller that's supported by both XInput and HIDAPI -ab07ce116 Don't update the device list for devices we know aren't supported This should reduce HID enumeration (hitting the USB bus) if for some reason we're getting spammed with false device insert/removal events -cf823094a The MINIX NEO-U1 is now being reported as Android TV -28e0c0eef Sam Lantinga 2018-08-06 13:00 -0700 Backed out changeset 794a209b2270 http://hg.libsdl.org/SDL/rev/2e2ecdac957c -25a952e76 Sam Lantinga 2018-08-06 11:58 -0700 Removed mapping for VID/PID 0x0079/0x0006, which is a generic PCB used in many different devices http://hg.libsdl.org/SDL/rev/794a209b2270 -b37518b3d SDL: disable HIDAPI in SDL on Windows/Mac. -888bf1af6 Worked around bug with Sony PS Now PS3 controller where DirectInput polling will continue to return success after the controller is unplugged. The code is now reliant on SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() being called correctly when devices are added or removed on Windows -f35e97ba8 Fixed Windows build -d2042e1ed Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms. Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API -ba90412cd libm: Don't let Visual Studio generate an implicit memset() call. -4cb84b8f4 backout INFINITY change...of course Visual Studio doesn't have it. -257071fc2 e_exp: One more compiler warning. -550437edb libm: Fixed all static analysis warnings. -c0aa626ba e_exp: Fixed compiler warning on Visual Studio. -941c5b476 haiku: Rename internal functions from BE_* to HAIKU_* -c0ac09edc configure: Make wayland sources depend on generated headers. -f59b0056d evdev: On sudden termination, make sure keyboard isn't lost (thanks, Tadek!) -623a6defd alsa: optionally run entire pipeline non-blocking. -56f44cfa0 audio: Deal with device shutdown more carefully. -e714f6590 haptic: Fix initial detection of haptic devices on Linux system -a37d3e0b1 Backed out changeset 794a209b2270 It turns out the mapping is correct, just the name was confusing -cc682f201 Removed mapping for VID/PID 0x0079/0x0006, which is a generic PCB used in many different devices -f45f33bdc SDL_expf: return SDL_exp() instead of SDL_uclibc_exp() for consistency. -b4fe7412f SDL_exp -4d4bb2b0e cmake: use WINDOWS instead of WIN32. -e061a92dc Some drag'and'drop improvements. -8f0cc4a4b Backed out changeset 2e42ec46061e. -1089944be libm: Fixed signature mismatches for __ieee754_rem_pio2 and __kernel_rem_pio2. -862aa4b47 windows: Fixed some Visual Studio warnings about shadowed variables. -3a11bba26 Remove "lib" prefix from DLL file on MinGW builds -c3178e67c Ensure we still clear the X locale modifiers even if not compiled with ibus or fcitx support -b5a420cb1 dbus: Deal with undefined behavior with va_args. -fd8e8f9f2 Clean up captured pointer code to avoid logcat clutter on pre-8.0 systems (thanks Rachel!) -df0d3f136 More controller drivers support CARTESIAN coordinates. This fixes rumble on the Saitek Cyborg V.3 Rumble Pad -ff8c9538b Allow trapping the back button so right mouse click can work on some Android systems (thanks Rachel!) Also, added a function SDL_AndroidBackButton() so applications can respond to the back button directly -c74837fbb ltmain.sh: make OSX autofoo builds' compatibility version match Xcode builds. -ff8c62f22 Fixed bug 4210 - SSE2-based converter makes junk result of S32 -> Float -507e271b3 made the wasapi configury option consistent with others. -885779162 make WASAPI configurable in autofoo and cmake (default is on.) -013b146de SDL_windowstaskdialog.h (struct _TASKDIALOGCONFIG): make unions anonymous -949b8bd8c correct the comment correction.. -67f18a197 comment correction -cf7b94f29 ran 'chmod -x' on two files -7c2028f8e Attempt to fix "cast from pointer to integer of different size" warnings. -52857de25 Corrected a comment. -3b173f818 Patched to compile on Visual Studio (typo). -58168a8c3 atomic: Fight with all the assemblers that don't like REP NOP. :/ -5f123e31a atomic: Spin locks now try to use the x86 PAUSE instruction for short waits. -5a8ecf4e7 yuv: Patched to make static analysis happy (warned about unused variable). -4773690d0 Deal with possible malloc(0) calls, as pointed out by static analysis. -4f5bd53e8 wayland: Keep protocol XML files in-tree. -915a7e034 gles2: Whoops, overzealous copy/paste on my part. :) -c8ac90967 wayland: Implemented xdg-wm-base support. -e8237e2b0 android: Android.mk should only preserve debug symbols in debug builds. -0a7faa4ae Fix Linux haptic scaling, add 2.1 FIXME -de9f5415b Filter both SIZE_CHANGED and RESIZED on any SIZE_CHANGED -95579f5f1 Fixed bug 4220 - SDL_GL_CONTEXT_DEBUG_FLAG can fail silently on some Android devices -48f7e7f34 Corrected PS4 controller entry -f8b4cd410 Re-enable drag-and-drop events by default -fb485986e macOS: Fix a crash when the video subsystem quits, if SDL_MAC_NO_SANDBOX was defined when SDL was compiled. -56ec349d2 audio: disable NEON converters for now. -e77ec8896 Fixed tablet detection on Android -35422bd89 fix permissions -c17d62996 Mark a subsystem as dummy, not disabled, if it was intended to be compiled in. -14d2ec80e commit 8f4dedc039190f5e734c47dcc4fc021b5793b659 Author: Micha? Janiszewski Date: Fri Sep 28 20:38:04 2018 +0200 -9e8e0fb7b Fixed bug 4283 - SDL's version of memset is different from libc's -74638ea3c Ensure we wait on the surface resize before returning from setting fullscreen mode. -31596f23c SDL_vsnprintf: implemented '+' flag for signed integers printing. -49803c866 SDL_vsnprintf: fix numerics if both zero-padding and a field are given. -5454765a2 replace bool stuff in controller_type.h with SDL_bool. -fde82e597 SDL_hidapi_ps4.c: add HAVE_ENDPOINTVOLUME_H check to win32 volume code. -cf7d64f26 hidapi/windows/hid.c: comment out ntdef.h include after windows.h. -b11c75e9f configury, cmake: add check for endpointvolume.h : -cf7460e47 configury, cmake: make wasapi option independent of directx. -9aa8a75d2 Fixed building with Xcode 10.0 -283680f2c hidapi/windows/hid.c: fix misplaced #if 0 -f964ce03b Fixed mingw-w64 build -20dfda448 Fixed mingw-w64 build -88f9f0307 Added patch notes for SDL 2.0.9 -7df0f4fda Fixed bug 4277 - warnings patch -d9fb77a3c SDL_atomic.c, SDL_spinlock.c: use lock prefix with xchg in Watcom asm. -bb5516ac8 SDL_vsnprintf() updates for zero-padding: -7689162ca cocoa: Force an OpenGL context update when the window becomes key. -6eeb8593b SDL_string.c (SDL_PrintString): avoid MSVC signed/unsigned mismatch warning -5342ae2bb SDL_string.c (SDL_IntPrecisionAdjust): avoid MSVC generating a memset() -d2131ac16 SDL_vsnprintf: implement precision for the integral value printers. -55b24b93b Fixed bug 4265 - SDL window falls to the bottom of the screen when dragged down and stuck there -ffc19ee25 SDL_string.c: added comments to three SDL_FormatInfo members. -bc6c19979 Updated version to 2.0.9 -8743e9759 SDL_vsnprintf: when '.' is specified, take precision as 0 if it is < 0. -69ab8541a SDL_vsnprintf: string printer now honors the precision. (bug #4263.) -d0e9a3646 SDL_vsnprintf: %.* and %* now parse precision and width. (bug #4263.) -d40657bfc Fixed bug 4270 - Android HIDDeviceManager function needs to be public -e236e8435 Fixed bug 4268 - Android_JNI_OpenAudioDevice function has error -60afec79b Removed redundant SDL_GetColorKey() call. (thanks Sylvain!) -7f9854b9b WinRT: Wait until audio device activation is complete and PrepDevice during OpenAudio -aa9683bb6 Added 8bitdo SF 30 PRO controller support for Linux / DInput mode (thanks Frank Hartung) -fb0e68ae0 Fixed building with newer Android NDK -870c44bfe safer this way, just in case.. -da89b81c3 Fixed rare null pointer dereference -ef3470487 Fixed bug 4264 - SDL_CreateTextureFromSurface generates error message but returns ok -cd90e2ca5 Fixed bug 4267 - linkage failure with --enable-hidapi because of missing libudev symbols -e0fe8f3cb Support relative mouse for Samsung DeX on Samsung Experience 9.5 or later (Android 8.1 or later) -5febdfcec Fixed whitespace -58021b383 Correct the name of the SDL shared library in CMake for Mac OS -8aaef4b91 Fixed bug 3166 - It would be nice, if SDL would support including SDL project as a subdirectory into another CMake project -d07fe7ad9 Removed button logging message -e8b0859f1 Added missing call to WindowsDeleteString() -600126c90 Added experimental support for Windows.Gaming.Input -c19516b50 cmake: correctly report Vulkan support at configure time (thanks, Tiago!). -c179d3948 Fixed NullPointerException if there's no singleton -f6a537cbf Store the API device refcount on the device itself, so if the device is disconnected and we have multiple application references to it, we only free it once. -59a2d12cc Fixed creating an Android game controller mapping for HIDAPI devices on initialization -305e5968a do not export hidapi symbols from SDL dlls (bug #4259). -5a34f1e3e acinclude: rename ax_gcc_x86_cpuid.m4.htm to ax_gcc_x86_cpuid.m4 -bab5b0843 fix permissions -6b3e89310 Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity. Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces -66294d31d Guard against Steam Controller input when we're shutting down. -e8a0e35e2 Use atomic reference counting for the HID device object -6a7b0c27a Fixed crash launching under Steam on Mac OS X -0b3a350c9 Fixed Chinese IME support (thanks ???!) -af823cc1d Fixed building on tvOS -63848141c Fixed building on tvOS without any sensor support -33381d3d1 hidapi/SDL_hidapijoystick.c: fix build in C90 mode: -afc1738ec SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists. -c59142954 alsa: avoid hardware parameters with an excessive number of periods. -c70db0cab cmake: Look in popular places for X11 headers, export this info properly. -59574fe2f x11: Normalize x11xinput2 touch x to be 1.0 at width (thanks, Zach!). -fe6828272 egl: Don't change context when deleting current. -5308a245a Fixed some possible malloc(0) calls reported by static analysis. -88dfa4664 Use a blank cursor instead of PointerIcon.TYPE_NULL since that shows the default cursor on Samsung DeX -a51585356 Added support for external mouse in Samsung DeX mode relative mode doesn't work, but absolute coordinates are functional -f1d8f5f7f Make certain we only hide system UI when we're fullscreen for real. (thanks Rachel!) -8b574dc43 Deal with situations where the system UI is shown when the keyboard pops up (thanks Rachel!) -74ec7cabd Fixed race condition where Android touch events could get scaled by a render target's viewport -9924a8e39 Fixed bug 4094 - No SDL_TEXTEDITING after pressing Alt key on Raspberry Pi Linux -12ff19c03 SDL Android fullscreen code extensively tested on Steam Link with no issues reported -08de74ec4 use the 'aborts' pragma of Watcom for SDL_NORETURN functions SDL_ExitProcess(), SDL_AbortAssertion() and SDLTest_BailOut(). -4a4bac95e Deal with fullscreen limitations under windowed Android environments (Chromebook, DeX, etc.) (Thanks Rachel!) -41da7b79c ran 'chmod -x' on many files -864b8f89f Merged in community contributed controller mappings from https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt -120597824 Added common controllers used with Steam Big Picture -63317dfb1 Don't crash on exit from SDLActivity if we don't have a singleton for some reason. (Thanks Rachel!) -fe196db77 Track android device panel width & height as well as window surface & height. -db86e7a63 Added support for the PS3 controller driver in PlayStation Now -77709aecc Added Android hardware feature support to the default manifest -7c5f3cf3c Added improved mouse pointer capture under API 26. (Thanks Rachel!) -113801b79 Added SDL_IsChromebook() to determine if we're running on a Chromebook. -2dedbc726 Add Android support for relative mouse mode to SDL. -9d6ac3def Fix creating a minimized window in SDL to not cause focus to be stolen (because ShowWindow( hwnd, SW_MINIMIZE ) would be called after creation, thus changing focus to the prior window based on some per-app list in windows, rather than the window being created with WS_MINIMIZED to start with). -1d25135b7 Fixed bug 4184 - jack audio driver fails in presence of midi ports -03ff7dcf6 Added support for Android relative mouse mode on API 24 and above -ff6aebc4a Added a new GUID for DS3 controller connected over bluetooth, for both Sony and Shanwan (thanks William!) -3d3870982 metal: contrary to documentation, we need to set the drawableSize explicitly. -8325df25a Fixed bug 4169 - Crash due to audio session observer race condition -b3173d9d3 Added support for the NVIDIA SHIELD handheld gaming device -5d1d03570 Better fix for axis sorting with some Android controllers -361043a5f Actually left trigger is motion axis 17 and right trigger is motion axis 18, which will map in that order to SDL axes. -4d9a34692 Added additional supported Android controllers -c07656dbc Fixed default mapping for Android controller triggers (they were reversed) -101544d6f audio: Needed to fix two more instances for Visual Studio. -0ad4b0b69 thread: fixed compiler warnings on non-Linux systems that use pthread. -49881861b audio: Patched to compile on Visual Studio. -b7e88aaae audio: Added ARM NEON versions of audio converters. -cb0e614fb audio: SSE2 float-to-int converters should clamp input. -a07e5815a audio: Fix range on float-to-int data clamping. -7832cb652 audio: float to int converters should clamp inclusively. -ed4fe4c9a testresample: correctly output .wav files that have floating point audio. -e2ec1eb12 audio: converting int32 to/from float shouldn't use doubles. -4df859c58 cpuinfo: Added SDL_HasAVX512F(). -4718791f1 cpuinfo: Make CPU flags easier to read and add to. -8543ad7df cpuinfo: Added some internal SIMD-aligned allocation functions. -999af8099 Merged latest changes from Steam Link app -e2619f1dc dynapi: don't let system loader resolve the initializer to the wrong version. -425149f47 remove testvulkan.vcproj (was a VS2008 left-over.) -652d59fb3 make sure SDL_vsnprintf() nul terminates if it is using _vsnprintf -c11ae93ae SDL_stdinc.h: move the alloca() includes before begin_code.h -fe032ff4c do the direct3d tap dance for overscan hint only if SDL_VIDEO_RENDER_D3D == 1 -a4d0571e4 Reverted change for bug 4152 - restrict the win10 mouse bug workaround to win10 v1709 only -eb14b635c Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window -c04dca0da Fixed bug 4159 - Windows headers are included after packing alignment change -0bade9b41 Fixed bug 4154 - Fix three empty variable tests in configure -606c5a585 Fixed bug 4152 - Windows 10 v1803 update seems to have fixed the jumping mouse bug (see bug #3931.) -386790efb Improved error messages when Vulkan isn't configured (thanks Daniel Gibson!) -8f780e76e Fixed build -f521b22eb Added SDL_THREAD_PRIORITY_TIME_CRITICAL -db94dfb1d Fixed bug 4144 - CMake complains about trailing spaces in sdl2.pc -a1b8fa607 TryLockMutex: Fix error handling for TryLockMutex -a9ae1b508 Handle NULL return from SDL_DBus_GetContext() -b5d231eed Handle NULL return from SDL_DBus_GetContext() -432312561 Added SDL_LinuxSetThreadPriority() to directly set the priority of a Linux thread (tid) This function tries using RealtimeKit connecting over DBUS as needed. -816a6e68e Added support for adjusting thread priorities using Linux RealtimeKit -dc8b55e50 coreaudio: Use the standard SDL audio thread instead of spinning a new one. -2df59062d wayland: zxdg_shell_v6 needs a configure event before using a surface at all. -5e8c81673 Fixed bug 4135 - Broken symlink libSDL2.so since rev11940 -b7228bc51 Added support for the GameSir G3w -9856d9677 Fix the include path in the installed CMake target import file -6b5ed0fd4 Added debug postfix to install command and fixed library path -6a0ef0cdb SDL: -4d78a9954 Fixed bug where an SDL window that was activated while hidden could never be shown. -e14278ef6 Fixed bug 3804 - Message box on Windows truncates button ID -b41b9d34c Fixed return value -8e062f692 Generalized the handling of instantaneous guide button presses so there's a minimum of 100 ms between guide button press and release. This happens with at least the following controllers: All Apple MFI controllers, ASUS Gamepad, XiaoMi Bluetooth Controller -d529b001b Added mapping for the ASUS Gamepad removing the guide button, which doesn't generate events even though it's reported in the Android APIs. -f536fbea7 Reimplemented Android cursor API support using reflection so it builds with older SDKs -e20d4173b Added Android custom cursor implementation This is commented out in SDLActivity.java, with the note #CURSORIMPLEENTATION because it requires API 24, which is higher than the minimum required SDK -1cfbe664f Added Mac OpenGL ES configure support -d401a77ef Fixed bug 4102 - define _WIN32_WINNT_WIN7 if not already defined -6d39e67ba Fixed bug 4103 - SDL_cpuinfo.h provokes warnings with -Wundef on non-x86 hosts -0a5c10654 Fix ARM builds with MSVC -cc7b2fc51 Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events -129431b4f Delay delivery of the pause button release on MFI controllers so it doesn't happen in the same frame as the button press -92847022f Added a mapping for the latest firmware for the Xbox One S controller on Android -a2c1d83c0 Include a USB VID/PID for Apple MFI controllers This is just placeholder VID/PID, but allows code that works with VID/PID to identify the MFI controllers easily. -a8ac58854 Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened -9e651b691 Try to dynamically create a default Android game controller mapping based on the buttons and axes on the controller. Include the controller USB VID/PID in the GUID where possible, as we do on other platforms. -2419d2672 Progress fixing bug 4100 - errors and warnings after changeset 11917 -e9b29ed00 Fixed bug 4101 - configure needs regenerating after changeset 11894 -ac2d1f677 Fixed setting the layer drawable size Without this change the drawable had a size of 0 and the metal renderer asserted because the projection matrix wasn't set. -cef1c1c2e windows: Restore patches for Task Dialogs and TerminateProcess(). -003c0dce9 Use the real controller name for game controllers on iOS and Apple TV -4f695bc5e Added tag release-2.0.8 for changeset dfbae17e87ac -e9fc66a03 (tag: release-2.0.8) Added patch note for Android Studio support -0df7fe840 Temporarily disabled fullscreen switching code on Android, until we can resolve bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop -eac376669 Added a patch note for OpenGL ES support on Mac -3537c3e7a Back out Task Dialog and TerminateProcess patches for 2.0.8. -6a1cfccef windows: dos2unix'd messagebox code, and (hopefully) fixed on MingW. -a749035f1 windows: Message boxes use Task Dialogs if possible (thanks, Jack!). -8536130aa assert: Use TerminateProcess() on Windows, vs ExitProcess (thanks, Jack!). -99683f7c0 Added patch note about the Vulkan Mac SDK -be6ca785e Support official Vulkan SDK for macOS. -f9f45d0bf Fixed bug 4097 - Segmentation fault by SDL_CreateThreadWithStackSize -5cbb90da0 cmake: Set debug library name suffix per target instead of setting it globally. Don't add a suffix on android -3ea093cc8 SDL_test_fuzzer.c: fix strict aliasing warnings by using a union. -cbfee82df Moved Android patch note into the Android section -6cf4d0e43 Fixed bug 4092 - CMake support for building everything in the "test" directory -849d042fa Fixed bug 4091 - Undefined references to Android audio functions when SDL_AUDIO_DISABLED is on -8e4afb556 Added patch note for Ryan's work -b33dbd276 Added missing file to tvOS build -99a0c0f0e Fixed MinGW-w64 build -5adc1b7d3 Updated documentation with API changes in SDL 2.0.8 -0626486e2 Backout the vulkan change in d449dea10fc8 breaks Mir builds -e17c3219d mir: Disable Mir by default as Mir supports Wayland clients -8891f5919 Backed out changeset 6c8521d53507 -fd8f12d2a android: apparently they fixed this header at some point. -ac309df7b vulkan: Possibly fix a compiler warning (-Wstrict-prototypes). -c7e436653 wasapi: let Windows do the resampling for us if possible. -7e1fa0ce5 wasapi: fixed typo in an assert message. -ed64d54df windows: added WIN_IsWindows7OrGreater(). -6e3d0a133 Use new XInput mapping for Win10+ (Bugzilla #3960) -69958441b Fix high-dpi support on macOS and simplify it and iOS variant. -a0687a9cc Fixed bug 4034 - Don't include _DllMainCRTStartup() if SDL_STATIC_LIB is defined. -c00858bfb Fixed bug 4088 - Fix Metal link errors with test programs in SDLTest.xcodeproj -58f9be125 Actually, this is needed for building with Visual Studio with both /MT and /MD. With the previous change, I get: 1> Creating library C:\projects\SDL\VisualC\Win32\Debug\SDL2.lib and object C:\projects\SDL\VisualC\Win32\Debug\SDL2.exp 1>LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 -3c9d33361 Fixed bug 4034 - Do we really need _DllMainCRTStartup() in every Windows build? -75a58303a pthread: fix error code checks (thanks, Andreas!). -2ea4419a5 yuv: patched to compile. -7c0c2c22a yuv: fixed variable declaration shadowing warnings. -97494f537 pulseaudio: Just read/dump captured data in FlushCapture. -6867f6189 video: put a spinlock around a global linked list. -8ddebfa06 Fixed bug 4085 - X11: Allow configuring _NET_WM_BYPASS_COMPOSITOR through SDL hints -926d803f8 bug #3739: handle %lu, %li and %ld in SDL_SetError. -5abd7d16d Don't attempt WM_NCCALCSIZE adjustment when in fullscreen window transition -ba0ecc671 fix building SDL_audiotypecvt.c with gcc < 4.0 -40b27fd51 revert the recent typecast assignment changes (see bug #4079) -ba9ede12f Fixed bug 4027 - CheckLibSampleRate macro in sdlchecks.cmake never defines HAVE_LIBSAMPLERATE{,_SHARED}, so they're always reported as disabled by MESSAGE_TESTED_OPTION macro in macros.cmake -f6366c09e Fixed bug 3920 - IBus not work with SDL 2.0.7 -3b4c2fdf5 Fixed bug 3947 - replace strlcpy with memcpy in SDL_strdup() -714085d32 Fixed bug 3950 - Don't always call dbus_shutdown in SDL_DBus -4ff16ba3a Fixed bug 4081 - sdlchecks.cmake: typo introduced by rev11848 breaks building with wayland support -8a1ae708d kill C99'ism in SDL_waylandvulkan.c -6e01fbb76 On Android show the system UI when an SDL window is windowed, hide the system UI when it's fullscreen, like we do on iOS. We're increasing the Android SDK minimum version to API 19, this doesn't increase the minimum target API, which is API 14. -66f9492b6 Fixed bug 4075 - configury adds Metal.framework to linkage even if it is not available -873141acb ISO C correct fix for casting void* to function pointer -882215e13 vulkan: Fix assignment of vkGetInstanceProcAddr on Windows. -1143857d7 Fixed bug 4073 - Unquoted Unicode argument parsing broken on Windows due to incorrect usage of SDL_isspace() -d5f293a77 Fixed compile warning -7c3600273 Fixed compiler warning on Android -2fc71d879 Windows Phone 8.0 is no longer supported -7b50aee93 Fixed min/max window size handling for borderless resizable windows -4c2a444e3 add SDL_log10 and SDL_log10f to include and dynapi -54340ab9d Fixed bug 4021 - Android, hard-coded Keycode value -b401cfd91 Allow Android Java shim to be built as an AAR -940933d89 Fixed bug 4054 - Raspberry Pi refresh rate detection -11c348b4d SDL_log10 -bd0def06e Set rpath instead of changing environment for RPi Credit goes to Adrian Perez de Castro for the improvement. -965c11f38 Fixed bug 4060 - Alternative DualShock 4 v2 controller GUID -c329381f4 Description: fix installation of shared library for Android Author: Boris Pek Last-Update: 2018-01-10 -cd5322074 wayland: Add support for xdg-shell protocol (unstable v6). -32d421d49 cmake: Minor cleanup (reuse a string we already calculated). -73c26c204 Send Apple TV remote input as key events unless it's opened as a joystick, to match Android behavior. -f59b9c8b1 Replaced SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS with SDL_HINT_TV_REMOTE_AS_JOYSTICK which controls whether remotes on iOS and Android are interpreted as joysticks (the default) or as return/escape/arrow keys. -6ed184ec6 Added SDL_IsAndroidTV() -2b441ec6c SDL Changes to support clean reads CR: saml -35322ed84 Fixed building on tvOS -85c34e9a3 Added SDL_HINT_IOS_HIDE_HOME_INDICATOR to determine how the home indicator on the iPhone X is handled. -330b19c96 Fixed building on platforms without __sighandler_t -90e72bf4e Fixed ISO C99 compatibility SDL now builds with gcc 7.2 with the following command line options: -Wall -pedantic-errors -Wno-deprecated-declarations -Wno-overlength-strings --std=c99 -e1d85985b Fixed misleading indentation -fab2e2463 Removed armeabi from the SDL build API list, since it's not supported by the latest Android SDK -2ceeb9933 Fixed bug 4065 - SDL_wave.c fail to compile in armeabi with ndk r16b -2d7420f23 Fixed bug 3985 - SDL_CreateWindow() has stopped changing screen mode when SDL_WINDOW_FULLSCREEN is used -af498591d testoverlay2: use SDL_atoi, not atoi. -e99daaf8b android: Fixed compiler warning about nested '/*' comments. -488824017 wasapi: Fixed some compiler warnings. -9338a619f Added a hint SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS to prevent turning Apple TV remote swipes into arrow key events -61261e59b EGL: Request sRGB framebuffer in correct place. -35554caf1 Make rpi video cross-compiler friendly. * Stops using fixed path to find GLES/EGL libs. * Tries pkg-config to locate bcm_host. -509db8afb Fixed formatting, added actual count to SDL error message -f9bdce61e Vulkan: Allow SDL_Vulkan_GetInstanceExtensions to be called with a larger array than necessary. -7cd39b7d1 Mir: Handle close window events -0cba68479 Fixed bug 4043 - SDL_windowswindow.c incorrect icon height -a0c4eb2aa Restored borderless window behavior where DOTA created a borderless window the size of the desktop and expected it to behave like a fullscreen desktop window. -3bfada2e0 Android: resolve symlinks in SDL_AndroidGetInternalStoragePath (thanks Henrique Gemignani and cigumo!) -72d450791 Added availability check to fix compiler warning for symbol only available on tvOS 11.0 and newer -7d5437bb3 metal: set max texture size based on device capability. -a8c0532c0 metal: Fix pipeline states to use the pixel format of the current render target, instead of a hard-coded format. -740a90af3 metal: Add support for YUV/NV12 texture formats. -9a8683b27 metal: use a private instead of managed buffer for the renderer's non-changing constant data. -990ebba55 metal: Implement fast hardware clearing when possible, by deferring the start of a render pass until a clear or draw operation happens. -66baf7363 Fixed spacing in copyright headers -7c60bec49 Fixed bug 4018 - Implement SDL_GetWindowBordersSize() under Windows/Win32/WinAPI -8111a632b Fixed bug 4013 - Wayland: fix videoquit on multimonitor system -1fa4bcca6 Fixed bug 4012 - Wayland: invalid direction on mouse wheel -6bc387372 Fixed bug 4011 - Wayland: fix free cursor -e3cc5b2c6 Updated copyright for 2018 -888198ee3 metal: Misc. improvements. -f9cd76502 metal and moltenvk: fix highdpi. -ef1014ac6 configure script: Implement testing for build-time Metal SDK support. -b3b5c4736 Fixed direction of y adjustment for new orthographic projection in the metal renderer -fa86807ce Fixed metal renderer pixel centers when drawing -07f08b47f metal: Fix a typo preventing iOS compilation... -1cc660337 metal: Clean up manual reference counting. Fixes some memory leaks. -7c667a6f7 windows: Remove references to GetVersionExA (thanks, Andrew Pilley!). -a452a0845 iOS: fix build -639ea9fdb metal: Use sampler state objects instead of shader-declared samplers for linear vs nearest filtering. -cf45cf70e metal: Add support for custom blend modes. -85470a2f9 metal: implement SDL_RenderCopyEx, and fix a memory leak in SDL_CreateTexture. -047d387b2 metal: Use the existing cocoa code for creating a Metal view on macOS. Fixes the renderer size when the window is resized. -48fea0cee macOS: Fix MoltenVK Metal view resizing, and allow the metal view to be used without vulkan. -6d32ebdbc winrt: Add mmdevapi.lib dependency to WinRT8.1 builds, for WASAPI support. -027d63bc0 winrt: workaround for pre-UWP builds. -140cc4600 windows: Use WaitForSingleObjectEx() always -77bb49b7a wasapi: Patched to compile on non-UWP WinRT builds. -c0c305694 winrt: Disabled Windows Phone 8.0 builds. -791c0dd8a winrt: bumped SDL's shipping version number in winrtbuild.ps1 -42b19c974 metal: Respect the vsync flag on macOS 10.13+. -e24dc9053 metal: use a projection matrix instead of manually transforming vertices into clip space on the CPU. -49df65c25 metal: only 4 (instead of 5) vertices are needed to draw rectangles and textures, and only 3 (instead of 5) vertices are needed to cover the screen for the 'full-screen quad' when clearing. -d027f3602 xcode: Add Metal and QuartCore to everything as a weak_framework. -64ec4c333 macOS: Make sure the desktop's display mode is always in SDL's list of display modes. -616827ae6 Fixed bug 4001 - Android, prevent error message box to crash -b7be5bce3 Fixed bug 4000 - SDL2 on raspberry: mouse displayed at 0,0 after SDL_ShowCursor -70082db84 Fixed bug 4003 - HAVE_POLL undefined in SDL_poll.c, making it impossible to use. -b92e2f027 Fixed bug 4004 - iOS: don't hide keyboard on RETURN -fee2469c6 Fixed bug 4005 - Android, SDL_IsGameController() crashes is index is out of range -e5cfa2418 Fixed default Android D-PAD mapping so the back button is treated as B -255362a3e Fixed handling of the Apple TV remote buttons The menu button on the remote is the back button -cc30e1eb3 Added support for the ASUS TV500BG Android gamepad -95d8396e9 Added Android build script for SDL -ab4695f48 wasapi: switched to event-driven interface. -988034fcc windows: Fixed a comment. -684c5847a Moved deployment target values to project settings -35a2eed3c Parameterized the All (target platform) build target scripts so they can be used in other projects -18577a70d Fixed bug 3992 - SDL_GetColorKey doesn't set error message -87894224b Fixed bug 3981 - Inverted logic bug in SDL_renderer "overscan" feature -0597bf6e9 Fixed bug 3993 - altivec.h include in SDL_cpuinfo.h breaks compilation with -std=c++11 -ca7297668 Fixed bug 3996 - Corrupted or over-released critical section on SDL_Quit (SDL_event_watchers_lock) -2afc0b7fa Add the ability to set SDL to handle Return as 'hide IME' on Android softkeyboard. (thanks Rachel!) -e8bbbb37f Added support for Android video textures -bed7fd806 Merged latest changes from rel/streaming_client -527a8eb05 Renamed Xcode build targets so it's easier to copy files out of build directories on the command line Also enabled bitcode, which is needed for App Store builds -638d4fe3f Added SDL_uikitmetalview.m to the tvOS project -e0d0184f0 Fixed bug 3999 - Build failed when try to build with configure script for Android -f1ec8a5f4 Check for immintrin.h before using it in SDL_cpuinfo.h -1b16618b1 Fixed Windows gcc build -7ac46a744 The newer compilers generate the property boilerplate automatically -358e4d9c7 Fixed Mac OS X build -ab06f570a Workaround for bug 3931 - spurious SDL_MOUSEMOTION events with SDL_HINT_MOUSE_RELATIVE_MODE_WARP 1 since Windows 10 Fall Creators update -baae74c85 Added SDL_WinRTGetDeviceFamily() to find out what type of device your application is running on (thanks Daniel Knobe!) -3ae976893 Added the Metal framework to several iOS tests -c2cc9c166 Backed out using pixel texture coordinates, it had weird visual side effects -8aad49238 Fixed normalized coordinates when the viewport is set -441d30955 Added support for linear sampling and pixel coordinates in the metal renderer -1c43705ba Fixed compiler warning -f55c99889 Fixed pixel positioning and size for the Metal renderer -7dac177cd metal: fixed render target support. -85d12d8f2 metal: Added some comments and FIXMEs. -dbce1341d audio: fixed typo in Doxygen comment. -bcf1e6228 Removed duplicate entry for SDL_wasapi.h -686fc0937 metal: Cleaned up some reference count politics. -7cb8b50ad hints: Add "metal" to the list of SDL_RENDER_DRIVER hints. -cf3d45031 Added SDL_RenderGetMetalLayer() and SDL_RenderGetMetalCommandEncoder() -c403c0fa9 Fixed Metal renderer memory leak -81a33985e metal: Don't check if Metal is available if targeting modern macOS versions. -b733dcc20 Minor cleanup -5182c23c6 Fixed minor memory leak in the Metal renderer -cac4e3126 Added check for failure of D3D_ActivateRenderer() -127841f31 Fixed compiler warning -1a1cd8c14 Fixed bug 1878 - Scaled texture draws with filtering produce wrapping artifacts. -747296380 configure: List Metal in video drivers. -dc04f290a Defer getting the next drawable until we actually start rendering This works better for games where there may be a bunch of simulation logic that needs to be run before the next rendering pass, and prevents blocking if the next drawable is busy. -104decd16 Fixed runtime errors on iOS -ba9c336e0 Fixed building for simulators or older iOS SDKs -6deb1e759 Fixed compiling Metal renderer on iOS -1ae73a2be Added iOS and OSX versions of the Metal shaders -b2859af6d Enable building the Metal renderer by default, and weak link the Metal framework so the SDL library is safe to use on older Macs Also generate iOS versions of the Metal shaders -2a2c8d42c Initial shot at a renderer target for Apple's Metal API. -cadf3e44c The Metal view is a full SDL_uikitview to support multi-touch -ef6e629d3 cocoa: Added two missing files from hg changeset da7ba330ec68. -351d6d478 audio: Port WASAPI to WinRT, remove XAudio2 backend. -083fe066d winrt: Patched to compile on Ryan's workstation. :) -47506fe1d Fixed bug 3974 - Fix SDL_WarpMouseInWindow on both KMSDRM and RaspberryPi drivers -57ebc7271 Fixed bug 3975 - Add GLES2 support for macOS via ANGLE library -7914725bf Removed spurious debug output -5a735da96 Fixed SDL_Log not working on windows if the output is being redirected. -14452e955 Fixed typos (thanks Martin!) -67950e101 Fixed name of eglCreatePbufferSurface function -e943d1ce5 Fixed bug 3945 - Add eglCreatePbufferSurface function -25df5a5ac Non-resizable windows need to have their window rect set to the client rect -88e3562ba Use the included Khronos headers on Android so we can create Core OpenGL contexts when building with older SDK -8758b7bf1 Fixed bug 3980 - Fix for KMSDRM driver where cursor would not be shown on some gfx hardware because of unsupported cursor size -5f38b5d70 Fixed bug 3979 - Failed to link with "multiple definition of `scalbln'" error on both MinGW and MinGW-w64 by CMake -f776997af Fixed some compiler warnings -ac4b491b2 Disabled spurious Visual Studio warnings in the uClibc math code -1c0c90323 Fixed bug 3976 - SDL drivers may leak driverdata memory due to ignoring return value of SDL_AddDisplayMode -688bc2858 Steam Virtual GamePad config for macOS -3ac8adbae Fixed bug 3973 - Include of stdint is needed to build on linux, mingw and possibly android -a4b33d745 Fixed bug 3959 - cmake build broken by commit 11702 (7fdbffd47c0e) due to typo -dba9979f4 Added support for aarch64 memory barrier instruction -8fb3885c3 Fixed bug 3964 - YUV to RGB in video/SDL_yuv.c is broken for any output format of type ABGR8888 or BGR888 -cd89efb8b Fixed building yuv_rgb.h when stdint.h isn't available (thanks Ozkan!) -4764f7a45 Fixed building YUV test programs (thanks Ozkan!) -a6a4e27ae Updated SDL's YUV support, many thanks to Adrien Descamps -c317ab978 Fixed Android build error on older SDK -20364769e Fixed typo in comment -846d00803 Only include Intel intrinsics header on x86 and x64 -4026db8c7 Replaced the intrinsics header with the single header that includes all intrinsics so we can use AVX, etc. -5501bcc83 macOS: Fix an OS-generated warning printed to stdout on launch in bundled apps. -fcb77f984 Back out the following commits which are causing Dota 2 Exclusive Fullscreen to fail on AMD-based Macs. The details of why this is being reverted are at: https://bugzilla.libsdl.org/show_bug.cgi?id=3949 -9f4e4be8e Fixed bug 3943 - General SDL_HINT_VIDEO_DOUBLE_BUFFER hint support -5cc46f3d3 mouse: remove assert for unimplemented platforms (thanks, tomwardio!). -bbb22a75c Updated version to 2.0.8 since SDL_image depends on it -c5429bd97 Fixed bug 3939 - Remove static vm_error and vm_event from SDL_x11modes.c -50e422adf Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable -2c5724ef5 Updated version to 2.0.8 since SDL_image depends on it -afbba1822 Fixed compiling on Windows with HAVE_LIBC enabled -34a8cf767 Fixed compiler warnings after uClibc code update -bcdf8b916 Added SDL_fmod() and SDL_fmodf() -6cf065753 Updated math code from the uClibc 0.9.33 release -34502143d Added float versions of SDL's math functions -bba90a656 Fixed using libunwind on iOS, where it's only available on the simulator (thanks Vit!) -758156a76 Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable -7334a2a1b Fixed bug 3940 - Add support for EGL_SURFACE_TYPE -bf3e363d4 Raspberry Pi: fix ES 1/PVR support & autodetect Mesa driver * The brcmGLESv2 vendor library also supports ES PVR/1 profiles * Fallback to standard Mesa libraries if the VC4 driver is loaded -547448df6 SDL_video: try to bootstrap KMSDRM before RPI video driver Allow better coexistence between RPI's vendor libraries and VC4 mesa driver. -7abef33c5 Android configure-based build fixes (thanks Vit!) -172431334 Emscripten: use cursor hotspot the cursor's hotspot simply wasn't translated to it's CSS equivalent, yet see https://developer.mozilla.org/en-US/docs/Web/CSS/cursor?v=example#Syntax. no explicit hotspot if (0|0) for compatibility with Edge and IE, which indeed don't support custom hot spots -bb8c3a9cc Make SDL fullscreen windows on Android actually fullscreen -c954b5383 Fixed bug 3935 - Not find joysticks if android run 24-48 days. -522901b88 Fixed bug 3933 - Android, no need of the listener thread -1475e6984 Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable -8c4658023 Allow the activity to persist through connecting or disconnecting a keyboard -62c3acaf9 Moved the meta-data into the right section -54a0245b7 Fixed bug 3926 - SDL_main export -9192c93e9 Fixed bug 3932 - Android, GetDisplayDPI release local reference -a7d2d12c6 Fixed building on non-Android platforms -a90be440e Added controller mapping for Android TV remotes Also fixed the back button on the remote exiting the application -4478707b0 Add SDL_GetDisplayDPI implementation on Android. (thanks Rachel!) -0e032d586 WinRT: Move Windows::Foundation::Initialize to SDL2.dll, from SDL_main. -6d23ea4bf Fixed Java string comparison with "" -fa5db3a93 Added the old ant Android build project structure -2ac567b71 Fixed bug 3902 - Add a specific KMSDRM hint for low latency video -f24c6672a Updated SDL iOS project for tvOS -213b24909 Added missing keyinfotable.h -8e37bed3b android: Fix softkeyboard issue in SDL on Android. -9bbf92e3d cocoa: Don't change the NSWindow background color. -8fd0c22ad Added the ability to set SDL hints from AndroidManifest.xml (thanks Rachel!) This is especially useful for things like the accelerometer hint which could be needed before application main(). -45536710f Fixed crash if mSurface isn't set up when we pause the application -81f7e0c1f Removed unneeded file automatically generated by Android Studio -b8d8a1f12 Updated the minimum and target SDK versions in AndroidManifest.xml -edf0fae13 Updated Android build tools version, which bumped minimum deployment target to API 14 Also added native code to the Android gradle project, which allows using gradle or Android Studio to build the entire SDL application without a separate ndk-build step. -76cdce440 Fixed build with older Android SDK -f08480af7 Switched to new style gradle Android application build process -862da6ff1 Added tag release-2.0.7 for changeset f69c9f74a857 -b89cac676 (tag: release-2.0.7) Don't X error in SDL_CreateWindow with unsupported GL attributes -adc64f922 Added Visual Studio solution files for WinRT projects -10376eb92 Fixed bug 3901 - Fix vsync-ed pageflips on the KMSDRM video driver -e830ef345 Fixed typo converting 4 channel audio to 2 channel -9a291c1e5 Added a note about adjusting channel weights when converting to fewer channels -fe2b5fec6 Document the SDL audio channel mapping -7a6cf53ae Added SDL_AudioStreamFlush() to the list of new audio stream functions -c339d9ed6 Reverted changes 6acdea394736 and 1448a2ac30fe I don't want to introduce any regressions with Android TV remote support -2001898dc Fixed Android joystick detection -729329068 audio: Added SDL_AudioStreamFlush(). -9d9be4568 Don't use DPAD devices as joystick input on Android -e98920f5f Check correct variable for malloc() results. -afefcbfeb Fixed bug 3876 - Resampling of certain sounds adds heavy distortion -653ab5d9c Added a staging buffer to the audio stream so that we can accumulate small amounts of data if needed when resampling -80f8464d9 Added audio stream conversion functions: SDL_NewAudioStream SDL_AudioStreamPut SDL_AudioStreamGet SDL_AudioStreamAvailable SDL_AudioStreamClear SDL_FreeAudioStream -9fd0d6191 Fixed bug 3821 - Allow SDL_CreateWindow and SDL_CreateRenderer with OpenGL ES 3.0 (GLES3) for Angle (Windows) -556a85443 Fixed compiler warning on iOS -e4ef1885d Fixed bug 3890 - Incomplete fix for CVE-2017-2888 -a225ffc1d Added min/max macros for the sized SDL datatypes -8e98bdaa6 Fixed bug 3883 - SDL_assert / SDL_PromptAssertion in TTY mode does not accept options ("abriA") -f658a737f Fixed bug 3882 - cmake fix for osx -dff56c349 Android Studio code analyzer fixes -a223560a7 Fixed bug 3880 - X Error upon quit since rev. 11607 -cf9236488 Fixed bug 3879 - add missing SDLCALL to SDLTest_TrackedMalloc & co. -fa1567413 coreaudio: changed device close procedure to prevent long hangs in some cases. -0506d4fc4 Build both 32 and 64-bit architectures in the OSX Framework -fc60db86b Fixed compiler warning -22b6df511 Use the lower-case hex output to match other stack trace printouts -707919569 Fixed compiler warning -5fc201766 Fixed bug 3877 - missing SDLCALL in SDLTest_ExampleHitTestCallback -4b2842988 Android doesn't have libunwind.h in API 16 -41a60394d Added missing file -21cd2df69 Fixed compiler warning -ba10d2b65 Fixed compiler warning -9c580e14c Added functions to query and set the SDL memory allocation functions: SDL_GetMemoryFunctions() SDL_SetMemoryFunctions() SDL_GetNumAllocations() -1887c54c6 Fixed memory leak in Cocoa mouse code The video quit call cleans up the mouse cursor driver data, which happens after mouse quit -f4cd68a53 Fixed bug 3866 - CMake error when trying to make the 'uninstall' target when it already exists -4f38db173 Fixed bug 3867 - Can't find install_manifest.txt when running 'uninstall' target -f4f9e39f6 Fixed bug 3874 - Compiler warnings SDL_Surface.c and SDL_cocoakeyboard.m -a7c79c5e2 Normalize touch events to the render viewport (thanks Sylvain!) -5bed4ca92 Fixed divide by zero with a 1x1 sized window -bef0fec12 make sure that SDL_malloc(0) or SDL_calloc(0,x) doesn't return NULL. -0ce23a549 Updated version to 2.0.7 -84fb4893c Check SDL_UDEV_DYNAMIC first, then SDL_UDEV_LIBS separately -c0019b7f4 Fixed bug 3871 - Touch events are not normalised on X11 -b53c35df4 Fixed size in realloc -5e5f2290f audio: Turns out the accumulation errors sound better. :/ -9bd2c6b49 audio: Moved the resampler state up to double precision. -b2f5123b6 audio: calculate resampling time directly, don't increment (thanks, Eric!). -763c38714 audio: clamp resampler interpolation values to prevent buffer overflow. -0085f917e audio: Moved unchanging variable out of loop. -cb8bf6bba audio: Make sure audio stream resampling doesn't overflow buffers. -459e2b0bb audio: Fixed check for minimum audio stream put size. -0e495e83d Updated WhatsNew.txt for 2.0.7 changes -8446d4a05 Changed overlapping memcpy to memmove -eb9e6938c Fixed potentially calling a callback after it has been removed (and userdata possibly deleted) -903ff6414 audio: SDL_ResampleCVT() should use memmove instead of memcpy. -42fff7ce2 audio: Don't stack-allocate resampler padding. -b647bd069 The event filter and event watch functions are now thread-safe -37d89aa10 audio: reworked audio streams to have right-hand resampling padding available. -28149e11c Added SDL_PeekIntoDataQueue(). -d90fce3c9 Exposed the joystick locking functions for multi-threaded access to the joystick API -2657dfae4 Fixed crash in SDL_IsGameController() on Windows if called when a controller is being removed -b120fb879 Fixed bug 3865 - [PATCH] Support for GreenAsia Inc. PSX to USB converter as SDL_GameController -d2a2b0c13 Fixed bug 3857 - SDL_ConvertPixels misses YUV conversions -1bfe6d602 Fixed restoring window size when coming out of fullscreen desktop mode. Use the style of the window as it will be, not as it currently is at the time of the AdjustWindowRect call. -e9652b198 Fixed bug 3857 - SDL_ConvertPixels misses YUV conversions -827e98504 Fixed bug 3862 - Install is broken when adding SDL2 to an existing CMake project -d9e1036e0 Fixed potential overflow in surface allocation (thanks Yves!) -312da2623 Fixed bug 3854 - arguments to dbus_type_is_basic() were incorrect -db20e71d5 Fixed bug 3855 - Memory leak in SDL_FreeSurface -e564da78b revert files I didnt mean to commit! -e27f12e0d wayland: Fix bug 3814 -Wmissing-field-initializers -aad58c622 Fixed bug 3852 - SDL_FreeSurface deallocates surface->map even if the surface is not yet freed -bd5c984ac Fixed bug 3850 - incorrect numbering in docs/README-ios.md -54685787c Fixed bug 3847 - Hit Test x coordinate wrong on secondary monitor -fb071a4cd Mac: Fix the menu bar not always working for non-.app-bundled apps. Fixes bug #3051. -c44e741bd Fixed bug 3842 - fix SDL_thread.h for emx -14ed0d24c Fixed bug 3843 - Android missing some code in SDLHapticHandler -099ae43e8 audio: Fixed compiler warning on Visual Studio. -58d1c54d0 Fixed spacing -0fea9164e Added an example for SDL_SetWindowHitTest() when you create a borderless resizable window. -e763dac6d Good bye, Visual Studio 2008 -260db92cb Added stub Steam Controller sources to Android and iOS command line builds -2fd523514 Added stubs for simple Steam Controller support -82557750b Separated out SDL Android java code so audio, controller, and filesystem APIs can be used independently of the SDL activity, in Qt apps for example. -4187b3d76 Removed non-existent files -2079ec992 Removed non-existent files -d82864794 Added stubs for simple Steam Controller support -53b2c91d2 Separated out SDL Android java code so audio, controller, and filesystem APIs can be used independently of the SDL activity, in Qt apps for example. -ad86eff1a Guarded EGL code with SDL_VIDEO_OPENGL_EGL -499f928c3 borderless windows will have WM_NCCALCSIZE return 0 for the non-client area. When this happens, it looks like windows will send a resize message expanding the window client area to the previous window + chrome size, so shouldn't need to adjust the window size for the set styles. -3176a7f5e sdl -cc023b6b8 Fixed bug 3837 - Change project settings for Xcode 9? -f0111b6ac Added tag release-2.0.6 for changeset 8e2bab21d23b -fe6b8f1c3 (tag: release-2.0.6) Fixed Mac OS X build -28602b123 The volume was too high, clamp to SDL_MIX_MAXVOLUME -407e1693a Fixed audio being silent on older iOS devices Tested on an iPod running iOS 6.1 -12efabcbf Added instructions for deploying to older iOS devices (thanks Sylvain!) -5ab5c9b76 Avoid duplicate joystick axis events -d74c00e67 Fixed memory leak when HAVE_ALLOCA isn't defined -59d17bdee Avoid hitting ERR_MAX_STRLEN limit. -6d206a7b2 audio: Stream resampling now saves some samples from previous run for padding. -466ba57d4 [egl/mir] Need eglGetProc to find gl 4.5 core profile extensions -e5cfb58f4 iOS MoltenVK code style cleanup. -80f9e2f19 iOS: Fix compiling using the iOS 7 SDK, partially broken since MoltenVK support was added. -b3ac0b6fb A hint with an empty string should be treated as the default value -eaab6098e Only apply the jitter filter to prevent unexpected motion on axes that haven't been touched. -5ae90ef67 Fixed bug 3788 - software renderer crashes in SDL_RenderCopyEx with rotation and dstrect w or h is 0 -8b660c504 Added some missing "extern" declarations -f40bd5ee2 audio: removed my perl experiment script. -1a3b95a11 audio: Replaced the resampler. Again. -3c45e662f macOS: remove unneeded #includes. -f0a324f8e Reverted Alex's commit 131cba1768a5 - we're about to release 2.0.6, don't remove support for the iOS 7 SDK yet. -d452b89f9 iOS: I don't think SDL compiles with the iOS 7 SDK anymore, so we might as well drop the #ifdefs trying to guard for that. -12fb004fb iOS: remove an unused static variable -e365968a4 WinRT: minor formatting tweak in README-winrt -f57ef6ff9 WinRT: noted UWP's inability to work with some game controllers -c08a7a74a Added a hint SDL_HINT_AUDIO_CATEGORY to control the audio category, determining whether the phone mute switch affects the audio -46ec13052 Fix for 3829. Revert adding GameSir G4s, uses same GUID as PS3 controller. -73c85e986 Readd support for GameSir G4s, lost with changeset 11431 -e8187a3f7 Updated iOS keyboard test to cover text input rect and orientation changes -cfe72c76e Fixed iOS keyboard positioning, based on the final position rather than the initial one -76176486c surface: Make sure SDL_ConvertSurface() deals with palettes (thanks, Sylvain!). -ac782d712 Added support for the PDP Battlefield One Xbox One controller on Linux -78b83d3a6 WinRT: build fix when using recent versions of the Windows 10 SDK -e98fc8972 Fixed bug 3812 - Fallthrough warnings gcc-7 -5f48ce0b6 Fixed bug 3815 - implicit-fallthrough warning - DUFFS_LOOP4 and friends -19114b037 Fixed bug 3813 - gcc7 fallthrough warnings in SDL_iconv.c and SDL_pixels.c -849c4c147 Fixed tabs to spaces -8ed16ea46 Fixed compile warning -16b8c4ea4 Fixed bug 3811 - change HAVE_COPYSIGN to HAVE__COPYSIGN in SDL_config_windows.h -2cdb96743 Fixed the include path for khronos with Visual Studio -be1caece4 Correction: copysign has been supported by windows several toolchains for a very long time, including MSVC6, MinGW, LCC-Win32, (no released watcom versions though, but that's of no concern.) -93583d461 alsa: removed snd_pcm_wait() call before writing to playback device. -569c222ca Updated documentation so it's clear you should use SDL_SetWindowDisplayMode() to change the size of fullscreen windows. -b2ba8963b Fixed bug 3809 - Restore after maximize leads to wrong size -676c3a926 Fixed bug 3719 - Cocoa - Incorrect window size when leaving fullscreen -fcd9c1902 Fixed window size when leaving fullscreen mode (thanks Eric!) -f465f24d7 Fixed bug 3760 - RWops doesn't check for integer overflow when stdio_fseek only supports 32 bits -125d8f59f Make sure the libtool archives are installed -9a73909bb Fixed bug 3808 - fix a typo in SDL_stretch.c -24a749569 Updated config.guess and config.sub, added config.sub.patch for NaCl and Emscripten build support -5c8bde4f7 Updated documentation to note that libvulkan-dev is no longer needed -f33377802 Fixed bug 3807 - Remove restriction from DECLSPEC macro for OS/2 -8004be644 We don't need libvulkan-dev to build Vulkan support -47cb8815a Updated Debian changelog for 2.0.6 release -222d25ad4 Fixed bug 3805 - Why is there no --enable-video-rpi option in configure? -e8059221b Fixed bug 3806 - Fixes for MSVC compiler warnings -0ddac338b keep joystick thread from waking unnecessarily, and from possibly blocking for 300ms at shutdown if a joystick was just plugged in -cedbb3118 Fixed building with the first version of Visual Studio 2017, which doesn't have __has_include() (Thanks Simon!) -1b2492ed8 Fixed 64-bit build warning -4657d9f33 We don't need to pass the renderer into SDLTest_CleanupTextDrawing() -65c55fdd8 Fixed build -b0b3da770 Added a function to clean up test text drawing -ca15c7d67 wave: SDL_LoadWAV now supports 24-bit audio. -fb2839320 vulkan: use "unsigned int" instead of "unsigned" -0c892abcd raspberrypi: The latest Raspbian moved its EGL and GLES2 libs elsewhere. -fa0eeff7f sdl: -20c5bc913 You can have a borderless resizable window -4ca5d8622 Fixed bug 3780 - GCC 7 implicit fallthrough warnings -28bf56c12 Fixed bug 3801 - HAVE_LIBSAMPLERATE_H depending on HAVE_LIBC in current SDL_config.h.in -d51dc7378 Fixed bug 3797 - configure check for float.h -c8e3e0c41 Fixed bug 3799 - SDL_CreateWindow fails with SDL_WINDOW_VULKAN (libvulkan.so.1 not found) -c9e73c3e0 x11: make sure SDL_GetGlobalMouseState notices mouse warping through SDL APIs. -0782f9be5 Fixed bug 3273 - Fix for slow video subsystem initialization when using XRandR. -3261ca754 Fixed typos in 2.0.6 patch notes -d2eda2671 Added SDL_vulkan.h to the Mac OS X framework headers -c1fd0fbb3 Fixed compiler warning with mingw-w64 -657ad72ac Added some more big 2.0.6 changes -d75fea89d Updated WhatsNew.txt for 2.0.6 -67f9348ba Fixed bug 3790 - Memory leak with surfaces blitting on each other -532446a6b macOS: bug-fix for #3793, "fullscreen toggle does not maintain SDL_Renderer's logical size" -2ea09903e WinRT: listed VS 2017 optional-component requirements -a12989f94 vulkan: Changed SDL_WINDOW_VULKAN value to match Tizen's fork. -167398b36 video: Let video targets optionally decide their default OpenGL configs. -3267398d1 sndio: Patched to compile if SIO_DEVANY isn't defined. -c26946e9f Fixed bug 3792 - [KMS/DRM] Wrong GBM format -74043994b x11: Correctly restore previous GL context after sacrificial context is done. -a3dda100f x11: don't try to make a NULL GL context current when we already did that. -4649ac463 x11: Clean up sacrificial GL context code. -507659c6a x11: Make a sacrificial glX context to check for extensions during init. -20207abf8 macOS: Update controller mapping of Steelseries Stratus XL to account for reversed thumbstick y-axis values (bug #3483). -d7ae31313 macOS: Fix menubar items being enabled when they shouldn't be. -b959be256 Code style cleanup in the Cocoa and UIKit vulkan files. -cfd7a7fac macOS: Prevent unwanted native fullscreen (Spaces) toggles when the window is in fullscreen or isn't resizable. Fixes bug #3691. -ff76f8e5b Fixed bug 3791 - SDL_bits.h: __builtin_clz is supported in gcc >= 3.4 -6c38c9007 Update Android SDK required to API level 16 -b54bcb34d Fixed bug 3483 - Steelseries Nimbus MFi controller reversed Y-axis analog stick -8e160a34a Convert tabs to spaces in game controller database entries -347fe7043 Fixed bug 3789 - Android : small clean up -b5f31c392 Moved haptic source files into the proper folder -e53c5c5c5 Fix QNX build - prioritize system EGL headers over the Khronos ones -9ca629237 Added some missing render capability flags -c3d428d40 Fixed line breaks in verbose test logging output -94e0f3e95 Added some debug messaging for previously unhandled events -2d10a3f2b The dummy video driver check is now covered by explicitly checking for cocoa above. -92bf60852 Fixed bug 3616 - SDL_GL_CreateContext fails with SDL_GL_CONTEXT_DEBUG_FLAG and ANGLE/GLES 2.0 -8fc1fb080 Fixed bug 3719 - Cocoa - Incorrect window size when leaving fullscreen -846a9ab95 test: forgot to change a variable. -4fc016385 test: Fix for negative int that was now a size_t (thanks, Ozkan!). -21e32bac1 egl: Cast to size_t, in case platform's NativeDisplayType isn't a pointer. -eb3c66d3c A few more compiler warnings fixed. -ae667da63 Fixed a bunch of compiler warnings. -629f8abab Updated documentation, you don't need to initialize the audio subsystem to do in-place format conversion. (Thanks Simon Hug!) -abf8fc4c0 Fixed check for Mac OS X 10.11+ SDK (thanks Edward Rudd!) -2d655cd81 MAC_OS_X_VERSION_MAX_REQUIRED isn't actually set in recent Xcode versions -737ed973c Removed Metal and QuartzCore frameworks which aren't needed for Vulkan support -c684eb2cd Add a way to set the context when other activities are active so many SDL API functions still work. -130138fa5 Fixed bug 3785 - fix windows build after revision 11382 -c0530bcdf We removed QuartzCore link dependency in commit 5be6badaf7e1 -8ac85744c Fixed Vulkan configure check for Android and added one for Mac OS X -90b38a5d6 Fixed bug 3786 - building against a Mac OS X SDK < 10.11 fails since the vulkan merge -d619d8856 Fixed bug 3662 - Error message when using the audio conversion setup without an initialized audio subsystem is a bit vague -b128e8802 audio: A whole bunch of improvements to audio conversion (thanks, Solra!). -620f5342b stdlib: An implementation of SDL_scalbn using ldexp() (thanks, Ozkan!). -a0cd7d6bc audio: Converting audio samples from int to float was using wrong equation. -1067b528d Fixed building with an older Mac OS X SDK -e8b114ecf Vulkan support on Mac OS X introduces a link time dependency (CAMetalLayer) on 10.11 and newer -309474765 We don't need the VULKAN_SDK to build SDL with Vulkan support anymore -09e43d450 Added missing Visual Studio 2010 project for testvulkan -aa85436ec Fixed compile warning -da84c3bf6 Added a log message for nativeRunMain() -60182eb71 Allow overriding the main entry point on Android -dbb0a2aa7 Removed the need for libSDL2main.a on Android, and separated JNI initialization out for other integrations -934158992 Removed unneeded Vulkan symbol definitions -2a945b44c Fixed bug 2361 - [Android] Joysticks do not have unique IDs -c45932ba7 Fixed bug 2277 - Hardware keyboard control key sequences don't get reported -0560544d1 Fixed 3783 - Default libGL path for directFB on Linux differs from x11 path -d28cb702e Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h -959ae9019 Instantiate the CAMetalLayer so SDL_Vulkan_CreateSurface() doesn't fail Error message was: [mvk-info] MoltenVK version 0.18.2. Vulkan version 1.0.51. [***MoltenVK ERROR***] VK_ERROR_INITIALIZATION_FAILED: On-screen rendering requires a view that is backed by a layer of type CAMetalLayer. 2017-08-28 02:17:29.579 testvulkan[95627:1716939] ERROR: SDL_Vulkan_CreateSurface(): vkCreateMacOSSurfaceMVK failed: VK_ERROR_INITIALIZATION_FAILED -6dd3f55d5 Fixed WinRT build after changing the header guard preprocessor symbol -ff8d2e149 Fixed build when Wayland is dynamically loaded -edaa0ef53 Fixed analyzer warning "Call to 'calloc' has an allocation size of 0 bytes" -3c7f9d692 Fixed redefinition of typedef warnings and errors on BSD -50efbda73 Fixed mingw Windows build, since SDL_vulkan_internal.h includes windows.h -0d011ec66 Renaming of guard header names to quiet -Wreserved-id-macro -ce2b16445 Be clear that disabling Vulkan surface support disables the entire SDL Vulkan integration -5cd1a9591 Fixed Android build with Vulkan support -0cebef607 Fixed code style for new Vulkan API functions -ea91908e9 Fixed Android ABI check to match vulkan/vk_platform.h -34bdee53c Make the androidbuildlibs.sh script executable -37ce9f277 Fixed typedef redefinition errors when including both SDL_vulkan.h and vulkan.h You should always include vulkan/vulkan.h first, then include SDL_vulkan.h -9da4717d1 Fixed Windows warning -82ffabc86 Fixed Android build -24a0d3bc6 Don't define Vulkan types if vulkan.h has already been included -1f2e151b4 Added Vulkan support to the Visual Studio 2010 solution -213356cd6 Don't need the Vulkan SDK for the Visual Studio 2008 project anymore -ded5b3a4b Fixed crash at shutdown if the window couldn't be created -071e10183 We use the SDL Vulkan headers -eb5392ad6 Added the new Vulkan API functions to exported functions -c722e58d1 vulkan: Include a copy of vulkan.h and vk_platform.h. -803fd6d52 Use SDL_Vulkan_GetDrawableSize() instead of SDL_GL_GetDrawableSize() -25e3a1ec9 vulkan: Initial Vulkan support! -8e7998e19 Fixed bug 3710 - SDL_OpenAudio(desired, obtained) doesn't update desired's size when obtained is NULL -003d491f8 Fixed bug 3724 - Allow Angle Static Link -aad997fc9 Fixed bug 3740 - atexit() in test/testime.c -b7c5d1515 SDL_dynapi.c: add missing SDLCALL to macros. -a38f127e8 Swapped conditional arguments for standard SDL readability -30fe9a679 SDL_dynapi.h: revert commit ee88fe3e353e in order to enable dynapi -50d3fe21a SDL_dynapi_procs.h: adjust SDL_CreateThread for os/2 -bf1268287 SDL_thread.h: fix os/2 defines (rev 11340:2688d85b817c was a missing patch) -fe21a7476 Fixed bug 2266 - please add notifications for clipboard updates on Android -6885bc88b Fixed bug 2265 - Voice to text feature on Android repeats some text via SDL_TEXTINPUT -5ca015221 Fixed bug 3774 - Cmake build fails for Android -bbd9acddd Add support for GameSir G4s -73f866cf0 windows: Attempt to make Visual Studio not hardcode a call to memset(). -e58c7920b x11: Patched to compile with DEBUG_XEVENTS defined. -8c39d1d0b OS/2: fixed inverted logic bug (thanks, Ozkan!). -2213077a9 OS/2: proper fix for dynapi (thanks, Ozkan!). -685890a22 Fix KHR_no_error support -d8fc70ea1 opengl: add support for GL_KHR_no_error. -a3890ff6d dynapi: fill in OS/2 loading code (thanks, Ozkan!). -17453d495 x11: Move screen_w/h inside the only ifdef they are referenced in to avoid compiler warnings -a6dc4ed56 kmsdrm: Remove moved file -117171847 kmsdrm: Cleanup unused headers, rename SDL_kmsdrmevents_c.h -> SDL_kmsdrmevents.h -fcf83e790 Fixed bug 3768 - provide a quick copysign() solution for watcom -9b3ec6a57 SDL_thread.h: add missing os/2 defines. -f6ad070b8 SDL_dynapi.h: disable dynapi for os/2. -b821ded96 SDL_cpuinfo.c: add os/2 support to SDL_GetCPUCount() and SDL_GetSystemRAM(). -f807655b7 Fixed bug 3761 - Windows non-MinGW cmake build defines HAVE_WCSLCPY and HAVE_WCSLCAT -834ab350e Fixed bug 3644 - Wayland touch event support -a78c20ae1 configury: check mmdeviceapi.h and audioclient.h before enabling wasapi. -f5a38f234 x11: specify event mask for buttons when grabbing pointer (thanks, Stas!). -5574b4337 x11: Pass generic XEvents by pointer instead of copying to stack for XInput2. -01e0d8fc8 opengl: Add support for [GLX|WGL]_ARB_create_context_robustness. -18a653850 add missing os/2 apientry defs to SDL_opengl.h -30d554e3d Fixed building SDL applications with Visual Studio and the clang toolset Also fixed building 64-bit SDL with clang. 32-bit doesn't build because of the inline assembly for C runtime support. -12d33b33c Fixed building with Visual Studio 2017 and the Windows XP toolset if _USING_V110_SDK71_ accidentally gets undefined -148ac5b3c Added Matt Styles' tutorial on building SDL for Android with Visual Studio -3d0f521be iOS 10: Work around screen bounds orientation bug. Fixes bugs #3465 and #3505. -2dc5d32fa Updated version to 2.0.6 -bcf0e0710 Added WASAPI audio target to autoconf build process -5c4a45f1c cmake: some iOS fixes (don't link to Cocoa or Carbon frameworks). -f4011bf08 cmake: added a FIXME for later. -8816bb08f configure: Apple platforms don't need to build with -fpascal-strings anymore. -677b2e571 configure: mac and iOS should compile core/unix/*.c -f75caa2ff cmake: Fix building for macOS with Xcode generator (thanks, dungaipara!). -e3e6b4fd3 audio: better docs on conversion APIs, error if not init'd (thanks, Simon!). -500378eb5 Add atomics for Watcom/x86 as inline asm -c68d3ab78 Watcom supports __FUNCTION__ identifier (and surely not __PRETTY_FUNCTION__) -bdb7bfd79 SDL_assert.h: add inline asm (int $3) as SDL_TriggerBreakpoint for Watcom/x86 -fbda68ea7 SDL_endian.h: add SDL_Swap16 and SDL_Swap32 for Watcom/x86 as inline asm -eccbe366b SDL_bits.h: add __builtin_clz equivalent for Watcom/x86 as inline asm -7a9b9e05e SDL_mouse.c doesn't need default_cursor.h. -47beda976 cmake: add core/unix sources to the build. -00905c98b filesystem: Patched to compile on QNX. -e50d3cdf8 filesystem: QNX should use SDL_LoadFile() instead of rolling it from scratch. -c13c45c7b qnx: Implemented SDL_GetBasePath(). -adecda508 cpuinfo: Add SDL_HasNEON() support for ARM-based QNX. -efc43a1d8 More cleanup of the iOS keyboard demo. -a0a09f646 Improve iOS keyboard demo code a bit. -2e4248ed4 Address a compiler warning. -c7b4f2b92 rwops: Fixed 64-bit file i/o on QNX. -e83764a5e Fixed bug 2137 - SDL Message Boxes don't cope with fixed width fonts (in windows at least) -fb14cb742 Fixed bug 2263 - Event timestamp members are undocumented -1d0584d55 Hopefully fixed Wayland build -a4cfa9367 Fixed bug 2293 - Precise scrolling events -72b195d27 Fixed Android build warning -04e76499e Fixed build warning -e086a1c18 Added missing files from the previous commit -fb835f9e3 Fixed bug 2330 - Debian bug report: SDL2 X11 driver buffer overflow with large X11 file descriptor -9451cd81a Fixed compiler warnings -aebe17d34 Fixed bug 2344 - CHECK_WINDOW_MAGIC should include __FILE__ and __LINE__ -96e15fa7f Fixed Windows build due to an implicit memcpy generated by the optimizer -e9d4e3104 Fixed bug 3753 - Android : load methodID during initialization -1da2c1bb3 Fixed bug 2360 - Wrong -rpath setting includes DESTDIR rather that only the libdir -64dd829b0 Fixed bug 2418 - Structure SDL_gestureTouch leaking -f142a7961 Fixed bug 2441 - SDL_DuplicateSurface -362d54969 Fixed bug 2500 - X11: SDL tries (and fails) to hide foreign windows -c350d91a6 Fixed bug 3752 - minor os2 defines -2bf7bf2cb Fixed compiler warning with enum -36ba92485 Fixed setting the texture blend mode in the OpenGL ES2 renderer -de91b1248 Fixed bug 3745 - specify SDLCALL as the calling convention for API callbacks -d03409e11 Fixed bug 3191 - haptic system on android? -c59d9923b Implemented more flexible blending modes for accelerated renderers -f8e1874d0 Fixed bug 2646 - Problems with software renderer when SDL_SetRenderLogicalSize set -f8de064c0 Added wchar.h to fix build on some platforms with new wcs* functions -7af3786de Fixed bug 2755 - SDL2 fails to build on Solaris 10 u3 -72ab25881 Fixed bug 2764 - Timer is not rescheduled with the returned interval -0112f6188 Fixed bug 3743 - make testautomation_sdltest.c to compile -eb06aba8a Fixed bug 3742 - minor warning fixes -2da830a90 Fixed bug 3741 - more compatible initializers for arrays -93a520b38 Fixed bug 3605 - Software renderer no longer renders after Android screen orientation change -3cae0c38d Fixed bug 3746 - remove SDLCALL attribute from SDL_BlitFunc() funcptr -ca5c30481 Fixed bug 3744 - missing SDLCALL in several functions -e54eede26 Provide the correct state of the on-screen keyboard to the API (patch from Sylvain) -6ee661398 Fixed bug 3235 - Make the Android window creation similar to iOS' window creation -6ef1a25d1 Fixed bug 3751 - DirectFB linux_input disabled by default -ddeaa6016 Fixed bug 3299 - DirectInput: Incorrect joystick mapping when attaching new joysticks -ea9bc659f Added check for XBOX in addition to Xbox and X-Box -78865effb Fixed compiler warning -f1829d956 Added SDL_wcscmp() -af9ec8f6b Fixed copy-paste error, thanks Alen! -df2d29944 Fixed bug 2812 - Make libSDL2main.a usable on Android via a dummy symbol -e97722593 Fixed bug 2839 - No way to create pre-built libraries for Android -c87e1d525 Fixed bug 2841 - Hint to set resource id for window icon -18cceb5ce x11: Patched to compile. -0a1b905b6 x11: Fix message box titles with Unicode chars on some window managers. -bfd5a1347 Fixed bug 2931 - Large relative mouse motion jumps when using touch input -b2e2bcc20 Added test debug logs for additional event types -9be597a0d iOS: Fix app orientation when creating a landscape fullscreen window with the device currently in portrait orientation. -059d9e462 Fixed bug 2950 - wrong axes values are set on joystick initialization -7bab2913c Fixed Windows build -05facb3d4 Fixed bug 2979 - SDL_ConvertSurface does not convert color keys consistently -d226594fc Workaround for bug 3049 - SDL_Init(SDL_INIT_VIDEO) - XDM authorization key matches an existing client! -45cec28bc Fixed bug 3058 - Slight mistake in GetWindowStyle in SDL_windowswindow.c -e3f3a757f Fixed bug 3158 - SDL display window scrambled over VNC -4a9c6f0a1 Fixed bug 3173 - SDL_GL_GetAttribute overwrites error code from SDL_GL_GetProcAddress -b1ed855d5 Added a note about number key keycodes always being SDLK_0...SDLK_9 even on AZERTY layouts See bug 3188 for more discussion -3b837a265 Fixed bug 3188 - AZERTY keyboard support broken and inconsistent -1a5441451 Fixed bug 3309 - SDL_ConvertSurface adds AlphaMod when input surface has ColorKey -e4124ff56 Fixed bug 3208 - Minor improvements to the configure script -2862b1465 Note that texture contents are undefined when the texture is created. -6f843b902 Fixed bug 3243 - SDL_SetRenderDrawColor() behaves wrong with RGBA=0 -47c2c7d58 Cleaned up WindowsScanCodeToSDLScanCode() so VKeytoScancode() always takes precedence for the keys it handles and the rest of the logic is easier to read. -34769abd4 prefer virtual keycodes over scancodes for extended keys -195b8bd8e Fixed bug 3249 - keysym.mod is incorrect when mod keys are pressed for SDL_KEYDOWN events -c08625126 Fixed bug 3128 - Removing all the static variables from android SDLActivity and accompanying JNI calls. -0a52db54b Fixed bug 3191 - haptic system on android? -78c84e702 Fixed part of bug 3227 - patch for multiple buttons at the same time not working -b425050ba Fixed compiler warnings on Visual Studio 2013 -affab6ade More fixes for the SDL_scanf code -e27dcd1c3 Fixed Android build -7229397c0 Fixed bug 3258 - SDL_TryLockMutex blocks for pthreads with FAKE_RECURSIVE_MUTEX -b5ea3c6d0 Fixed bug 3284 - minor correction for SDL_setenv on _WIN32__ platform -75d5f3439 Forgot to add function check for fopen64 to CMake build -a48c9e6df Fixed bug 3292 - SDL_rwops and 64-bit file I/O -4c239e55f Fixed bug 3297 - Horizontal and Vertical flip swapped on PSP -79a846d48 Fixed bug 3334 - SDL_ShowMessageBox uses wrong index and accesses un-allocated memory -441d9ba2b Fixed bug 3341 - SDL_sscanf() problem -1da252c2d Fixed crash in bug 3367 - RGBA_FROM_PIXEL macro can't handle SDL_PIXELFORMAT_ARGB2101010 -df5898b0d Fixed bug 3464 - Fix for Android hint SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH -b3589ed6a Fixed bug 3492 - SDL_RenderCopyEx angle direction not documented -6de66e984 Fixed bug 3324 - SDL_RenderReadPixels: Wrong rect coordinates with software renderer -658975f38 Fixed bug 3639 - SDL_GetPrefPath returns a path with two consecutive slashes on Unix if org is omitted -3c852360f Fixed bug 3646 - SDL_test_common.c: Add key bindings for testing SDL_SetWindowPosition -222bacd86 Fixed bug 3682 - Toggle text input in checkkeys when the mouse is clicked -96305832b Fixed bug 3702 - Clear error messages of SDL_LoadObject for optional libraries -6e1b11bae Fixed bug 3714 - Windows: SDL_WINDOW_FULLSCREEN_DESKTOP broken on 3 monitor setup w/ DPI scaling -a05522a08 Fixed bug 3723 - Possible double free in kmsdrm init code on certain errors -d0b46f1be Fixed bug 3681 - SDL_UpateTexture documentation not specific enough about format requirement -843293bed Fixed bug 3701 - WM_TOUCH message may cause calls to null if touch functions are not properly loaded -a47bf3746 Fixed bug 3728 - [Android] crash when shared libraries are no loaded -af44a5953 Fixed bug 3672 - Add joystick to controllerdb -73c6cebb8 cmake: Pacify warning about Policy CMP0042 not being set. -80c6c2fa7 cmake: whoops, Sam and I both fixed this bug at the same time. :) -496337b3c Fixed bug 3651 - CMake build does not install CMake package configuration -d3af447ee Fixed bug 3590 - CMAKE: typos in CheckMir -1b8117be2 cmake: Don't link directly against a libpthread on Android (thanks, Anthony!). -2b5a5c510 Android build fixes -Enabling checking for GCC_ATOMICS also on clang by default. This way all Android ABIs build successfully -Android cmake: Threading was not enabled correctly -Android cmake: Timers and dynamic lib loading were not included in the sources -53d4f5c9f Fixed bug 3733 - Makefile sleeps for 3 seconds if configure is out of date -2d67381a9 haiku: non-x86 spins use a normal libstdc++ filename. Handle the differences. -69092c7e4 haiku: Fixed compiler warning. -03250690d Added a private hint for Steam to bypass the controller filtering for the Steam virtual gamepad -f15dbc8f6 Fixed Linux build -c49fa37c5 Added SDL hints to filter the set of game controllers reported by SDL -dc4001843 Added an API SDL_LoadFile_RW() to load all the data from an SDL data stream, and a convenience macro SDL_LoadFile() to load all the data from a file. -a412ba0d7 haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku. -d5215d9df Fixed up some compile warnings and errors on x86-64 Haiku. -64c295773 Added a FIXME for 2.1 about an API change. -4e43c631b Re-added missing entry for the Steam Virtual Gamepad (was Valve Streaming Gamepad) -ef54d5a8f Fixed building on various versions of GCC - YUV MMX code is disabled for now -76306827e README-linux.md: added libsndio-dev to the package list. -9dde37ead sndio: Fix for some platforms (Linux, for example) that don't define INFTIM. -27de835dd emscripten: Fixed compiler warnings about integer to pointer conversions. -711df8a98 emscripten: Fixed compiling without OpenGL support. -f216b446a kmsdrm: Fixed crashes if allocating memory failed. -b8a7dd778 nacl: Fixed freeing static memory on video quit. -1f698469a mir: Removed unnecessary function declaration. -e9ae411ae Updated generated configure script. -4723943bc kmsdrm: Fixed compiling without OpenGL support. -8aa147fa0 Fixed compiler warnings about type conversions. -a09efc73d psp: Force audio channels to stereo if > 2 channels requested (thanks, Solra!). -cc5ceb116 Temporary hack to fix bug 3725 - Call made to glGetString before context creation This breaks bugs 2570, 3145 -56cab6d45 Added a hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether touch events generate synthetic mouse events. -86e95a607 kmsdrm: Fix tearing in neverputt/ball -c544d2b95 Add support for Saitek P990 Dual Analog Pad -fca91451b kmsdrm: Fix leaking SDL_VideoDevice* -9dbe5a968 Fixed bug 3311 - Broken touch positions with SDL_RenderSetLogicalSize & HIGHDPI on iOS -082f32d19 Fixed bug 3722 - Fall back to xinerama/xvidmode if xrandr modes initialization fails -4be066707 Fixed potential free of uninitialized memory (thanks Simon!) -56363ebf6 Fixed bug 3690 - SDL2 KMS/DRM render context support -2ffd6d020 x11: Make a separate unmapped window to own clipboard selections. -997c69b9e Fixed bug 3697 - Main thread gets stuck on left mouse down -6391cc3fe Backed out changeset ebdc0738b1b5 for bug 3697 -e10a98d2a Fixed bug 3720 - SDL_GL_GetAttribute doesn't check for initialized video driver -ee3f11d54 Disable static builds for static analysis. -1f016d459 windows-buildbot-zipper.bat: Check the correct path. -8efe9cea0 Buildbot should zip up Visual Studio Win64 binaries, too. -2f74dc9e6 Fixed typos in shape header. -68ca9d9ed qnx: Fixed error message. -cea33bf5b aix: Removed unused local variable. -84aeab17a haiku: Changed header paths to be more compatible. -be005b7c7 evdev: Fix 'Syscall param ioctl(TIOCLINUX) points to uninitialised byte' -77ca0f273 Fixed crash if the WASAPI audio device couldn't be recovered -4a734209a Fixed infinite recursion if the WASAPI audio device couldn't be recovered -f033ce61e Fixed typo in WASAPI shutdown code -b0b481d70 [mir] Same no need to wrap this, which is already being done -ecf9f6a13 [mir] Point to SDL_EGL_UnloadLibrary vs doing it our selfs -18f2b27b7 Whoops, forgot to commit the actual fix. :) -7ecc48c3b Disable MMX inline assembly on Clang for now. -03eaddcad Fixed compiler warnings on QNX. -67754af88 Fixed build on older Mac OS X SDKs -8ac17a2ae sndio: fixed poll() call (thanks, kdrakehp!). -ee9cc3249 sndio: More improvements to the OpenBSD audio target (thanks, kdrakehp!). -177f19aff Fixed bug 3410 - SDL_WINDOW_HIDDEN flag is inaccurate. -36998b823 Fixed bug 3689 - MMX YUV renderer crash -2008d8669 Fixed bug 3703 - Missing media keys support on Amazon Fire TV remote control -2cc680647 Fixed bug 3705 - Add capture support to the sndio backend -01050d4ed iOS: Use modern replacements for deprecated functions, when available. -efe179cdf macOS: Fix compilation when using 10.11 or earlier to build. -562473c1f macOS: Address more compiler warnings when building with a recent deployment target. -bc3ede1ed macOS: Replace uses of deprecated Cocoa enum names with modern/consistent equivalents. -e0ea4da4a Fix a potential crash in macOS 10.7 and earlier. -8292d73eb macOS: Expose more display modes on retina screens. Fixes an issue found in BZFlag. -49f846f11 Added support for an XBox One wired controller for Leo L?nnenm?ki -74ca16547 Fixed bug 3699 - Shaped windows are distorted unless width is divisible by 8 -34b29c6ac Fixed bug 3688 - cmake / pthread check related patch proposal -3c09265da Fixed bug 3609 - Windows build fails due to conflicting types for 'XINPUT_GAMEPAD_EX' -cd79d8cce Fixed bug 3696 - SDL_ShowMessageBox displays different error from intended -37722d01a Fixed bug 3697 - Main thread gets stuck on left mouse down -66f072ebd Updated Visual Studio 2008 project -881002370 Updated generated configure script. -707ee5be2 Fixed typo in log message in testime program. -44246cdae Fixed compiler warning about redundant declaration. -10764b209 Fixed missing audio entries in configure summary. -c3bf69ca4 haiku: Fixed compiling without OpenGL support. -fb9c2939c qnx: Fixed setting a field twice. -1683a0c10 audio: trying to pacify static analysis. -c80c3419a x11: pass a long to XChangeProperty, not an int. -b36755a3f power: whoops, that should be "==" not "!=". -c27dc5147 power: Linux /sys/class testing should skip "device" scopes. -9f99b3d7e aix: Fixed audio debug output. -e6583300e haiku: Fixed using wrong constant for internal error handling. -4366721b4 qnx: Removed unused bootstrap declaration. -e3497e791 qnx: Fixed configure script setting wrong variable. -200f782ca qnx: fixed potential buffer overflow. -22241ed0b Support for QNX 7.0 (thanks, Elad!). -b1fbab50c haiku: Fixed memory leak if destroying window. -380e0693b aix: Fixed compile error. -4c190ce58 netbsd: Fixed comment. -4c48260ca netbsd: Removed unused field. -7bb6b402c netbsd: Fixed compile error. -944e06e67 winrt: Fixed SDL include. -46b77b732 raspberrypi: Fixed typos in README. -705efc353 Fixed handling only one event per frame in testshape program. -d96419c93 xinput: use the full range of the haptic motors (thanks, Trent!). -267dca13f haiku: Removed unused internal function. -cc00a300d pandora: Fixed compiler warning about redefining SDL_REVISION. -90488d6c2 haiku: Added support for some values set with SDL_GL_SetAttribute(). -6086e8d38 haiku: Fixed missing slash in path from SDL_GetPrefPath(). -0b750cd9d pandora: Fixed compile error. -fa73685df directfb: Fixed quitting keyboard twice. -a4db3dbe6 nacl: Fixed unnecessary large input text array. -9085c7b31 Get the parent of non-SDL-created windows, for completeness -1b5614b3f Clean up parent window when destroying a window -0a75192d8 Implemented SDL_WINDOW_SKIP_TASKBAR on Windows -a725efa4b linux: Fixed using wrong constant for input text size. -60c0f7e24 Fixed SDL_GetWindowWMInfo() returning success on three unsupported platforms. -a509719fc audio: Converter now checks a strict list of channels and formats we support. -553b32866 Fixed bug 3668 - Overflow of SDL_AudioCVT.filters with some downmixes -c1cd93e56 Fixed bug 3670 - CMake IOS haptic error -22c221f3b linux: Changed internal functions to be static. -5b75e9033 directfb: Fixed comment. -fbd30c363 Fixed missing error messages for SDL_GetWindowWMInfo(). -c609d856f directfb: Fixed crash if creating renderer. -121d7d25d directfb: Fixed configure script not finding shared objects for dynamic loading. -e5f4a71f1 cmake: iOS haptic section was referencing power source code (thanks, Martin!). -3c955d054 syswm: prevent buffer overflow if SDL and app have different config headers. -43d62b745 Make compile-time assert error messages more clear. -bb100d3ba Expose display refresh rate on iOS/tvOS 10.3+. -325330efd jack: removed accidental copy/paste. -58f08af46 jack: added capture support. -c39fd5777 jack: Move jack_client_t into the audio device instead a global variable. -b65e0777c jack: Remove BROKEN_MULTI_DEVICE code. -d9039f239 jack: Initial shot at a JACK audio target. -cb591ee61 Fixed ignoring first event in testshape program. -456bc301d Fixed environment variable of SDL_HINT_RENDER_LOGICAL_SIZE_MODE. -871d43a83 Removed unused hint includes. -928898368 Merged Eric Wing's overscan patch. -11289b766 Android cmake build fixed to work with the official android gradle plugin -dc8a22cd9 cmake: don't use /NODEFAULTLIB if we are using the C runtime (thanks, Rob!). -6d661cab7 windows: Change the default on SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING. -d84448779 windows: Fix compiling of XInput code on newer MinGW installs. -599d9ba19 emscripten: listen for pointerlockchange events on the #document specifically. -4b47fa38c Removed duplicate includes. -cbcc256fd Fixed comments in headers for doxygen output. -52b7d0eb2 android: Fixed missing error message for SDL_GetBasePath(). -248410dde Fixed SDL_GL_SetSwapInterval() returning success on two unsupported platforms. -2113208d9 haiku: Fixed missing title bar for windows with decorations. -fc436a3a9 android: Moved internal function to new position. -63b3e06f7 Corrected names of header file guards. -07b0df0a2 haiku: Changed internal variable to be static. -850185f40 Fixed crash if creating textures failed in testshape program. -00394996e Fixed crash if calling SDL_CreateShapedWindow() on unsupported platforms. -545fba788 x11: Don't send duplicate events when reconciling the keyboard state -5dc350133 test: Makefile.in should copy bitmap and wave files to build directory. -b135557df linux: Don't crash if fcitx support is requested but unavailable. -29a047df3 Fixed whitespace code style. -1c5f483a8 linux: removed IBus_utf8_strlen(), use SDL_utf8strlen() instead. -a1faea980 fcitx: removed incompatibly-licensed code. -d4086e4a7 stdlib: added SDL_utf8strlen(). -fc510bd79 nacl: Fixed crash if allocating memory for audio device failed. -7c5078d8b qnx: Removed unnecessary check for available audio devices. -1e60ea76d qnx: Removed unnecessary call to SDL_zerop() after SDL_calloc(). -1b9dc5991 haiku: Fixed SDL_SetClipboardText() putting random data in clipboard. -de52dc294 haiku: Correctly set keyboard focus (thanks, Kai!). -643f1cb73 power: Add Linux org.freedesktop.UPower D-Bus implementation. -b3f94acbf linux: Simplify D-Bus interface, remove lots of boilerplate. -191f578b5 linux: Make system D-Bus connection available (in addition to session). -e5918acf4 wasapi: properly report init failure if on pre-Vista version of Windows. -604a4b1b3 haiku: Fixed SDL_SetClipboardText() allocating too much memory and cutting text. -3639895ea Removed unused errno includes. -6fbde875e code style: wrap a single-statement if in braces. -3fbd21ce4 windows: msgboxes should specify a parent HWND if possible (thanks, Ismael!). -90ed3daa3 Changed messages about not recognized keys to include discourse link. -759319729 emscripten: Fixed compiling on C89 compilers. -b84fe2c06 ios: Fixed math include in demos. -1e13d93fe directfb: Changed internal function to be static. -189b5851b android: Fixed parameter list in function definitions. -6c0aea427 wayland: Fixed freeing memory of SDL_malloc() with plain free(). -c66f0471e Removed unused internal window shape functions. -a7fc2822d audio: rename bsd target to netbsd. -6844d92c2 coreaudio: we don't need to track number of allocated audio buffers anymore. -fc4402e5f coreaudio: Better handling of audio buffer queue management. -126e5a1db Emscripten: Prevent default on arrow keys -f839b209b Emscripten: fixed incorrect conversion of touch motion events to mouse motion events -3fd35f6bb coreaudio: looks like we need more like a 10ms buffer minimum, not 50ms. -793c788b1 coreaudio: dynamically allocate AudioQueueBuffers. -088f57a62 Removed unnecessary call to free() in testoverlay2 program. -fa3944ba3 Removed unused signal includes and handler in test programs. -bf8ccf08b Removed redundant mouse clean up on quit for some platforms. -a9c7bc85f android: add screenSize to AndroidManifest's configChanges (thanks, Daniel!). -e889757bb assert: Better Emscripten support. -d6f418641 assert: Check for Clang _and_ GCC, in case they ever drop compatibility. -8917f8634 assert: allow assertions to work on platforms without threads. -91e6054b0 wasapi: don't mark capture devices as failed for AUDCLNT_S_BUFFER_EMPTY. -02773811b render: GL_DestroyRender() should activate first. -cff9e5a87 test: info now reports usable display bounds and DPI (thanks, Eric!). -81ab6c98f Patched to compile on Windows. -13b6d9959 wasapi: Replace tabs with strings in source code. -adabc3843 wasapi: Deal with AUDCLNT_S_BUFFER_EMPTY when flushing audio device. -4073a6694 audio: One more callbackspec fix (thanks, Simon!). -772407627 Fixed restoring a window that was maximized then minimized, then restored. -ccf0566ca SDL - add SDL_WINDOW_VULKAN and make Android_CreateWindow only create an EGLSurface when SDL_WINDOW_VULKAN is not present. This makes it so the ANativeWindow* can be used with vkCreateAndroidSurfaceKHR, otherwise it will fail because having both an EGLSurface and VkSurfaceKHR attached to a window is not allowed according to the Vulkan spec: -a0aff7641 Added missing path in porting README. -df4cf79d4 directfb: Fixed compiler warnings about undefined functions. -29222db7f emscripten: Fixed not removing pointer lock event callback. -cc5b4f450 emscripten: Changed internal functions to be static. -ce01128ad Fixed warnings about shadowed global variable. -87e0d812d directfb: Removed duplicate comment. -61c326e12 directfb: Fixed typo in log message. -75c0d1ef6 directfb: Fixed compiler warnings about unused variables. -c878b59bb audio: fixed more "spec" references that should have been "callbackspec". -8b7ae3535 Fixed build error on Linux -9ac3bb701 Added support for mixing Qt and SDL on iOS -60f284842 haiku: Fixed crash on quit if max number of joysticks was connected. -b7b919078 haiku: Changed internal function to be static. -3ed2f0ca1 haiku: Fixed unlocking clipboard twice. -4466b9314 haiku: Fixed comment. -34747107f mir: Fixed memory leak if system cursor id is unknown. -34d9c5213 emscripten: Fixed return type in event callback declaration. -bf4e7eb61 Fixed comment typo -75fb07a6d iOS: Only mark interrupted audio devices as non-interrupted if AudioQueueStart is successful. -ce2998b8b cocoa: Don't crash on messagebox keypress without a successful SDL_Init(). -d00dfc434 Fixed another AC_DEFINE. -3f7f65a36 Fixed configure script. -619ab7a22 haiku: Various fixes from haikuports. -444c47a1b windows: Changed six internal functions to be static. -89499a083 Removed unused field in loopwavequeue program. -d7cd65373 Added Steam Controller mappings for Linux and iOS -226541cb5 audio: another wrong struct that causes NULL pointer crash (thanks, Simon!). -1286a7d23 windows: Add SDL_WINDOW_ALWAYS_ON_TOP support. -7382cebb4 audio: Fix audio queue functions to use new spec structure. -93a6191cd emscripten: keep track of pointer lock losses and maybe regrab pointer later. -d20d426c3 Fix crash in SDL audio thread, by Juha Kuikka -1d1a0d7f0 atomic: Patched to compile on Android. -1c9c7633d atomic: favor compiler intrinsics for compare-and-swap over macOS APIs. -8c00de57f atomic: let Clang always use atomic_load_n if available. -2bf79c2e0 mir: Fixed typo in error messages. -f6eb23a61 linux: Changed two variables to be static. -37b49e634 ios: Fixed compiler warnings about unused variables in demo. -366adae36 android: More robust fix for screen locking in landscape (thanks, Sylvain!). -27023ed2b Added support for the Cyborg V.3 Rumble Pad and the Mad Catz FightPad PRO -1eb92f634 Implemented Linux joystick blacklist Based on https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/master/generate_rules.py -a4dbf5657 Fix divide-by-zero when videodata->ime_candpgsize is zero. We're seeing this happen in Dota in the wild. -66555f611 SDL - attempt to fix https://github.com/ValveSoftware/Dota-2/issues/1199 of mouse not locking in Dota. This fix is proposed by Ryan Gordon (increase timeout in X11_SetWindowGrab from 250ms to 5000ms). I'm going to integrate to source2 and ship it to dota customers. If it works, SamL will upsteam it to SDL. -53f3786bc Added support for a number of game controllers, including the Nintendo Switch Pro Controller -5789da67c Fixed bug 1859 - No SDL_VIDEORESIZE event generated when the window manager sets the window size. -1517ba728 PSP: Fixed error messages. -f96cdca4e Mir: Changed two internal functions to be static. -f1296a865 Emscripten: Simplified option name in build script and README. -06d6ada81 Updated generated configure script. -7ae7fceb2 Fixed typos and documentation in haptic header file. -c57fe6d78 Backing out broken change from previous commit. -ed7f16e22 Intentionally breaking buildbot to test email server change. -2ce52bf9e README-hg.md: Updated main Mercurial website. -1018d5648 BUGS.txt: Changed mailing list link to discourse.libsdl.org. -2092a8835 android: fix wrong events when locking device in landscape (thanks, Joshua!). -7891e72dc __atomic_load_n() appears to be available in GCC 5 but not GCC 4 -028716e79 wasapi: deal with default device changes, and more robust failure recovery. -c85c57a05 wasapi: Handle lost audio device endpoints. -f2179944c Patched to compile on some platforms. -1dc9ae5c1 Use GCC's atomic loads in SDL_AtomicGet and SDL_AtomicGetPtr -266816b4a Removed newlines from error messages. -00da0824f Updated axis/button mapping for Dualshock 3, for upcoming Sony driver changes -6bd87635e iOS: Fixed compiling template on C89 compilers. -34a2a46f6 Removed unused constant in testgesture program. -7122036d0 Updated file name in porting README. -c35f46d03 mir: Set the max/min w/h vs just setting the window w/h -60ba8552d Backed out changeset e3fcdad257fc - testaudiocapture.c already does what we want -570e286fd Added an audio recording test program -22161480e Compile fix for android. -6814f5dbc ALSA driver improvements: * alsa hotplug thread is low priority * give a chance for other threads to catch up when audio playback is not progressing * use nonblocking for alsa audio capture There is a bug with SDL hanging when an audio capture USB device is removed, because poll never returns -c4d54504f differentiate between capture / playback audio thread names -763e13890 Added an API to get the joystick instance ID before opening the device: SDL_JoystickGetDeviceInstanceID() -6bdc0e724 Fixed tabs to spaces -aae481294 Added support to loopwave for hotplugging audio devices -c1802ef64 Fixed compile error with gcc -std=c99 -20c846ebe Fixed warning about implicit conversion in controllermap program. -72fdf6298 Mir: Fixed crash if creating default cursor failed. -42d02890f Linux: Fixed error message. -6aa17426a video: Don't compile isAtLeastGL3() if we don't have OpenGL support _at all_. -ca0bf151d Fix some more compiler warnings on armcc. -d526b8a1e Some patches to make SDL compile with armcc (ARM's C compiler). -94a69443c mistake: Revert the files that I did not mean to commit -7bbb13ea5 * Some refactoring and bug fixes. Thanks Micha? Kuchta! -bc8778854 raspberrypi: RPI_Destroy() should free the SDL_VideoDevice and its driverdata. -5a47ee036 mir: Get ready for Mir 1.0, clean up deprecations. Thanks Micha? Kuchta! -1066bcc83 audio: clarified what SDL_AudioSpec::samples is, removed note about power of 2. -e5d9b25d8 Fixed comment style. -32ef85b52 Updated generated configure script. -a4249b48e Patched to compile on C89 compilers. -4d525d465 configure: Cygwin and MingW should try to use -Wdeclaration-after-statement. -3b9e4d0a6 audio: Try to keep callbacks firing at normal pace when device is lost. -07519a6b9 Removed a bunch of unnecessary #ifdefs. -a366c35f3 audio: run the audio callback even if device was lost. -5728cb202 audio: Make sure the disk and dummy targets are the last ones we try to init. -e07e446a3 WinRT: removed Windows 8.0 from build-bot + NuGet package creation scripts -b13c443cd WinRT: removed buildbot debug code, pending further research -f7bfa3b79 WinRT: more buildbot debug code -ecb1eb823 WinRT: added code to help debug a buildbot error -0e7530b05 cmake: add WASAPI audio target to the build (thanks, Martin!). -71a4e8ed1 Stop CoreAudio from doing expensive audio rate conversion -a9762551c Added config for the Razer Wildcat on Mac OS X -43dbbd637 Updated iOS fat build -94754c396 Updated config headers to override the base SDL_config.h if both are included -dfa8fb310 Fixed warnings if compiling loopwave programs with C++. -9f8c1d779 Updated library name in header file. -cfcec57f4 Fixed comment. -9428ff19a Added support for the Razer Wildcat on Linux -0d647d35b Emscripten: implement custom cursors -33bddcfda Emscripten: refactor cursor handling -90e302d07 Remove link to emscripten tests Not updated since early port. Also stopped working when Dropbox stopped allowing HTML to be parsed. -613955b4f Emscripten: only update pixel ratio if HiDPI is enabled -e8677a1bd audio: Added basic WAVE_FORMAT_EXTENSIBLE support to .wav loader. -4a0b287de More HTTPS doc tweaks. -8ade96ccc More HTTPS changes in the documentation. -8ad131b78 readme: more HTTPS changes. -32f85a99d readme: correct webpage URL to use HTTPS. -1ed41d6d0 Patched to compile on Windows. -6046fd4cb wasapi: Initial WASAPI support, for Windows Vista and later. -c93bca489 stdlib: Fixed crash on SDL_snprintf("%s", NULL). -d1eb2d190 thread: Don't use SetThreadDescription on WinRT right now. -70c0400b1 windows: Try to unify all the GUID comparison code into a core helper function. -e5fc93bac audio: Don't wrap bootstrap declarations in preprocessor macros. -ad9c702f6 audio: SDL_AudioStream's *_sample_frame_size should be in bytes, not bits. -175f1e8f4 audio: Added a ThreadDeinit() method to match ThreadInit. -886736a2c Fixed bug 3584 - Small stack size for audio callback thread -cf31ea147 Fixed bug 3583 - X11 touch device can be permanently lost -06ccb71bc Make sure the memory barrier functions are always available, and now they are implemented on Android __ARM_ARCH_5TE__ -9171f71db Fixed warning in Android build -107c19daa Log the error returned by XAudio2Create() -8eee82cd8 Windows: Fixed warning about unused variable. -33ff5bd14 Fixed typo in log message. -8f78f5bb9 Fixed build on Apple TV -710ae62a7 Remember XInput controllers that we've already seen, so when the raw device list changes we don't assign the old device to the new XInput userid. This isn't perfect, but at least we won't report the same device twice. -da30992d4 Fixed bug 3577 - Can't set minimal size (message box appears instead) if maximal size wasn't declared (i.e. unlimited) -3f83fce7c Fixed whitespace -be28d7c88 Added support for the Saitek Pro Flight X-56 Rhino -6717a3d38 Added support for the HOTAS Warthog throttle -a156b0d99 Added the HOTAS Warthog as a flight stick -800a72eb1 Switch stderr output to SDL_Log() so it shows up on Windows and mobile devices -4e3fa7b9d Fixed compiler warning about comma at end of enum. -52e9c42df Fixed Windows build -869b7fe31 Fixed bug 3550 - No mouse move messages send while over the titlebar and windows edges -c3eea703e Use a stronger X font definition for X11_MessageBox on UTF-8 -13433c4a6 Fixed bug 3569 - GL_UpdateViewport leaves PROJECTION matrix selected -0090a3380 Return an error if trying to set a window minimum size larger than the maximum size, or vice versa -d02473682 Sorted controller entries -aa90b730b Add a mapping for Xbox Wireless Controllers running old firmware -8fa9b57f7 windows: first shot at naming threads with SetThreadDescription(). -95ab9dc73 Added Thrustmaster Wheel FFB entry to the list of wheels -3c90a52aa Added an API to get the type of a connected joystick -ae5e9a319 Add gamecontrollerdb mapping for Xbox One S on Mac -ca89d9b59 Darwin: fix detection of Xbox One S controller -ede5c7348 Generalized the audio resampling hint for other resampling methods in the future -47e2f4e95 audio: libsamplerate can't resample in-place; make space for a copy if needed. -1b3327edd configure: report libsamplerate support status. -c7f9dcb6f audio: Offer a hint for libsamplerate quality/speed tradeoff. -5ea0c893c CMake: fixed logic error in setting -mfpmath=387. -36cb05a8f configure.in: Check for sse3 too when setting -mfpmath=387. -1da3a3377 audio: Fix static analysis concerns about a dead assignment. -073ff7dea Added a note about aligning SDL_AudioCVT data. -8f627c1cd audio: Make sure SDL_AudioStream's work buffer is 16-byte aligned, for SIMD. -17dcee20c audio: Streams now resample in-place. Removed second allocated buffer. -b5eeab779 audio: allow stereo Sint16 resampling fast path in SDL_AudioStream. -a80cb672e audio: Fixed off-by-one error in upsampling. -dad07f960 audio: Resampler now special-cases stereo and mono processing. -8ce6ddf12 audio: Fixed incorrect pointer in SDL_ResampleCVT_si16_c2(). -ecdc6c120 audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover code. -4b8f35466 audio: Fix same bug as last commit, but for _mm_bslli_si128 vs _mm_slli_si128. -fab450181 audio: use _mm_srli_si128 instead of _mm_bsrli_si128. -3594bf8ee audio: Wired up new SSE code to build system. -202ab30c1 audio: Special case for resampling stereo AUDIO_S16SYS audio data. -8855daac6 audio: Make the simple resampler operate in-place. -64056e81c audio: Added SSE3 implementation of SDL_ConvertStereoToMono(). -a7f86f2fd audio: don't cast to double in SDL_ConvertStereoToMono(). -83454c821 audio: removed conditional from simple resampler's inner loop. -4f981df37 Haiku: Fixed memory leak if creating framebuffer failed. -330f2911c WinRT: Fixed typo in README. -63e83a312 Haiku: Removed unused variable. -800a9e84f Fixed compiler warning about returning a value in a void function. -5e78bc647 Fixed copyright symbol in testgles2 program. -a395a9075 Fixed mapping the PG-9021 which, on Linux, emits a button partway through the trigger press along with axis motion all along the pull -8fa0b0889 Added support for the 8Bitdo Zero GamePad -9b99265a5 Fixed mingw64 32-bit build, which does have the correct structure definitions -f35402426 Removed unused variable -b0c5ceef7 Fixed bug 3533 - Enumeration joystick devices omitted during directinput enumeration -dd007e3fe Fixed bug 3561 - Re-acquire device before playing effects if needed. -5cb1ca551 Fixed building with mingw32 -3e1679c88 audio: Several fixes to "simple" resampler (thanks, Vitaly!). -95defd662 Use icon width * sizeof(Uint32) instead of icon pitch when copying to icon resource data -571829309 audio: Implemented SIMD support for audio data type converters. -1e66d457d audio: Some fixes to the audio data type converter code. -1e4820951 Fixed comments. -06d1d945c Fixed doxygen warning and linking of function names. -a812b4eb3 Changed Bugzilla link in README.md to HTTPS like in BUGS.txt. -2b481015b Fixed warnings about missing initializers in testoverlay2 program. -341d1ff92 Fixed comment -01f66613d fixed SENSOR_LANDSCAPE and SENSOR_PORTRAIT mode false nativeResume bug -acd76826c We don't actually build with the Xt library -a52d48c5a Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 -bf11cd508 Fixed bug 3552 - Building SDL in release mode fails under VS 2017 RC -23020f92f audio: Don't ever use libsamplerate in the SDL_AudioCVT codepath. -97f19cc36 testresample: write correct length to the .wav header. -ad7c26ff0 We only need the first few keymaps corresponding to the following constants: K_NORMTAB, K_SHIFTTAB, K_ALTTAB, K_ALTSHIFTTAB -6d6edcb8b Fixed spacing -4e9c9fce1 Fixed bug 3100 - SetSwapInterval should now be enabled for ANGLE/EGL -063c9d40d audio: Replaced older resamplers in SDL_AudioCVT with the new ones. -a41103b17 audio: Patched to compile if linking directly to libsamplerate. -e0a40fb6a Implemented full evdev keyboard text support This is based on the Linux kernel driver, and has fallback mapping tables in case we aren't connected to a virtual terminal. -49292705a Fixed bug 3545 - SDL_EVDEV_do_text_input() may be too eager to find error cases -7b66295e0 Removed console check, let the kernel decide whether muting is appropriate on this terminal. We don't fail the init if we can't mute the terminal (we might be running from ssh, or on a system without virtual terminals, etc.) -c16dd74f3 Check the return value of SDL_EVDEV_Init() -38854e033 audio: Improvements in channel conversion code. -35166609d audio: Patched to compile with libsamplerate support (again). -d005dc21d audio: Patched to compile with libsamplerate support. -19e937fc2 audio: libsamplerate loading now happens once at init time. -98cc9d10d Fixed coding style on a function signature. -53588ff6b README-linux: added notes about libsamplerate. -25b47ea38 Fixed attempting to dynamically load libsamplerate when shared object loading is disabled. Thanks to Ozkan Sezer for pointing this out -9d9e92cf4 Fixed bug 3304 - Android black screen on resume -b8ab4eb9a SDL_evdev.c: fix building against old kernel headers (K_OFF may not be defined.) -7e505b0dd Don't fail if we can't open the tty, this can be a legitimate use case. -267c95091 Added mappings for the 8Bitdo NES30 Pro and iBuffalo SNES Controller Also swapped the Wii U Pro controller button mappings to position instead of label, as emulators expect from XBox controllers. -70c8bd248 Fixed a bunch of compiler warnings in the test code. -13f2e5429 x11: make the X11 target work on macOS with Xquartz. -61a3ba303 Replaced a few single-line "//" comments. -e25f4e507 Really fixed blit issue for capehill -e9c2dcdae Fixed bug 3469 - Keypresses leak to the console with 2.0.5 -df25258a1 Added configure and cmake support for libsamplerate -c5825b698 audio: Don't call a NULL function pointer when clearing audio streams. -c1ac4c683 Better fix for static analysis issue in SDL_DestroyRenderer(). -5fcd454a1 emscripten-buildbot.sh: let user override default SDKDIR. -cbe44f7ff Added support for using libsamplerate to do audio resampling -37f404fb8 Fixed confusion between Ryan's new audio stream and the audio buffer we were calling stream in the callback -3df77ced1 Just roll back the entire portion of the commit from a8253d439914 which caused bug 3544 until we figure out what the right static analysis fix is. -748f46054 audio: Add an assert to make sure non-streaming audio uses good buffer sizes. -356c2eadf Fixed bug 3544 - Memory freeing bug in SDL_DestroyRenderer/SDL_DestroyTexture -345c5989f haiku: Patched to compile. -3443dc19f Don't do any audio conversion if none is necessary -41be9756f Fixed bug 3546 - SDL_EVDEV_is_console() uses type of wrong size when calling ioctl -b3e8db802 audio: rename fake_stream to work_buffer. -992124d4d audio: Fixed SDL_AudioStreamGet() function parameters. -99fc1ef99 naclaudio: Untested attempt to migrate to SDL_AudioStream. -115d0ce71 haikuaudio: Untested attempt to get this working with SDL_AudioStream. -1a90c72df emscriptenaudio: don't get stuck in infinite loop if SDL_AudioStreamPut fails. -f07a1a5ad emscriptenaudio: Reworked to use SDL_AudioStream. -3761b5f60 Fixed a few compiler warnings. -4aa9e3698 Patched to compile on some compilers. -30178a9b2 audio: Added SDL_AudioStream. Non-power-of-two resampling now works! -f12ab8f2b audio: More effort to improve and simplify audio resamplers. -52130bde4 diskaudio: Use SDL_Log, not fprintf. -d024c724d Fixed signedness issue when blitting on a big endian platform, as reported by capehill For example, if sR is 0 and dR is 255, we will get -255*sA casted to an unsigned value. Basically results are quite large numbers instead of the expected 0-255 range. -e6e6613ca Fixed build warning on Haiku -4938c5054 Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value. This is useful for controller mapping programs to determine an axis' zero state -99e10ef50 Assume D-pad or thumbstick style axes are centered at 0 -26f84d744 Added mappings for several GameCube and SNES controllers -d2a01b6e5 Added the NEXT SNES Controller to the list of zero-centered joysticks -c7780497d Increased joystick jitter tolerance for PS3 controllers -1ddff75c7 Some controllers have trouble getting out to 20000 -9d0420526 x11: deal with xrandr display size in millimeters being zero. -082132a70 Fixed binding the D-pad on some Super NES style controllers Fixed a case where partial trigger pull could be bound to another button -d35918004 Fixed bug 3519 - SDL_GetDisplayMode fails to report mode.format when using Wayland backend -2e2572a4f Added SDL_ReserveSpaceInDataQueue() to make space without copying data. -18d9b23c6 Fixed bug 3539 - SDL2, missing MIR LDFLAGS -67ed89435 Fixed bug 3529 - SDL_EGL_UnloadLibrary is not called at all on SDL_Quit -0cfa0aa11 improved SDL_GetError() output generated by EGL code -0badbddef Run sed in binary mode so we don't have to worry about fixing line endings -9e6d729e2 Fixed typo in copyright update script -45b774e3f Updated copyright for 2017 -0f586d580 Convert some files back into DOS line endings after updating copyright -49225f5f0 We don't currently support blitting to < 8 bpp surfaces, return an error instead of corrupting memory in that case. -2ba66d052 Fixed bug 3535 - Misplaced comment #if/#endif closure comment -880842cfd Fixed bug 3531 - internal SDL_vsnprintf implementation access memory outside given buffer ranges -7f2068dac Fixed bug 3541 - DisplayIndex out of bounds in SDL_SetWindowPosition -e61daa727 Fixed warning and missing animation delay in testoverlay2 program. -c2b90f2df Fixed compiling of testgamecontroller program with C++. -de79828b9 Fixed warning about unused variable in controllermap program. -af2637988 Fixed crash if allocating memory for game controller failed. -8000e6d9e Added documentation for the game controller axis values -21cb42d79 Make sure we go all the way back (within the XBox controller dead zone) to prevent accidentally binding axes inverted -cb8685c02 Fixed comment style -6d7da0887 Split controller axes into positive and negative sides so each can be bound independently. Using this a D-Pad can be mapped to a thumbstick and vice versa. Also added support for inverted axes, improving trigger binding support -7c3163666 x11: Don't loop forever if the X server refuses a pointer grab. -76f2ae3ca Don't use pushd/popd in autogen.sh; Ubuntu's /bin/sh doesn't support it. -b4e069e7f Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypes -9492492d5 Fixed bug 3516 - fix build on illumos -fd85f5748 Mac: back out commit 3e9b2ae41adf. It causes significant overhead on many GPUs. -d719374cb Mac: Fix over-saturated colors on P3 displays (e.g. the 2016 MBPs). -3e9284519 Windows: Fixed compile error. -7c60a638b Corrected header file guard comments. -4fc0fe1f6 Removed debug print statements -ad26769cd Fixed compile errors on various platforms -ca019dada Fixed issue where the throttle and other axes on racing wheels don't start at zero and show up as immediate input when the wheel is turned for the first time. Wait until they are actually moved before generating input from them. -b2f6c4c1b Fixed bus error when converting 16-bit to float for non-integral-multiple sample rates -366c77a9f audio: fixed one more incorrectly-hardcoded value in the resamplers. -eda74fda9 tvOS: Expose remote swipe gestures as arrow key presses (thanks oviano!) -787a54c84 iOS bug #3377: work around bugs in some third party iOS libraries (e.g. Google admob) where they assume the optional UIApplicationDelegate ?window? property always exists and will crash if it doesn?t. -f956df23b audio: fixed arbitrary upsampling (thanks, Sylvain!). -b515b34db Fixed hotplug with more than one device in testjoystick program. -0a3f9d0cf Fixed warning about unused variable in controllermap program. -0c5e7a106 Fixed handling joysticks that send multiple events for a single control, e.g. both a button and axis event for a trigger. Tested with the 8Bitdo NES30 Pro on Linux -b4ea63ec2 Fixed crash if there are multiple joysticks closed during the joystick update loop -f50a04009 windows: add whitespace to fix macro preprocessing issue (thanks, Sven!). -85d8a79f6 Fixed updated return value for SDL_GL_SwapWindow() -e81bf12b8 Fixed edid parsing code for older gcc compilers -8414c3d4a Fixed ABI, don't change the return type of SDL_GL_SwapWindow() -6211668e9 Fixed creating a renderer on the dummy driver on Mac OS X -cb5a0b0f6 Fixed crash when creating a dummy window on Mac OS X -d6bcec8f6 WinRT: build fixes -454d9cb96 PP_OK isn't available in the NaCl build environment on buildbot. It's defined as 0 -97d05b0da Fixed a bunch of SwapWindow calls that needed their return value updated -7a39681ea Fixed X11 OpenGL ES build -fed8cbcdb Fixed build for EGL platforms -b936a4c36 Added support for the XiaoMi Game Controller -70aa2a571 Only print out the controller mappings if we're not going to test a controller -524bf3c28 Fixed bug 3513 - SDL_GL_SwapWindow does not return error status -3b18c796e Fixed bug 3512 - Memory leak of SDL_Joystick axes_zero array -a52501713 Protect the game controller API the same way the joystick API is protected from multi-threaded access -1b08f0c17 Added the guide button for the NVIDIA Shield Controller -91491824a Removed unneeded warning when running from Visual Studio -acabb5d5f Added support for XBox One controllers on Mac OS X, using the driver at: https://github.com/360Controller/360Controller/releases -09ed5cc0d xcode: Make sure SDL_dataqueue sources are included in all targets. -6cb2f5bbb xcode: updated macOS and iOS project files with SDL_dataqueue sources. -c02318754 audio: Fixed compiler warnings. -a0e003eeb Refactored the audio queueing code to a generic SDL_DataQueue interface. -8b960d4e0 Added SDL_VARIABLE_LENGTH_ARRAY so this #ifdef is localized to one place. -68d7be394 Fixed bug 3508 - variably modified ?SDL_dummy_size? at file scope in test/testatomic.c -af7f30de0 Fixed SDL always being built because of missing headers in the project. -264138cce Added support for the Hori Fighting Commander 4 -54188c8b9 Fixed crash at startup -e7efcfbaa Added Linux mapping for the DragonRise Inc. Generic USB Joystick -16074e674 Fixed compile warning on Visual Studio -4eda58ba6 Added SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the speed of the mouse. This currently doesn't affect absolute motion, which would need to be implemented on each windowing system so the cursor matches the reported mouse coordinates. -26f05ecb4 Fixed missing prototypes on Android, patch from Sylvain -84c0780e2 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad -a738a6fb4 Added Linux controller mapping for the Nostromo n45 Dual Analog Gamepad -1b689c335 Fixed bug 3503 - osx builds don't run on 10.6 as of rev. 10651 -4905cd9c0 Fixed bug 3340 - SDL_BlitScaled causes access violation in some cases. -cb8748b71 Fixed the controller mappings for the OUYA controller -5fcf2577f Added PS4 controller entries for the new Sony HID driver https://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/log/?h=for-4.10/sony -663afa911 Added support for the DS4 USB Wireless Adaptor -cd3aefc09 Updated documentation in header file. -a7655d77d Fixed warning about storing an unused value. -d834c08ac Add the controller mappings to the linked list in order -dd5d85a4e Added an API to iterate over game controller mappings -1e8f074c4 Avoid conflicts with multiple versions of udev by first trying the library that is linked with the executable, if any, and then picking the one that is in the build environment. This fixes joystick detection for applications using the Steam Linux Runtime -5220759f0 Made it safe to update joysticks from multiple threads, fixes crash in Steam -8bd4c6f33 Added fcitx-libs-dev to debian build dependencies, for Fcitx IME support -4fe3fb345 Added debian changelog entry for SDL 2.0.5 -7f764bd8d once more - iterating on this is annoying -51ccc9ed8 if the tap is explicitly disabled by code or by another program, let it remain disabled! this is different than the automatic "event tap was too slow therefore we stopped processing it" timeout which we want to re-enable after. -25f54f0f4 tap should default to disabled, not enabled -354a8f276 SDL for Mac - only enable global event tap when actually necessary (app has focus and has requested relative mouse mode or has asked for a mouse grab). in other situations the event tap impacts system performance and battery life with no benefit. -ff56c7b30 checker-buildbot.sh: Disable warnings that aren't explicitly static analysis. -d1c35febc macOS: removed deprecated UpdateSystemActivity() call. -fb5fd67cc Fixed all known static analysis bugs, with checker-279 on macOS. -fd250bd63 checker-buildbot.sh: Upgraded to checker-279, deal with zero bugs detected. -2f6ba615e Guess the USB VID/PID of XInput devices -e9983c7b0 We are comparing 16-bit values -e93e91f0b Pacify some GCC strict-aliasing compiler warnings. -5232b8e95 Fixed XBox One S controller mapping for firmware revision 3.1.1221.0, including back and guide buttons -232ae6886 Still more compiler warning fixes for various platforms. -40c2a6fb5 Fixed more compiler warnings. -52827361a directsound: fixed compiler warnings. -aa03b9d7a The XBox One S controller sends keys outside the standard joystick button range -6558ecdbf Added mapping for XBox One S controller firmware version 3.1.1221.0 -a949882a9 cpuinfo: fix SDL_HasNEON() on older iOS devices, fixed C++ comment. -361563357 Renaming of guard header names to quiet -Wreserved-id-macro Patch contributed by Sylvain -abe927106 Fixed warning building under mingw, patch contributed by Sylvain -c7351c2de Fixed a few warnings that show up with -Wdocumentation and -Wdocumentation-unknown-command, patch contributed by Sylvain -eaca3958a Fixed bug 3494 - SDL_test_fuzzer.c fails compile since r10604 -4a089ca1c Fixed bug 3486 - Can't get HINSTANCE of my window -2a5fab63e Updated configure script. -eb9cc0306 Fixed two memory leaks if added game controller mapping has lower priority. -a49ac09c0 Windows: Fixed crash if using current SDL_GetWindowWMInfo() from older programs. -d05a39d0a Wayland: Fixed file descriptor leaks if device was not initialized. -c34512626 Emscripten: Fixed handling of deactivated mouse events. -32cb34945 cpuinfo: patched to compile for getauxval() path. -0b33a1188 cpuinfo: more patching for Android. Legacy platform targets are a pain. -a298e5634 cpuinfo: Patched to compile on Android, Linux. -e8f4b7c4f cpuinfo: patched to compile. -74eb78dcb cpuinfo: more work on SDL_HasNEON(). -db97c3d3e cpuinfo: silence compiler warnings on non-Intel CPU architectures. -66a36d566 cpuinfo: disable NEON detection on Android for now. -5c6b2ebf2 cpuinfo: more robust ARM preprocessor checks. -35430a73f cpuinfo: first attempt at SDL_HasNEON() implementation. -7592b40b3 cpuinfo: Removed code duplication, cached CPUID details. -6fe15d634 Wayland: Fixed memory leak if output retrieval failed. -97aa57758 Fixed empty parameter list in signatures of internal functions. -818d1d3e8 Fixed bug 1646 - Warnings from clang with -Weverything -0d24495b1 Removed unused constants Except for SDL_bmp.c where they are historically interesting and I've left them in. -acce86591 [qtwayland] Set orientation and window flags via SDL hints -009a3f5aa Fixed bug 3490 - Build failure with --enable-video-directfb -ab8bd3d96 Fixed bug 3359 - Software renderer does incorrect blending with SDL_RenderCopyEx -c1e292fcf Fixed build error with missing function prototype in the SDL_test_harness.h header -c2837ef63 Fixed unresolved symbol on Visual Studio -57d01d7d6 Patch from Sylvain to fix clang warnings -c13a077d1 Fixed bug 3488 - Random crashes (because Memory overlap in audio converters detected by Valgrind) -37696150e Fixed build on various platforms -77000ff8c Fixed bug 1822 - Inconsistent renderer behaviour on rotation -23c01c189 Fixed bug 3079 - Allow non destructive SDL_GameControllerAddMappingsFromFile -74e1dd4c6 Define _GNU_SOURCE when building SDL -302a6e62a Fixed bug 3484 - DSP driver does not detect /dev/dsp0 -160e71944 Fixed whitespace and added code to support older game controller GUIDs -b6542ab23 Fixed whitespace -47418f2d5 Updated Windows game controller support -79f6ba5a8 Fixed signed/unsigned comparison warnings in Visual Studio -801a9eaf6 Updated Mac OS X game controller support -c406f649b Added USB VID/PID information to the SDL test programs -0cc6207c6 Added Linux entries for the Logitech Dual Action game controller -ac74e16cd Standardized the format of the SDL joystick GUID and added functions to retrieve the USB VID/PID from a joystick and game controller. -2898ada33 wayland: fixed compiler warning about pipe2(). -0a294a7ba nacl: pepper_49 SDK apparently has problems, move buildbot back to pepper_47. -920bc237d Upgraded buildbot to NaCL SDK pepper_49 (the current stable release). -6380d5c24 Fixed audio conversion for unsigned 16 bit data. -37d991d7d Fixed bug 3481 - Configure fails to detect dynamic library support on powerpc64le -057bca8a6 Better fix for last point in D3D11 renderer, thanks to Nader Golbaz -0396af651 Shifting a value by more than its bits isn't defined and has varying behavior depending on compiler and platform -40b571c91 Fixed bug 3468 - _allshr in SDL_stdlib.c is not working properly -d78003127 Fixed bug 3476 - round() needs _GNU_SOURCE on some old systems -330e2952d Fixed bug 2421 for D3D11 - SDL_RenderCopyEx off by one when rotating by 90 and -90. -4ed4997cc Fixed bug 2421 for D3D9 - SDL_RenderCopyEx off by one when rotating by 90 and -90 -d767a450d Fixed 2942 - Wayland: Drag and Drop / Clipboard -7ad3a46d7 ALSA: Fixed compile warning about unused function. -581992321 WinRT: Corrected header file guard comment. -062ca2b26 Removed empty statement. -6ed821304 Fixed Windows build -529883094 Fixed bug 3480 - minor update to NACL common.js -a17abf10b Also patched to compile on C89 compilers. -067f0c848 Patched to compile on C89 compilers. -f3456e9a9 Reworked audio converter code. -7e65d88f0 Removed premake build system. -0f83ae0fd Added some debug logging to print out every event added to the SDL queue. -baadd5468 Fixed text input events with UIM -acae3ebf7 Added mapping for the PS3 controller in Bluetooth mode -8eb762769 Skip duplicate key events sent by IMEs like uim. -d0c8bf7f0 Patch from Tapani P?lli to fix a memory leak in X11_InitKeyboard -a1f427651 Patch from Tapani P?lli to fix a memory leak in X11_GL_CreateContext -077d6e646 Fixed bug with udev support reporting -539afc5d0 Fixed bug 3473 - can't build on linux with an old kernel -9a8642bd6 Fixed bug 3478 - Patch Haiku to use dlopen instead of load_add_on -98d188f5d Added call to SDL_HasAVX2() in platform test program. -6f1f77b29 Fixed outdated info in README. -5fe984978 Fix double events / no repeat flag on key events when built withoutibus/fcitx -88f2d16e4 Fixed compiling on older versions of ALSA -fdcac1c24 Fixed audio data swizzling when the device channel map already matches what SDL expects -39ba2ab83 Fixed NULL pointer dereference, thanks Ozkan Sezer -5b14a943a Fixed bug 3466 - Can't build 2.0.5 on ppc64 -ebf07eb0d Added tag release-2.0.5 for changeset 38318a3ae49a -54eb9067e (tag: release-2.0.5) Fixed bug 3460 - docs/README-macosx.md: g++fat.sh should be g++-fat.sh in universal build command -8a73f7e89 Fixed bug 3461 - Implement TEXTINPUT events for Haiku -6d67c98e7 Fixed crash on Mac OS X 10.10 and earlier -012217f06 Fixed bug 3369 - RaspberryPI ability to specify a Dispmanx layer -267207ffc Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen. -ae8ca7c54 Fixed bug 3444 - Android-TV: no more handling of back button on remote -8109b1378 Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc -0eb5c976b Fixed bug 3456 - SDL_GameControllerOpen fails if the joystick subsystem isn't initialized -5af67f49f Fixed bug 3458 - x11: reset deadkeys in StartTextInput/StopTextInput -ba051ae7d Linux: Added missing scancodes. -f31ce3fb3 Windows: Fixed not removing the always added hint callback on quit. -c0578f929 Linux: Removed not needed platform info from entry in controller database. -099e8a685 Linux: Fixed compile warnings about unused variables. -1fd2646c6 Android: Split long line in README. -826508b6e Removed unused constants in controllermap program. -01f627367 emscripten: check if device pixel ratio has changed -bc93bdb92 Fixed compiler option warning for 64-bit builds on Visual Studio 2008 -d5ddb3cb9 Fixed bug 3453 - First mouse button input after a drag and drop event is ignored -8aab39cb7 Fixed bug 3452 - Getting unicode arguments for the main entry point on Windows -3f38bd914 Fixed warning about redefining DECLSPEC -3663dbe88 Fixed warning about missing field initializers in SDL_DBusContext Static variables are automatically initialized to zero. -824ecc8f7 Fixed processing mouse and keyboard events in hatari, which uses the old SDLMain.m without creating an SDLApplication instance -83cb2b63a Fixed bug 2758 - Android issues with NDK r10c and API-21 -f3502c3c5 Fixed building with cmake when fcitx isn't installed -8e2634eb1 Fixed divide by zero if setting integer scale without setting logical width and height -e4af8ce96 Fixed typo getting the drawable size -063f752e0 Fixed bug 3328 - Race condition in Wayland_VideoInit -f94bd0573 Fixed bug 3451 - Raspberry Pi Raspbian SDL_assert triggered sometimes at RPI_WarpMouseGlobal -c490b54e0 Fixed black screen on Steam Link -3f167a5a7 Added support for the PS4 Slim controller, model CUH-ZCT2U -cb7b823cc Fixed black screen on Steam Link -662f966cd Fixed bug 3355 - false "Invalid renderer" after creating an "opengles2" renderer. -741aaf4c8 Added a note on how to allow non-root applications to increase their thread priority on Linux -62310c6bf Work-around for a hang when USB devices are unplugged, contributed by James Zipperer -14e7da75b Backed out change 7d3df1df4e91 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points With that change only the wmain() entry point was defined, and applications that linked with main() would no longer build. -4c9f31398 Added note for David Carlier's work on OpenBSD -475904240 Build SDL as universal binary -3a77b42de Fixed build warning -f6bcfa017 X11: Fixed compile warning about unused variable. -ed80cfd9b Removed empty statements in tests. -9d0e07490 Linux: Removed redundant function call. -cfb24c767 Fixed pointer signedness warning -3b3dd9af5 Updated WhatsNew with 2.0.5 changes -f5c2bf120 Fixed comment for new pixel formats -36e40d30f Fixed bug 2923 - Add SDL_PIXELFORMAT_RGBA32 for byte-wise 32bit RGBA data -8a0704d15 cmake: Now generates Wayland protocol source bits like the configure script. -d9e3972ac Fix invalid read from poor setlocale usage. -aae28e3ec Fixed bug 3096 - SDL_BlitSurface with overlapping source and destination -564c790f3 Fixed a memory leak in function GL_RenderReadPixels -fed9b6049 Use SDL C runtime strlen() -ca42373fb alsa: more tapdancing to enumerate physical hardware devices. -9db5e9aae Made #if defined(X) consistent -6dedbc430 Make sure we have iconv.h before building with it -367a6a3dd Fixed compiling of three test programs with C++. -f9b15a94e Linux: Fixed mixed up scancodes. -f662f6806 iOS: Updated demo README. -42f85aa29 Fixed building and using fcitx IME support on Linux -27d4f0992 Implemented SDL_GetHintBoolean() to make it easier to check boolean hints -92d700f19 SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING -52ae92eaf ALSA_snd_pcm_drop() can hang on some systems (Steam Link) so don't use that when shutting down the ALSA audio driver. -808c75d1c Fixed bug 2824 - Add Fcitx Input Method Support -89abbbfe9 Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries -752931d85 Improve X11 key handling when XKB isn't available + add xvnc scancodes. -bb3cb4f42 overscan (feature for SDL_RenderSetLogicalSize): Fix to ignore overscan hint when using the Direct3D 9 backend. D39 does not support negative viewport values which the current implementation relies on. D3D11 does support negative viewport values so that will continue working. Refer to Bug 2799. -cceca2ac9 Additional patch to correct the number key assignments, and add assignments for keys that were missed -eea76fc19 Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0. -62b9e1c79 Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error -abefe7850 Fixed bug 3043 - fix alsa configury and cmake checks -9c4836552 Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees -5c2320f11 Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null -d3cbc664d Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip -104c9541d Converted README documentation to DOS text format -bf076c22a Fixed bug 2957 - De-reference rz_src without NULL check in SDLgfx_rotateSurface function -8b64a78da Fixed bug 2956 - De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function -93ff12ce8 Fixed bug 2952 - SDL_MixAudioFormat does not support audio format AUDIO_U16LSB/AUDIO_U16MSB -d2676c298 Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum -73f2c5413 Fixed bug 2885 - SDL_stdinc.h doesn't need to include iconv.h -7d2108ce8 audio: Backed out the audio-thread detaching changes. -24df68ea3 Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem -dac389281 Fixed bug 2832 - Inverted arrow-key navigation in MessageBox -8bc5c57d2 Fixed recentering triggers when the application doesn't have focus -72164985b Fixed bug 2823 - Release events for triggers receive wrong centered value -f674f2311 Fixed bug 2808 - Fix SDL reporting wrong window size on resume -5c1ab4030 Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch -f6a280ab7 audio: Don't trust audio drivers to drain pending audio. -551cdc8de audio: better way to calculate buffer drain wait times. -76f48acf6 audio: threading and device hang improvements. -3b0c79363 Some systems include both "default:" and "hw:" for the same usb device -8e1994614 fix for finding ALSA hotplug devices on Steam Link -9257b72d5 Backed out a very unsafe change that was trying to prevent audio hang at quit. -bac61096d ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device -69cf17035 fix deadlock on close device -2558c9c83 fix audio deadlock -56c88c453 Modified the custom cursor test to be able to load BMP files as cursors -a21a227a8 Fixed bug 3021 - HapticOpenFromJoystick() problems -1051dceb1 Fixed compiler warning about missing field initializers -5d5127c4a Fixed compiler warning - this should have been a const char pointer -46f44f66f Fixed potential buffer overflow in SDL_vsnprintf() (thanks, Taylor!). -351adf156 Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed. -34eebfba9 Fixed setting the version info in the shared library when using CMake -05ca784e5 Android: Fixed compile error. -67bf5cac1 Fixed wrong pixel format if reading pixels from OpenGL renderer. -f8aa4291c Added brackets to function names in header comments so that doxygen links them. -969c31679 Fixed MinGW-w64 build warnings in SDL_render_d3d11.c -702d9348a Added SDL prefix to local IID constants -3c8a26984 WinRT: build fix in joystick code -7851eb083 Fixed bug 3437 - build error for WinRT/UWP .dlls, caused by fix for SDL bug 3336 -8500de8fa Fix tabs -> spaces -f0539aa25 Fix bug 3436 - SDL_RaiseWindow not working on windows -4e6f21994 Fixed bug 3065 - Screen is flickering during closing on-screen keyboard on Android -c9be93c65 Fixed bug 3078 - cmake: fix sdl2.m4 install location on cross hosts -ac7d11747 Fixed build on older Raspberry Pi environments -a0d3e0d64 Fixed warning and code style in SDL_evdev.c -d2c8c5094 Fixed build for X11 -7b34f47e1 Fixed windows build -fa0f41763 Fixed build warnings and errors -fae5d0eab Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF. -c8cfccc2f Fixed bug 3116 - renderer->hidden in SDL_RenderCopy(Ex) -359f59aef Fixed bug 3130 - Spacebar not responding -555e6c968 Fix SDL not resizing window when Android screen resolution changes -0250eb3c4 Fixed bug 3134 - CalculateXRandRRefreshRate() returns incorrect refresh rate due to floating point truncation. -7543092ad Call setlocale + XSetModifiers before XOpenIM, Work around ibus+xim duplicate events. -64180d226 Fixed bug 3138 - c_dfDIJoystick2 already defined in dinput8.lib -da6197c5a Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges -1a31bbe2c Fixed bug 3157 - Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi) -473051f6b Fixed bug 3159 - SDL_blit_slow with BLENDING does not work -13dd2ccda Fixed bug 3161 - SDL_WINDOWEVENT_EXPOSED event possible queue overflow -614cb35a4 Fixed bug 3165 - define numbers don't match types in Swift -ecea3c4a2 Fixed bug 3169 - GLES2_CreateRenderer does not check SDL_GL_GetAttribute result, causing use of uninitialized data -67901f537 Fixed bug 3174 - SDL_SetRenderTarget clip rect -f4b26cd8e Removed carriage returns from previous patch -7b0ccd32e Fixed bug 3405 - Wrong default icon size on windows systems -86b4319d2 Fixed bug 3422 - OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable) -571f4ce8a Fix CMake setting an incorrect video backend on iOS -c2e256514 Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries -8d8e490dc Fixed bug 3262 - Premake scripts are not compatible with "Genie" (premake fork) -671f2a491 Fixed bug 3268 - CMAKE: ios fixes -6a9ee8fa4 Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip. -bb24662c7 Fixed bug 3301 - IBus support on Linux with CMake -765d8bea0 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad -c3e48e71b Force WM_PAINT events on window resize -f032f811a Fixed bug 3318 - testime.c enhancement with GNU Unifont support -3ac201cf7 Fixed bug 3319 - Getting the POSIX out of testqsort.c -d870f2719 Fixed bug 3320 - SDL_windows_main.c defines both console application entry points -2cbe9e2b7 Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug -6f11545a2 Fixed bug 3323 - SDL_LogOutput prints message twice on Windows when linked with libc -0b576962c Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications. -1e6e59548 Fixed bug 3332 - Win32: reset deadkeys in StartTextInput/StopTextInput -708def87f Fixed bug 3338 - console_wmain doesn't null terminate the argv array -77305d47c Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect -89c868f4f Fixed bug 3347 - OpenGL ES renderer doesn't flip projection matrix for target textures -061cc5e75 Fixed bug 3349 - GLES2_RenderReadPixels doesn't use target texture format -51d6371ec Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture -9fff05f8d Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW -53e22e4be Only use GCC pragmas when we're building with GCC -a42c396a5 Fixed bug 3361 - Texture color modulation doesn't work with active NONE blend mode (opengl and opengles) -3f1b1629c Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures -fd1d692be Fixed bug 3368 - SDL_Blit_Slow doesn't ignore alpha values in colorkey comparison -2ccb46ceb Fixed bug 3373 - OpenGL implementation differences of glDrawTexfOES -ca8ef2b73 Fix running autogen.sh out-of-tree As done in GNOME's jhbuild building tool. -9dfe54006 We should be using a string constant for the strftime format string -7edd2261e Fix "format not a string literal" errors With GCC 6.1. -461336a23 Add gamecontrollerdb lines for SFC30 controller in various modes -8f17b2038 Commit KEYCODE_SPACE as text input on Android -b7e45f8a1 Fixed bug 3336 - Failure to build with MinGW-w64 -9f854cdbe Fixed bug 3388 - Fail to build src/thread/windows/SDL_systhread.c on MinGW 4.9.3 -c2cb0b0ff iOS: Removed unused constant in demo. -7b23eef3b Fixed crash if allocating memory for mouse clicks failed. -e64c5186e windows: Removed hardcoded "1" for mouse clickthrough hint. -f10db4071 haiku: Patched to compile. -f2fcd324c windows: fix borderless windows at desktop resolution (thanks, Evgeny!). -b2510d9cb x11: fixed incorrect SDL_GetWindowPosition() after resize (thanks, Jason!). -4f4c4b629 Added SDL_SetWindowResizable(). (thanks, Ethan!) -257c89727 Fixed bug 3426 - Fixes for joystick related issues -f369d165f Fixed bug 3427 - Android accelerometer z-axis incorrect -5f2e83a95 Fixed bug 3429 - Update AM_PATH_SDL2() to also check for SDL2.framework -f1e0b9af2 Added debug output for new window events -67bdbcca4 Implemented SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH on X11 -d285af2a9 Added Windows support for SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH -a13da2faa Generalized the hint for whether the application gets a mouse event when clicking on the window to activate it, and is now named SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH. The behavior is defined to not receive the click event, and this hint allows you to override that. -8ddb4328b When clicking on a window to give it focus, don't pass the mouse click to the application. -f33c58b00 Updated Linux notes on building with Mir and Wayland support. -e45698d21 Updated version to 2.0.5 in preparation for release -f89857f1c Updated configure script. -357c3dd74 iOS: Updated comment in demo. -f31c7086d Enable SDL_LoadObject on iOS 8+ and tvOS. -77bacfd72 tvOS launch images are now properly supported. -a8b033d7c Update the code for the iOS demos to handle modern devices. Fixes bug #3337 -40ecac8e6 Don't try to load a launch storyboard on tvOS (it doesn't use them). -666d3fecc iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib. -9165ba7eb iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395). -450fa8cdf Use OS-provided click counts on macOS and iOS for mouse press and release events. -bac539412 Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!) -89c538a4e Mir: Add gamma support set/get. Still need one more function to complete the set -a729c4f97 Mir: Add fixme (waiting for a public api to be added) -705ecf78f [Mir] Move to the new MirDisplayConfig API -fc469f6f2 Mac: Fixed markdown formatting in README. -8e88f0815 Mac: Fixed whitespace around function return type. -929b965c6 Fixed compiling of three test programs with C++. -85588ea04 Android: Fixed two warnings about unused variables. -f0fca2880 Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960. -8f8f225b3 Xcode/mac: fix building standalone static and shared libraries. -06700a905 emscripten: get even more aggressive about audio device closing. -b7818d712 Recommended settings from Xcode 7.3.0 -29214826e Fixed warning with Xcode 7.3.0 -459102a5c Updated URL in a comment -a96b6f210 Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION. -4bcce330d tvOS: Add drop-file support -e5070d20e Fixed set of libraries needed to build on Mac OS X -93d42e2d3 Hopefully fixed the cmake build on Mac OS X -8c01d5886 Fixed building new coreaudio driver on Mac OS X -4209a1fd4 CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS. -dbe2997ac Fixed building for both iOS and tvOS on Xcode 8 -7f28853b8 Fixed including OpenGL ES on iOS without any other SDL headers -d0898b38f Allow targeting tvOS -86d4b0991 Fixed spacing -925859aaa Fixed accidental call to SDL_PrivateJoystickHat() -f05057666 Initial Apple TV / tvOS support. -86708c3cd Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit. -00791f3a8 Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte -993dd8351 Add mapping for media keys -1b6565fcb use Module.createContext for 2D rendering in emscripten -bec557347 add some detail to fullscreen workaround comment; version 6 -405d64b20 only unset fullscreen flags if fullscreen failed -c68cac89d use screen resolution instead of canvas size -791b946a4 Fix full screen mode in Firefox, which was broken by 9d4beb2 -b71208d45 Support SDL_SetWindowTitle() via Module['setWindowTitle']() -7cf44f1b4 Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange(). -264e996e0 Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain. -b54eb82c6 Unpress all keys on blur to avoid stuck keys -a0a75f384 Listen for blur and focus events on window instead of canvas -3e5c4cec9 Mouse events use CSS coordinates, so don't scale by pixel_ratio -a20c40c49 Accumulate subpixel mouse motion so motion is not lost. -443998ff3 Fix of mouse events in browser without pointer locks -2b367cb6b optimize Emscripten_UpdateWindowFramebuffer -63200ea39 optimize a getValue -42feccea3 Include timers when using cmake (#29) -98ec84438 send mouse move on enter/leave -a2ef0db8a listen for mouse up on document (fixes mouseup outside canvas) -cd05184f9 use SDL_SetMouseFocus -bdca510fd simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks -be08cc61f use css size for touch normalisation -1096f3230 Reverted previous commit which breaks game controller input processing. -61c0f2cf6 Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing -da1e3d693 emscripten: special case to make SDL_ShowSimpleMessageBox() work. -45553ac4d emscripten-buildbot.sh: exit with an error if configure/make fail. -6188c3342 mac: Patched to compile with CMake project. -0265d3af9 coreaudio: Move from AudioUnits to AudioQueues. -3b53304a9 coreaudio: capture devices should let the system allocate the render buffer. -fda7a3d15 coreaudio: Replaced an int with an SDL_bool. -f9d9708f6 coreaudio: Move some variable declarations to the top of the scope. -1428bab3b Fixes building SDL on Ubuntu 16.04 with Mir headers installed -f11a44099 wayland: Add support for relative mouse mode, by Jonas ?dahl -19d3500ae wayland: Build own version of core protocol -736a624df Wayland: Set "class" for each window we create This will be used by Wayland compositors to match the application ID and .desktop file to the SDL window(s). -2098bfb3c emscripten: Be more aggressive when closing audio capture devices. -f5d43cf91 WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code -ebb058910 Mir: Add mouse grab support (requires mir 0.24) -48490a528 Fixed log message in audio capture test program. -379a43040 Android: Removed unused internal function. -9581d4a58 Android: Fixed misleading warning in log output (thanks, Sylvain!). -cf28727f8 Android: Fixed missing mouse motion events while button down (thanks, Sylvain!). -51053a062 Fixed compiling if filesystem is disabled (thanks, Elias!). -5020fe8fd WinRT: added SDL_*ScreenSaver() support; fixed crash when restoring app from screensaver -651107a11 Fixed sorting and name of XBox wireless controller entry -4c1484784 Merged Change: 3576099 from rel/streaming_client -b65763c0c WinRT: patched to compile -5bcf1d256 cocoa: Fixed incorrect autorelease, noted by static analysis. -c9bfcbde6 nacl: Patched to compile. -714aa2113 Patched to compile on Haiku. -2da1ec835 Merge audio capture work back into the mainline. -06dcdc7d4 Patched to compile. -850da32f3 alsa: Implemented hotplug support, cleaned up device names. -35e564a69 ios: patched to compile. -cfa95fe68 alsa: don't enumerate virtual devices, just physical hardware. -ad1bfea5a Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() Updated the removal code to iterate over all joystick add messages instead of just the first one. -c69bce677 commit 1170112da3776fdb06425f62d57b63144c33dc51 Author: James Zipperer Date: Sun Aug 21 01:19:19 2016 -0700 -e79f00097 Emscripten: Fixed crash if closing removed joystick (thanks, Sylvain!). -e41e185ea Android: Fixed crash if closing removed joystick (thanks, Sylvain!). -5150eb361 WinRT: fixed bug where Win10 GameBar, when shown + hidden, might not restore a cursor's hidden state -f6f9350a3 Added link in header comment. -a12855257 Emscripten: Fixed opening previously closed joystick. -c18ff8d25 Android: Fixed opening previously closed joystick (thanks, Sylvain!). -b6daf1f60 testaudiocapture: ask for way more output samples. -d05ae1941 emscripten: send fake mouse events for touches, like other targets do. -3b88f5c69 emscripten audio: check for an "undefined" object, remove some console.log(). -e435659c6 audio: Cleaned up "extern AudioBootStrap" list. -6f4bcd249 audio: Renamed some internal driver symbols in various targets. -8f0af7735 android: implement audio capture support. -b78ec9749 directsound: Implemented audio capture support. -21c7fe006 windows: directsound should also map audio device GUIDs to proper names. -b879595a2 audio: Patched to compile on C89 compilers. -244d2dbcd emscripten audio: fix timer on capture's silence callback. -7a8e4cb01 directsound: recalculate audiospec size before creating secondary buffer. -358a168c9 emscripten audio: Added audio capture support. -5de11a5fc Added a FIXME. -3139e5d16 testaudiocapture: open capture device to same spec as output device. -a05bde217 audio: Only allocate fake_stream if we're using the standard audio threads. -be8d7a46f audio: simplifed check for internal callback. -8097f272e [ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed. -df4985e20 dsp: Implemented audio capture support. -a0ff2554c winmm: Try to get full device names from the Windows Registry. -ff7df7e68 winmm: Added a FIXME for truncated device names. -51d152338 winmm: Implemented audio capture support. -a21e6af51 Add Xbox One controller GUIDs to the XInput filter in the DirectInput joystick driver. -4499e5bcc disk audio: Make default i/o delay match what device is meant to be running at. -978df1ad7 disk audio: Implemented "capture" support, cleaned up some things. -a15b97404 testaudiocapture: use capture device buffer queueing, for better test coverage. -731539017 audio: Implemented buffer queueing for capture devices (SDL_DequeueAudio()). -7bfe494c6 testaudiocapture: don't use fullscreen for the window. -e7347a402 audio: SDL_ClearQueuedAudio() should free everything but two packets. -9a3315445 nas: initial shot at audio capture support. Compiles, but not tested. -9b2a59ef0 audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice. -761a79788 audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections. -979de761c audio: Removed internal SDL_audiomem.h and macros. -9b6477277 audio: Clean up some CloseDevice() interface details. -30a9139bc arts: backed out audio capture support. -20cd5e44c dummy audio: Patched to compile. -24bc00a83 Fixed two old identifiers in header comments. -82c94a3f7 PSP: Fixed memory leak if video init failed. -9f97ee8a8 WinRT: Removed not needed SDL_zerop() after SDL_calloc(). -a4abda0b7 Added brackets to function names in header comments so that doxygen links them. -17246ba95 dummy audio: Implemented dummy audio capture support. :) -9dd8477a2 bsdaudio: first shot at audio capture support! -d30a2f5ad bsdaudio: this appears to be using the wrong variable...? -ecbd625c4 arts: Patched to (maybe) compile. -a7dddacd9 arts: implemented audio capture support. -38f4b68ca alsa: capture devices don't need a mixbuf allocated. -3ed9b0f56 testaudiocapture: made test app interactive. -a9ef240ce coreaudio: Implemented audio capture for iOS. -f758483a2 testaudiocapture: Make a simple green/red window when recording/playing. -41e8f9ede alsa: Implemented audio capture support! -754efd43f alsa: Cleaned up the 5.1 swizzle mess a little. -6bd1ec6bb audio: a little more robustness in the capture device's thread. -d662bc04a pulseaudio: Implemented audio capture support! -0d0f7080a audio: implemented higher level infrastructure for running capture devices. -6d5c9c1e6 audio: Made some SDL_AudioDevice fields atomic. -b35b9f950 testaudiocapture: Let specific devices be opened. -ca57b9ee1 BUGS.txt: Bugzilla supports SSL; changed link to https:// ... -67f2538c4 audio: changed some internal ints to be SDL_bools. -a94376c72 nacl: unlock audio thread mutex when done with it. -c754662dd audio: Make SDL_AudioDevice::shutdown an atomic value. -015dd8dd1 audio: Implemented capture support for Mac OS X CoreAudio. -ee0997500 audio: Initial bits to enable audio capture support. -456901150 Fixed information in touch README and changed identifiers so doxygen links them. -3853f7cd3 Android: Updated a comment. -242c3480b Android: Replaced deprecated AbsoluteLayout with RelativeLayout. -4743b55c7 Linux: Fixed memory leak in haptic implementation (thanks, Martin!). -8d6cbdd23 Pandora: Fixed memory leak in video implementation. -53ac57128 Pandora: Fixed compile warnings in video implementation (thanks, Bombo!). -427472fe2 ALSA: Fixed adding wrong status to error message (thanks, romain145!). -562926cdd Pandora: Fixed SDL version in debug output. -38ad328ab Pandora: Updated SDL version in Makefile. -f945e2e73 Pandora: Fixed referring to no more existing atomic source file in Makefile. -d478f26ef Updated comments in video implementations. -c8cd5c559 Pandora: Fixed compile error in video implementation (thanks, Bombo!). -e7a9095f5 Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!). -58b323f19 Android: Fixed missing export of a JNI function (thanks, Andrii!). -6b1d5f446 Android: Fixed compile warning about a missing prototype (thanks, Sylvain!). -de5daaad6 Fixed compile warnings about evaluating undefined identifiers. -578edca45 Tests: Would be wise to compile this -bebb6dee8 Tests: Somehow tabs leaked in... -f2413850d Tests: Add a manual test for a custom cursor (Taken from the API docs) -d8866e840 Tests: Mir needs the window to swap at lease 1 frame for the cursor to show. So render in testwm2 -eadb30cd6 MIR: Fix system cursors. Been broken since custom cursor support was added! -495057b04 Android: Added new key codes from API 24. -d0bd0e485 iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!) -b52465711 Fixed three source comments in tests. -b5aa5b04d Added a simple test case for SDL_sscanf() to tests. -6ec5e6405 Fixed freeing strings created by strdup() with SDL_free(). -2f016cf88 Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters. -f4d33fcbb Fixed compile warnings in test library about formats strings not being literals. -696867eed Mac: Updated file name in README. -23af328bb Fixed Bug 3147 - Windows: Crash when resizing Window since hg 1f9d57965528 -ce456cfb8 Mac: Updated availability macro in build script. -4a339a46e MIR: Add better error handling for a failed connection -f0708fc9d MIR: Support relative mouse mode -ea2f5e593 Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!) -0a4085a04 Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB. -4a468739f Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!) -6255c8584 Updated documentation of SDL_IsScreenSaverEnabled(). -d4140ca47 Windows: Fixed missing error message if SDL_GetDisplayDPI() failed. -d7b9d321f X11: Fixed typos in error messages and source comments. -81235118a X11: Fixed missing error message if SDL_GetDisplayDPI() failed. -441359bd5 WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events -e964d00f6 X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown. -748b05289 EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error. -cfe3f2611 Updated documentation of SDL_CreateWindow() and SDL_CreateWindowFrom(). -fe4c3b29d iOS: Added brackets to function names in README so that doxygen links them. -bf7a76155 Fixed missing error message if SDL_GetDisplayDPI() is unsupported. -73b63e5b5 Fixed crash in shape test program if memory allocation failed. -31e23d57d Fixed error return values in filesystem test program. -52fec6aff WinRT: allow on-screen keyboard to be shown via SDL APIs, Win10/UWP only -6a9a8b682 Fixed memory leak in game controller test program. -63f2ec8e5 Updated documentation of SDL_HINT_THREAD_STACK_SIZE in header file. -b1ce3799e Added missing links at documentation of SDL_FreeCursor() in header file. -b15efce27 Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312. -d38350265 Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit 2f72bdfee9bb -bb9dcf571 Android: Updated name of README file. -46851a670 WinRT: another README tweak -937ae32c7 WinRT: README tweaks -31cbb34ec Wayland: Removed not needed including and setting of errno. -ea86c01a8 Fixed markdown formatting in porting README for doxygen output. -b53007b0c Added missing error return in test program. -72dc8784b PSP: Fixed compile error. -caf152def WinRT: build/link fix -c137eb61d Patched to compile on Haiku...? -9b9ca093c windows: created threads' stack sizes should be reserved, not committed. -9b4db2b8a Patched to compile on various platforms. -c61675dc5 threads: Move SDL's own thread creation to a new internal API. -7ae2951fc threads: Handle SDL_HINT_THREAD_STACK_SIZE at top level, implement elsewhere. -8b65d225e WinRT: bug hack-fix - gamepad detection was failing on Xbox One -34f095e09 iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older. -a581346fa alsa: Make device enumeration robust against weird results with NULL strings. -6cfa71a10 iOS: Also do the Dictation crash workaround before executing the animation callback. -88372277b Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X. -5520ed9cc iOS: Workaround for a crash after Dictation is used. -f3ca4e4d5 iOS: Fixed compiling demos on C89 compilers. -831597f71 PSP: Fixed returning success from unsupported SDL_RenderReadPixels(). -d1e481412 PSP: Fixed returning success for unsupported SDL_SetTextureColorMod(). -12c78c5ca PSP: Fixed missing error message for unsupported SDL_CreateWindowFrom(). -3555e6e58 Updated info about required Ubuntu version for Mir support in README. -a9edc5137 Wayland: Fixed missing error message if creating a custom cursor failed. -9011eb1c4 Removed not needed SDL_WINDOW_SHOWN from chessboard test program. -62ebc527d iOS: Removed not needed SDL_WINDOW_SHOWN from rectangles demo. -bd60850b8 iOS: Fixed keyboard demo ignoring quit requests and window closing. -e9ca5b28a iOS: Replaced #import with #include in two demos. -5fa0cbc4b iOS: Restored older version of rectangles demo. -16c479f33 iOS: Updated SDL version in demo README. -fd3dd4e51 Fixed comment in gesture source. -08488e6d3 Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in OS X 10.6. -2c3bf6658 Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset. -35da13082 Wayland: Fixed crash if memory mapping failed while creating a custom cursor. -fa77df4e9 Wayland: Fixed storing a theme cursor which is never used in video data. -a29a925d7 Pick up new display mode information after a mode change (Windows only right now). -5333deab1 Quick fix for qsort off-by-one error. -19f18558a Emscripten: Deactivated custom cursor support because it created system cursors. -676041aa1 Wayland: Fixed drawing created cursors without transparency. -167dd4a1f Wayland: Fixed showing created cursors incorrectly before the first redraw. -0c923fda0 WinRT: Removed dead code and fixed memory leak if allocation for driver failed. -b82f48bad Fixed compiling IME test program with HAVE_SDL_TTF on C89 compilers. -43594e3f3 Removed unnecessary include statement in test program. -deb2acbcd A simple test program for SDL_qsort(). -7e0261ec2 Another commit to test revision control. -64d51a93f Minor tweak to a README to test Mercurial server. -6303941ac Fixed infinite timeout in SDL_WaitEventTimeout() - thanks ?????????? ???????? -2a754ca73 Allow mappings to be added before GameControllerInit -1e8df9cd6 alsa: Implemented basic device detection. -f647dfe87 x11: Fix a few more XMoveWindow() calls to adjust for border size. -02f49fdb5 x11: Deal with window borders better. -05b6ca3c3 Raspberry: Fixed crash if memory allocation for cursor failed. -21d329759 Fixed compile warnings about unused variables in IME test program. -be34036ed Wayland: Fixed fault in event handling which might have caused a crash someday. -ab8be0431 Wayland: Fixed crash if allocating memory for cursor failed. -e8b436851 Replaced strlen() with SDL_strlen() in IME test program. -3a22321d5 wayland: Add wl_proxy_marshal_constructor_versioned sym -90ef601d8 Mir: Do not use opengl to find the valid pixel format if we dont use opengl -966aa3721 Mir: Replaced memcpy() with SDL_memcpy(). -b4b36122a Mir: Fixed comment at conditional compilation macro. -4011d991e Fixed doxygen warnings about markdown formatting. -92209c260 Mir: Fixed crash if allocating memory for cursor failed. -697984df2 Regenerated configure script with Mir changes. -3607d3b75 Fix API/ABI breakage in Mir 0.13/0.14. -481a21b02 Windows: Just use WaitForSingleObjectEx() everywhere. -9fd4d4dd3 Windows: let threads be named in the debugger. -32c70cc54 stdlib: Restored previous qsort() implementation; the licensing is resolved. -2436ca200 x11: better fix for the previous commit's fullscreen vs maximized issue. -a4627c5ed x11: Don't mess with fullscreen vs maximized window state on unmapped windows. -dddd6a5a9 Android: Restored Philipp's joystick change, lost in the previous merge. -03f971179 Merge Android C89 fixes from Eric Wing. -df4be2f20 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy. -d6699d554 Added support for the Mad Catz FightStick TE S+ PS3 -5c59da2e8 Added support for the Mad Catz FightStick TE S+ PS4 -068285778 Added support for the Akishop Customs PS360+ v1.66 and MadCatz PC USB Wired Stick 8818 -a38d5b480 Added support for several Mad Catz arcade sticks -1c2beb218 Allow using the game controller API with arcade sticks and other XInput devices -9cd9925cc Android: Changed an internal joystick function to return count instead of id. -0e2badc14 x11: Patched to compile with DEBUG_XEVENTS on C89 compilers. -45407d0ea x11: Removed an assert. -09ae4df5b Another attempt to fix Windows build. -18f74c6e1 Patched to compile on Visual Studio. -014956ac1 Replaced SDL_qsort with public domain code from PDCLib: http://pdclib.e43.eu/ -33af421d7 Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in SDL_Delay. This ensures the Windows system timer resolution is properly set before Sleep is called. -37a541678 PSP: Deactivated dynamic API. -570215b9d PSP: Added missing object for generic TLS to Makefile. -7da168db0 Fixed spaces in license comments. -704298c0c Android: C89 cleanup to avoid warnings/errors since the default gcc mode on Android is still pre-C99. -5ed63ae31 x11: Updated imKStoUCS.* to latest from x.org. -8e7cd6b5d iOS: Implemented clipboard support. -4249f4666 David Carlier implemented SDL_GetBasePath() for OpenBSD -1fb30db04 Return the full number of events from SDL_PeepEvents() if NULL is passed in with SDL_PEEKEVENT -325921789 x11: Fix AltGr generating an invalid keycode (bug #3244). Thanks Thomas! -9bdd18811 PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality. -88f519372 Android: Fixed ignoring a return value while handling motion events. -67f9fd2bc Fixed creating fullscreen windows on Steam Link -e5d575b93 Expose the EGL display and window for Vivante SDL windows -0a1999dfd Fixed compile warnings about type conversion. -2191abb2c Android: Fixed finishing Activity on some devices if right mouse button pressed. -28817c9c7 Fixed two typos in documentation. -8d035b1ae Android: Added mouse initialization to reset state. -46cb85101 Android: Fixed a comment. -156035190 Android: Added mapping of mouse forward button and mouse back button. -87ea39be8 Removed dead code (caught by Clang's static analyzer). -1615b2e29 CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all. -06129f6de Fixed buildbot's static analysis script to enable assertions. -ed6203336 x11: make last mouse coords sane upon window entry (thanks, Cengiz!). -757e994ea Fixed --enable-new-dtags check with cmake -dc5f05bb9 Use --enable-new-dtags to set RUNPATH rather than RPATH so that LD_LIBRARY_PATH is not overridden by the application. -73680ab37 Fixed NULL dereference on drop events with no window associated. -1c4c3f505 Updated debian packaging files -5dcf6bcc3 Updated dynamic API table. -167cf14c1 SDL_RenderSetIntegerScale -416d04666 Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!). -1d1ba58f2 Fixed compile warnings about uninitialized variables in test library. -a4ce22fbf Fixed outdated information in a README for iOS. -1a26c0c83 Fixed doxygen warnings. -bb1e2bd0b CMake: Turned off Mac OS X rpath warning kludge. -49e47688b Patched to compile on iOS. -881ccccbc Android: Fixed up drop events for new interface. -eeb899999 Patched to compile. -7605ccf68 Use SDL's stdinc functions instead of C runtime calls. -dc532c70e Added SDL_WINDOWEVENT_TAKE_FOCUS. -d77a55738 merged SDL 2.0.4 rc2 -4393a7111 Added missing file and folder to the release archive. -36af63f0c Added the docs directory to the release archive -fb5732dc5 GCC is warning about global functions with the same name as variables in the code, when using -Wshadow. This is a little ridiculous because we have no idea what functions a given platform will provide, so we'll disable -Wshadow for now. -903df4afb Use CLOCK_MONOTONIC_RAW, if available, which is not subject to adjustment by NTP -f71fa2f40 Android has clock_gettime() - thanks Michael Labbe! -3426c99ac Cleaned up Xcode rules a little more -f6b788f09 Simplified Mercurial ignore rules for Xcode build products -d763a9f64 Fixed bug 2538 - SDL_SetTextureAlphaMod does not work with SDL_FlipMode or rotation in the software renderer -b7ede6cc4 Fixed bug 1550 - SDL_RenderCopy/CopyEx in software should optionally render 8bit alpha -e589cdba2 Fixed bug 3023 - setting a white and then non-white texture color mod breaks the texture with software renderer -82ae4f6fc [mq]: 3027_rleperf.diff -21935b031 Added more entries and brackets to WhatsNew.txt for 2.0.4. -3a84f7b52 CMake fixes for MingW (thanks, Ozkan!). -dd8c64779 Updated WhatsNew.txt's 2.0.4 list to include a more detailed set of changes for iOS, and added a couple missing items to the OS X and Windows sections. -604932ea8 Moving some whitespace around to test something on the Mercurial server. -27fab8f4b merged SDL 2.0.4rc1+ -1a348aac4 Android: Fixed two warnings. -40244dc1a Whitespace fix. -d002d6bf9 Removed Edgar's name from SDL_haptic.h at his request. -459890354 Partial fix for bug 2758 - Android issues with NDK r10c and API-21 -3779bf384 Fixed bug 2948 - [Android] Arrow keys from external keyboard are not received -5db002bb1 Fixed bug 2949 - [Android] Virtual DPAD remote not registered -33ed20faf Fixed bug 2774 - Android: screen distorted in Landscape after background/foreground -d29812d09 Moved entry in WhatsNew.txt because it was already in 2.0.0 for Android and iOS. -58efd8e54 Fixed comment in test program. -ae60afce1 Excluded SDL_egl.h from doxygen input. -59d34bc35 Fixed bug 3015 - grab mouse inconsistent state -ccc12a363 Implement repositioning the OS-rendered IME with SDL_SetTextInputRect on Windows. -0c3830a9a Haptic/Linux: Keep track of device numbers properly to track duplicates. -d79758237 Fixed style -34634082f Fixed bug 3012 - Android accelerometer joystick axis values overflow when values from Android are larger than gravity -e3df6d5e6 Fixed bug 2953 - Crash due to a bad cleanup in the SDL_SYS_HapticQuit function -a4eb0dea8 Fixed bug 2908 - Fix clang warnings -564ece516 Only use explicit inlining - otherwise Visual Studio 2010 will inline SDL_zero(info) in SDL_vsnprintf() into a memset() call when compiling the Release x64 configuration. -c18e7724e Fixed 2010 solution and removed Release_NoSTDIO build configuration -4c4848568 Updated Visual Studio projects There is now a single solution used by Visual Studio 2010 and newer -0c9da0c85 WinRT: made sure build script generates Release-built binaries, by default -98f9b88ce Fixed bug 3011 - pthread/SDL_syssem.c requires _GNU_SOURCE -9cf47d2f0 Fixed bug 3010 - SDL_x11messagebox.c needs including X11/keysym.h -8b737fa8f Updated WhatsNew.txt for 2.0.4 -aee055222 Fixed bug 3009 - Cannot compile SDL2 on Windows -d8c2b36c2 Fixed crash if allocation for touch device failed. -714687427 Make some string literals "const char *", not "char *" (thanks, Martin!). -f29de0d32 Fixed bug 3005 - MOMO steering wheel not detected by SDL -a86df3b7c iOS: Fixed some cases where SDL_DestroyWindow or SDL_GL_DeleteContext can cause crashes. -cd1d7c94e Wayland: Fixed SDL_GetTouchDevice() returning 0 for the valid device index. -5d6aa08b2 Emscripten: Fixed SDL_GetTouchDevice() returning 0 for the valid device index. -86e9ab79c Linux: Fixed not needed call to close() on error. -f1924a616 Normalized endlines. -69bef005b Added LDFLAGS note to Raspberry Pi documentation (thanks, Michael!). -50981d418 x11: Drop duplicate XInput2 XI_RawMotion events. -7232e51a6 Unix: Don't send quit events during signal handler. -8283abdb7 Updated configure script. -e3f4ca0d7 configure/cmake/x11: Removed SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 test. -f5dce3c63 CMake: default to shared library builds being enabled. -d98cfe143 Let's assume that if VS2005 and VS2010 do it, VS2008 probably does, too. -753f95c5d VS2005 tweaks (thanks, Ozkan!). -8bac79679 Maybe patched to compile on some Windows configurations. -141ac2b59 Backed out changeset c6d43e08be34 -699f879a8 Fixed a memory leak (thanks, Zack!). -8a85084fc RPi: Patched to compile without OpenGL (thanks, Simon!), other cleanups. -5b2e7aab3 Fixed comments at conditional compilation macro in header file. -fd8b7c1ca Fixed comments at conditional compilation macros. -c3186d5ee Android: Added deactivated intent filter for testing drop file support. -f080ac3e6 Fixed docs path in RPM .spec file. -360d05bf7 X11: Fixed SelectionRequest replies for target TARGETS. -96aef8cbc X11: Fixed compiler warnings in DEBUG_XEVENTS sections. -7738bd9b5 AIX: Fixed nearly impossible file descriptor leak. -eab076a7e Fixed not needed calculation in test program. -38549a7bb Fixed bug 2625 - Direct3D9 with SDL_TEXTUREACCESS_TARGET textures causes an application crash -ba1263cd1 Backout commit 83034612a883 -e8b376c9d Linux: Implemented sysfs-based version of SDL_GetPowerInfo(). -36ecb766c Changed a static function to match the naming scheme of rest of source file. -cad269bc2 Also set the _NET_WM_NAME. Window managers supporting this will take this value over the value set by XStoreName. This explicitly supports UTF-8 encoding, which fixes corrupt UTF-8 titles in KDE. -52df7f5b8 testmessage: Try Unicode chars in the title, too. -05e78b3f4 X11: search all XI2 touch devices, not just masters (thanks, Volumetic!). -554b2b0e3 X11: Fixed message boxes not responding to click on titlebar close button. -cb60f2dfc testmessage.c should report when message boxes were closed. -8bfc622b1 Fixed memory leaks in testfilesystem.c (thanks, Nitz!). -7619ad343 Cocoa: deal with mouse focus when warping the cursor from outside a window. -5b2ff76c1 Cocoa: send a MOUSEMOTION event when warping cursor from outside the window. -dbfd4fdd2 Android: Added missing space in three log messages. -551fbf7be Android: Changed two unknown keys to be consistent with Windows and X11 mapping. -80614b27e Fixed swizzle of SDL_FillRect() on 24-bit surface (thanks, "nagydavid91"!). -1899dfb04 Fixed SDL_ISPIXELFORMAT_ALPHA to check pixel orders that match pixel type. -e58a5c43c X11: Fixed high mouse buttons mappings and horizontal wheels (thanks, Daniel!). -870df8ada Cocoa: ignore mouseDown events in a window's titlebar. -8c9571a26 Fixed typo in header file documentation comment. -f001a00b0 X11: Force the window focus during ShowWindow if there's no window manager. -c88818372 Improved fix for bug 2096 - Mapping from scancode to keycode doesn't work for remapped modifier keys -45f967be8 Fixed building test programs on the iOS simulator -da1909755 Fixed clip rectangle calculation when there is a viewport offset -6e67c949c Fixed bug 2054 - SDL_GetError: "Unknown touch device" -32d6dcdb4 Fixed bug 2096 - Mapping from scancode to keycode doesn't work for remapped modifier keys -4d1626d04 Windows SDL_GetBasePath: free string on failure. -aa43bee43 Windows GetBasePath: fixed reallocation code. -566316e05 Windows SDL_GetBasePath: Fixed wrong variable when growing the buffer size. -f9abea206 Fixed bug 2210 - Initializing Video produces unnecessary errors -6a3ad8a99 Fixed bug 2367 - Bad mouse motion coordinates with two windows where one has changed logical size -bccc2ad09 Fixed compiling and tested on Windows -6d1ad3847 Windows GetBasePath should use GetModuleFileNameExW() and check for overflows. -75702ffeb Make sure we have the vsscanf() prototype (thanks, Ozkan!). -cb24f4de9 Fixed bug 2772 - SDL2 doesn't handle X KeymapNotify events -aa4952fde Added SDL_WINDOWEVENT_HIT_TEST. -d4aedf995 Added SDL_SetWindowModalFor(). -e497e4651 Added SDL_SetWindowInputFocus(). -3bdaf4c61 Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity(). -5696e88e6 Added SDL_GetWindowBordersSize(). -f9af0c037 x11: Put a matching window_group wmhint on every window created. -8e855f2fb Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops. -f2defe5e1 Added special window type flags. -f9b737934 Added SDL_DROPTEXT event, for dragging and dropping string data. -c3114975d Added SDL_GetDisplayUsableBounds(). -8875a4014 x11: Optimize SDL_GetGlobalMouseState() a little. -14e007772 x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED. -9a7527988 x11: Workaround window managers that mark fullscreen windows as maximized. -81209acbd x11: Let apps specify that video init should fail if XRandR is unavailable. -f9d478b6c x11: _NET_WM_PID needs a long, not a pid_t, I think. -e6e62bee7 CMake: Let static libraries optionally be built with Position Independent Code. -008a6abd0 CMake: use the old MACOSX_RPATH behavior (for now), silence the warning. -0c0ce2096 Updated comment: this is the correct way to do fullscreen on X11 now. -e0e04542d Added a few FIXMEs. -1373e8909 Try to build with GCC's -Wdeclaration-after-statement. -15bc7aea6 Mac: allows apps to use OpenGL on a slower, integrated GPU. -7678b1db8 Patch to compile on C89 compilers. -6df5e1e53 x11: Support _NET_WM_USER_TIME and give _NET_ACTIVE_WINDOW a valid timestamp. -9fcf5d7d4 CMake: Don't link directly to libGL on Unix. -1240f8e0a CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead). -fa8c83c1c Remove almost all instances of "volatile" keyword. -21f66ea29 Added tag release-2.0.4 for changeset 5596f75b34e8 -e2fd1c0fe (tag: release-2.0.4) Backed out commit 80ce90dbc266, this causes Visual Studio build failure on buildbot -68a327285 Fixed sed error on Mac OS X and updated copyright on a few last files -ac444cd31 Fixed bug 3092 - Statically link sdl2 with /MT for msvc -42065e785 Updated copyright to 2016 -5ba1fd9bb Fixed typo in README for iOS. -4a93dae4c Added brackets to function names in header comments so doxygen links them. -4aae0290e Updated some header comments and iOS documentation to better clarify high-dpi / retina support and screen-coordinate sizes versus pixel sizes. -b0d8dfcd8 CMake: Fixed building for Windows with VS2015 (bug #3080). -44c0b2da8 WinRT: minor code-comment cleanups -6823a2216 WinRT: fixed bug whereby a Win8.x app's SDL_Window wasn't getting de-marked as maximized (on window restore) -d8aa06628 Fixed Bug 3217 - WinRT: after alt-tab'ing back into fullscreen app, mouse cursor is sometimes wrong -854cf7ac4 Fixed Bug 3215 - Win32: 'fullscreen' app doesn't always extend to top of screen -9d789ebe0 Updated configure script. -c41feca5d Fixed a crash if creating accelerated renderer after accessing window surface. -696cd7975 NetBSD: fixed issues with cpuinfo and pthread_setname_np (thanks, Thomas!). -ce0f90ffb NetBSD: improved joystick support (thanks, Thomas!). -2254932b3 Added support for building for NetBSD on the Raspberry Pi (thanks, Jared!). -18c7d6df2 XRandR: fixed primary output detection logic (thanks, "winterknight"!). -326b35780 Mac: don't ignore mouse clicks on the top pixel of a window (thanks, Joshua!). -61518bce6 CMake: Changes to get CMake project to work with Android (thanks, Martin!). -7e679ed2c CMake: fixed a failure to reset CMAKE_REQUIRED_FLAGS (thanks, Martin!). -c9927bbb1 CMake: don't try to use the Linux joystick code on Android (thanks, Martin!). -7ca3b2706 CMake: Fixed to work on Windows 8 SDK (thanks, Martin!). -2f5928497 Fixed typo in sdl2-config.cmake.in (thanks, Rafal!). -f893ce3d3 OpenGL+GLES renderers: Fixed incorrect clip rectangle coords (thanks, Marcel!). -4ae69e322 Mac: expose joystick buttons that report themselves as having 'Start' and 'Select' HID usages. -51c1d69d1 Mac: Whoops, lost legit Caps lock keypress events. Fixed. -fd6b435c6 Windows: resync num/caps lock when window is gaining focus. -257b7af24 Sync up the caps/numlock state properly without sending key events. -d3b323f89 Mac: Fix keyboard state if capslock was toggled while app wasn't in foreground. -fa7c15ce1 WinRT: made bug 3202/3213's fix apply for WinRT apps -2befe01d3 Removed a tabstop. -6a2e8a7a9 Win: make sure SDL keyboard state reflects system capslock state at startup. -9e9ef5ad3 Fixed bug 3202 - Fix renderer visibility on a window maximized directly from the minimized state -faed05850 Mac: make sure SDL keyboard state reflects system capslock state at startup. -1446faf00 Fixed a comment in two test programs. -cbe19d537 Fixed whitespace in testspriteminimal.c -8281cc72b WinRT: Fixed bug 3210, "alt-tab doesn't work correctly with full-screened, UWP (Win10 Store) apps" -8ddcc63ac sdl: -7b680a2ab Fixed mapping third party XBox controllers that have the trigger axis all the way in until they are pulled and get updated values. -402698091 Cleaned up some code formatting. -cb15bb4cf iOS: Set the player index of MFi gamepads when the user first presses a button, rather than when it's programatically opened. -a2235d7b2 Cocoa: Use NSTextInputClient instead of NSTextInput for text input handling. The latter was deprecated in OS X 10.6. -0c463d770 SDL_GL_GetAttribute: If a GL context isn't active, only return failure when the specified attribute needs an active GL context to be queried. -f2f435ee4 WinRT: fixed bug: Back button(s) weren't working on Win10 -d1e6a2ebe Added broad support for wireless XBox 360 controllers on Linux -11c13916d Fixed outdated information in README for test programs. -0dc43729b Pandora: Fixed referring to no more existing CD-ROM source files in Makefile. -d3a841eb8 Pandora: Fixed deactivating no more available CD-ROM support in config header. -976bc9a91 WinRT: build fix for Windows Phone 8.0 -2b4848187 WinRT: enabled the Win10-Store Cert Kit bug-workaround, for Windows 8.0 apps -a40d49aa1 WinRT: enabled the Win10-Store Cert Kit bug-workaround, for Windows 8.1 apps -898054a17 WinRT: fixed a build error when compiling Windows 8.1 .dlls -c8e3bfbf5 WinRT: removed an unused variable from DXGI-based display-detection code -781455fd8 WinRT: workaround for a possible bug in the Win10 Store's Certification Kit -57f2f3baf Windows: Added missing NULL check after SDL_stack_alloc(). -96229eed8 Changed comment in test program to avoid confusion. -32147ba78 X11: Fixed memory leak when initializing multiple screens. -4abb73298 Fixed comment in filesystem test program. -5790f59f8 WinRT: minor tweak to NuGet package naming -3b79ab4c2 WinRT: allowed NuGet packaging code to get hg revision regardless of cwd -89898d834 WinRT: added NuGet-package creation support to WinRT build script -74de09ad4 Fixed compile error in timer test program if PRIu64 not available. -1e2a4439a Fixed compile warning in IME test program. -b2445f7bb Fixed filesystem test program to compile with older versions of C. -fd9f06a0c WinRT: noted Win10/UWP support in WhatsNew.txt (under 2.0.4) -0020aa94c WinRT: made WinRT build script create Win10/UWP .dll files -939495340 Add Logitech F510 Gamepad Direct input mode mapping -6a50d3338 Removed some debug prints. -9ddc6c344 Mac: Fixed SDL_SetWindowFullscreen not restoring the window's original size when exiting a Space. -25abce513 WinRT: added Win10/UWP (Universal Windows Platform) support -fa2d5ab49 WinRT: bug-fix - SDL_SetThreadPriority() didn't work on WinRT 8.x platforms -d07aa877d WinRT: minor code cleanup in window-creation code -a70fe9a53 WinRT: native windows are inherently resizable (in WinRT 8.x) -7bd640d5d WinRT: bug-fix, fullscreen mode wasn't getting reported in Windows 8.0 apps -36090f576 WinRT: bug-fix, OpenGLES2 was failing to init, after recent windowing fixes -f52099445 WinRT: bug-fix, fullscreen window flags weren't set if device was rotated 90 degrees -623898f70 WinRT: lots of display and windowing related fixes -a5a80cd03 WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC runtime -11d98995d Replaced tabs with spaces in test programs. -2e525193e Added SDL_HINT_VIDEO_X11_NET_WM_PING to WhatsNew.txt for 2.0.4. -5224dfcc9 X11: Let XRandR respect multiple screens (DISPLAY=:0.0 vs :0.1, etc). -11f2a9f8c Fixed bug 3168 - xinput build failure with dxsdk -dc804c0e1 WinRT: fixed build error in latest XInput code -f09d3750e Minor whitespace fix. -e6ad29aec Added SDL_JoystickFromInstanceID() and SDL_GameControllerFromInstanceID(). -998a54f9c Mac: Fix a warning about implicit declaration of SDL_SendKeymapChangedEvent (bug #3167.) -dee61c5a3 Added support for the Gamestop Logic3 Controller -2816d4477 Mac: Added SDL_GameController mappings for the Steelseries Stratus XL and Nimbus gamepads. -9c51c4a63 Mac: Detect the d-pad and pause buttons on Steelseries MFi gamepads (bug #3124.) -726783584 iOS: Fixed crashes when rotating the screen after destroying a window. -faee62894 Added Linux support for the Razer Sabertooth game controller -0da59802a iOS: Set the 'player index' of MFi game controllers when they're opened for use. -84f6bc41b iOS: Fixed MFi game controller triggers to report the proper range of values. -5103ae9fd one last SDL fix: restore menu bar if we destroy a fullscreen window without transitioning it back to a non-fullscreen window first -ebfb2ecb6 don't toggle SDL fullscreen state on OSX if we're destroying the window -eeddb7c53 more SDL fullscreen state tracking fixes, don't update fullscreen flags on failure to change fullscreen state -792354d6f SDL OSX implementation must account for the fact that going fullscreen can fail. improve the logic around retrying, make a few attempts before failing. -2d884656c add hacky support for failed fullscreen transitions. SDL doesn't have the concept of a fullscreen transition that failed. if the user is actively changing spaces while the app goes fullscreen, it fails to go fullscreen; now it will just try again instead of hanging around with the wrong window styles. -7ce64372c iOS MFi game controllers: inverted the thumbstick y axis values to match the behavior of other controllers. -cef224202 Added Linux binding for Wii-U Pro controller -38edc1779 Add SDL_HINT_VIDEO_X11_NET_WM_PING to allow disabling _NET_WM_PING protocol handling in CreateWindow if desired. -2b0140a91 Add a new SDL_KEYMAPCHANGED SDL event to abstract notification of keyboard layout or input language changes. -f8824cb99 Mac: Fix returning to the window's Space in OS X 10.11+ when SDL_WINDOW_FULLSCREEN_DESKTOP is used (bug #3152.) -4c72d39ce D3D11: Fixed SDL_RenderDrawPoints() ignoring input after the first 128 points. -2a4855f9e Android: Added missing import statement. -82603b605 Fix some Android keyboards that didn't work properly. -ceb43129a Added SDL_JoystickCurrentPowerLevel() to WhatsNew.txt for 2.0.4. -d80f45666 Fixed freeing uninitialized pointers on failure cleanup in tests. -5bc93cc5c Android: Added a new method in SDLSurface. -86711041f Android: Added new key codes without mapping. -5b1741132 Converted tabs to spaces for SDL style -9bd640e1a Fixed sending a size event while setting up a window (fix for DOTA 2 on Source 2) -c5e68d68e Mac: Reset display if going from fullscreen to a fullscreen Space or vice-versa. -7bc72eaf8 Fixed forcing the window size when creating a non-resizable window on Windows. -667783ba8 Fixed swapped Windows and Linux entries for the Cideko AK08b -a0c4b56ff SDL - added new SDL_JoystickCurrentPowerLevel() API that returns the battery level of the selected joystick. Currently only implemented for XInput devices, other platforms are a TODO. -c2f039483 Fix crash on controller hotplug on linux. -e015140af SDL - add dynapi entry points for SDL_JoystickCurrentPowerLevel -ed23a3f88 Added support for the Cideko AK08b -10daf1f4d Android: Removed three internal functions not used by SDL. -ab2a35003 iOS: show message boxes using the new UIAlertController APIs when supported, rather than the deprecated UIAlertView. -774b07751 iOS: Fixed pointer dereference after free. -7805c1bc5 Updated configure.in file. -2bf6f1bcb Added initial support for MFi game controllers on iOS. -d338f4651 Added copyright information on test/sample.wav; the mystery is solved! :) -cdfec382c Added more entries to WhatsNew.txt for 2.0.4. -efad04c31 Android: Added check if Java method for APK expansion file exists. -40364541f Android: Improved last error message for failed APK expansion file use. -625d39b16 Android: Added additional error messages for APK expansion file use. -6e7c479ec Android: Fixed trying to read from APK expansion files without version hint set. -92ca42d94 Android: Renamed SDLActivity's Java method used for APK expansion files. -5e5936822 Android: Added to APK expansion file hint documentation in header file. -68b3b5423 Android: Removed empty onDraw() override method from SDLActivity. -ecfdb10cf iOS SDL_GL_CreateContext: Clamp the multisample sample count when the requested value is too high, rather than failing to create the context. -a506f1cbc Windows: Try to use xinput9_1_0.dll if XInput 1.4 and 1.3 are not available. -76fc37883 Fixed the header guard in the darwin SDL_sysjoystick_c.h file. -08ce12c4e Fixed divide by zero if the application has run out of GDI handles and is trying to show an error dialog -4295a6fe4 Mac: Fixed off-by-one bug when plugging in a joystick (thanks, Konstantin!). -82c8825cb iOS: Added support for force-touch on capable devices. -6a32ca7a3 Mac: Fixed SDL_SetWindowSize to set the size of the content area of the window, rather than the total size including decorations. -c964ac91b Fix Bug 3114: SDL's MSVC-2010+ projects can fail to build via a custom VS .sln -e8757e873 Android: Changed return type of four JNI functions from int to jint. -a4a5483fa Android: Fixed unused variable warning. -2b6f64220 Android: Fixed missing break warning. -440d6cc00 Added another entry to WhatsNew.txt for 2.0.4. -42f282cc1 Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows. -d154e6c6e Fixed bug 3098: CMake project never enables xinput support on Windows. -212e99633 PSP: Replaced use of SDLKey with SDL_Keycode. -991feafa0 PSP: Fixed a syntax error. -83e94e257 Corrected documentation of the SDL_CreateTexture() functions in header file. -0856a7ef3 Changed an error return value from 0 to NULL for consistency. -2d63af8eb Updated SDL_egl.h to have the latest EGL version and extension information. -2fa039485 Corrected documentation of SDL_AddTimer() in header file. -98986f39e Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread(). -814576031 X11: Handle keyboard layout changing during app's run on Ubuntu 12.04 (etc). -0d8c3a0b7 Patched to compile. -0cf81fbdf Minor coding convention fix. -fb37956d9 Supply current group when translating X11 Keycodes to Keysyms. -9e2b90e2a Cocoa: Keep the window's screen position through SDL_SetWindowSize(). -f2f8e6f5e X11: only send mouse button up events if not a mousewheel "button" -874bf8650 X11: Simplified mousewheel event handling. -da6f2221e X11: isConfigureNotify() isn't used at the moment, comment it out. -8a1fd9826 X11: don't block on a ConfigureNotify event during SDL_SetWindowBordered(). -eb57d7524 Added missing SDL_Quit() in test program. -3362c9f19 Emscripten: Changed return -1 after SDL_SetError() to return SDL_SetError(). -c67213f33 X11: Fixed XRandR display detection. -344fbe61b testdisplayinfo.c forgot to SDL_Quit() at the end. -ca4680421 X11: Fixed a memory leak when adding duplicate display modes. -fcc594093 Emscripten: Added missing error messages for audio and joystick init failures. -2d8c49fdb Added more entries to WhatsNew.txt for 2.0.4. -a702c338f Add SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 to SDL so that Reborn can keep running through Alt+F4. -270f38db0 Fixed bug 3083 - Android JNIEXPORT and JNICALL missing -5a3cc7f58 EGL: Added support for sRGB system framebuffers, when the required EGL extension is present. -c57f409fe Mac: Fixed check for SDL_HINT_MAC_BACKGROUND_APP. -c509e798d Fixed documentation of SDL_DropEvent in header file. -d79bfa0d1 Added filesystem to list of paths in porting README. -682604b2f Android: Changed androidbuild.sh to use path from variable. -0aa2a6df2 SDL - fix hint check, we want or not and -e93f90ae9 Trivial integer truncation warning fixes. -628d8edb9 SDL - add a new SDL_HINT_MAC_BACKGROUND_APP hint, when set or set to 1 don't force the app to be foreground -5aaf81c84 Fix up monitor enumeration for Windows 8.1 case. -e09d95c36 Fix SDL_GetWindowPosition to be properly monitor-aware and return the monitor x,y when fullscreened. -6ebbf7ddd Turn on debug info generation for release configs. -b0e145b3e Move GetDisplayDPI to the end of the file. -dc2e9ba13 Fix build. -51c72e10f Add X11 implementation of SDL_GetDisplayDPI. -61c741507 Add SDL_GetDisplayDPI routine and implement for Windows. -f5cf86769 x11: Catch fatal X errors when calling glXMakeCurrent(). -c344b734f iOS: Avoid generating an OpenGL error (but still fail to create the context) if the specified MSAA sample count is unsupported. -6ea942dae Added MSAA support for OpenGL ES contexts on iOS. -b24586309 Fixed dynapi for new SDL_WarpMouseGlobal() function signature. -9d3d64374 Patched to compile on Raspberry Pi. -e346f1427 SDL_WarpMouseGlobal() should return non-void. -a955bec49 Fixed spaces in header file. -16e18817e Windows: Fixed wrong debugger output if logging empty string as info or warning. -cad94bd50 Fixed typo in test header file comment. -291990562 PSP: Fixed error handling in SDL_SemWaitTimeout(). -8bbded258 Fixed comment in test program. -27055ea0a X11: center parentless message boxes on the primary display if possible. -b7ecc6700 Added test/testdisplayinfo.c -0c19501ee x11: Patched to compile on systems without the Xutf8LookupString() function. -4679195db Fixed memory leak in test harness. -396b3b899 Better fix for bug 3048, don't crash if the window title is NULL -d0ba0c1d8 Fixed bug 3048, "Crashes in Cocoa_SetWindowTitle" -65a1a3e7e Cocoa: support drag-and-drop of multiple objects. -b5c43a88b Fixed style -35c4468f9 commit a7d7af2a419b453188ffe87386455fc26c1306fa Author: Benoit Pierre Date: Fri Jul 3 02:17:10 2015 +0200 -f9d8c59a6 Added missing file to the release archive. -26ecab901 Removed redundant variable check when processing gestures. -e8954d5d8 Hack to fix missing window decorations after toggling fullscreen mode in Mac OS X 10.10 -1e3c28ac6 X11: Added a test for a weird X11 error we get with Xinerama, rarely. -20ec13776 X11: Call XRefreshKeyboardMapping() when we get various MappingNotify events. -acdb494ff X11: Don't ignore keyboard mapping changes. -4986563d2 Fixed assertion failure in diskaudio target caused by new hotplugging support. -bf9bd59c0 Fixed bug 2464 - Configure a sdl2-config.cmake.in together with sdl2.pc.in -f1b7a8434 Fixed compiling if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM is not defined -c5857ab49 Mac OS X: Fixed typo in build script comment. -9b6f159c3 Emscripten: Corrected build instructions in documentation. -3a08b4633 Fixed bug 2834 - Patch to support dead keys on Windows -82eec4b63 Fixed whitespace in SDL_evdev.c -9f50d63dd Fixed an issue with mouse/keyboard removal -cbbdd27ad SDL - disable compiling in XAudio2 support. We both need the DX SDK to make this code plus we need to work out the runtime dependency problem this code bring in on windows (needing the DX runtime installed). -e4e4e1b82 SDL - do the scancode to keyboard code lookup for the grave key, so that we can show users the correct keyface for the key, rather than forcing it to "`". Note that if a game is using SDLK_* for its KB mapping then after this change on some keyboards the top left key will no longer be mapped correctly with the old data. -b7aa856c8 Fixed bug 3030 - SDL_RecreateWindow fails to restore title, icon, etc. -ded3a16e7 Fixed compiler warning about shadowed local variables. -437a6d9da Updated Mac OS X documentation for fatbuilt.sh -> gcc-fat.sh transition. -8cea1b986 Windows: Fixed crash if initialization of EGL failed but was tried again later. -72590685c Backed out changeset 4ad56dbf4a6f -0e45984fa Fixed crash if initialization of EGL failed but was tried again later. -7d5147bad resync'd overscan patch with SDL mainline. -5a578a078 Fixed return value of SDL_SaveBMP_RW() depending on set errors after NULL input. -db878a433 Linux: Removed not needed platform info from two entries of controller database. -3e1d36299 Fixed typo in internal joystick documentation comments. -e6b7b38c6 Emscripten: Simplified implementation of joystick update function. -86fb92a7d Emscripten: Fixed memory leak if SDL_GetPrefPath() failed. -e97fc5620 Android: Fixed lint warning about order of elements in AndroidManifest.xml. -0fbd3372d WinRT: Fixed format string for error message. -3a0270593 Patched to compile on C89 compilers. -c539b3f9e Make X11 and Wayland ProcessHitTest() code less verbose. -d10201be0 Implemented SetWindowHitTest() for Wayland (thanks, x414e54!). -c6538cb97 Merged. -a27fad1e2 Fixed orientation issues in the iOS extended launch screen. -cf6b9752f Ignore some more test binaries. -26b4898ac Windows: Fixed format string for error message. -56c82bc82 Mac: Fixed typo in two error messages. -1a73b4eba Some Raspberry Pi build fixes (including Raspberry Pi 2 support). -fe6c797ca Fixed an iOS view orientation issue when SDL_GL_CreateContext or SDL_CreateRenderer is called. -6ae7a2064 Placate static analysis with an assertion. -2afa4aeda Fixed memory leak in failure case that static analysis found. -7bd722199 PSP: Removed empty statement. -ce2d5f70e Wayland: Removed empty statement. -562414c74 Merged Alex Szpakowski's iOS-improvement branch to default. -c4035654a Added framebuffer and colorbuffer members to the uikit portion of the SDL_SysWMinfo struct, removed SDL_iOSGetViewRenderbuffer and SDL_iOSGetViewFramebuffer. -67549d332 Backed out changeset 064a1998a957 -f87963488 Wayland: Fixed not freeing memory if initialization failed. -dc33fb942 Wayland: Fixed accessing not fully initialized subsystem if errors happened. -8a573844c Wayland: Fixed accessing not fully initialized window if no memory available. -049ef9a35 Android: Fixed calling a getter method twice. -458b94da5 Android: Fixed creating mouse coordinates which are not needed if hint is set. -b473d30f1 Android: Fixed not resetting mouse pointer state if hint was changed at runtime. -fcd0f06a8 Renamed SDL_iPhoneGetViewFramebuffer/Renderbuffer to SDL_iOSGetViewFramebuffer/Renderbuffer. Added #defines for SDL_iOSSetAnimationCallback and SDL_iOSSetEventPump, which point to SDL_iPhoneSetAnimationCallback and SDL_iPhoneSetEventPump. -1152a7595 Generated dynapi prototypes for the new iPhone functions. -26c28114e Merged default into iOS-improvements -a210dbcb1 Removed unused variable. -53287ad51 X11: Removed code to set "icon" title, since it was never used. -78026f549 Patched to compile on Windows. -e0ad1021a Wayland: Patched to compile. -785618afe DirectInput: ignore everything but joysticks and gamepads (thanks, Justin!). -6e53bc9b1 SDL_SetWindowTitle() should never set a NULL pointer for the title string. -1339ce71f Make SDL_stdinc.h work when compiling with -Wundef (thanks, Ben!). -88e85f4dd Patched to compile on C89 compilers. -8da7e8adc Log Android hardware at startup (thanks, rettichschnidi!). -6a126a48d Do the "fix" for asserts with MSVC's /W4 warnings only on MSVC. -9a686aaa5 Wayland: changed a few "SetError(); return -1;" to "return SetError()". -df98b11c4 Merged default into iOS-improvements -f3590aba1 X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB. -83aeb31d1 This function can be static. -2f3f32871 Make loading/saving dollar gesture templates endian clean (thanks, Martin!). -05a9206a4 Add some SDL_SetError() calls to the dollar gesture code (thanks, Martin!). -0713c1e53 Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!) -3e4a8ce1c Fixed detecting the NVIDIA controller which shows up as both a mouse and a game controller -41961e4f3 Cast the result of calling getButtonState to an Integer -c5d9d1646 Added a game controller entry for the NVIDIA Controller -c7ec9c1d8 handle the case where the ibus address can't be found. (prevents nasty crash) -64237d7f0 Patched to compile on Android (I hope). -f9041771d Android: more separate-mouse-and-touch work. -236deab49 Fixed relative mouse motion moving farther and farther off screen. -b620df3ea Wayland: Specify the output we want to put our window on. -a0e878aaf Minor input grab clarifications. -739906285 Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12 -e7a659ebc Removed not needed call to SDL_free(). -37672303d Android: Removed outdated comment from source. -03f5185ef Make the Dynamic API master switch more clear. -1270247cc Add a hint watch callback for SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH. -83a44680c Removed unnecessary SDL_log.h include. -ca7b18e43 * More Android patch work -387fa5dcf * Improve mouse support in Android. These changes require Android API v12 to compile -87ef19c44 Keep track of maximum number of events in-flight in the SDL queue at once. -3f9f0027b Patched to compile on C89 compilers. -672ccb4f5 Make the signal handler hint more generic. -a91a5604c Added a hint to prevent SDL from installing signal handlers. -162ef5eae Cleanups in the joystick code. -4a071b311 Mac: patched to compile with haptic subsystem disabled (thanks, Rodrigo!). -9470f4a2b Better fixes for CMake subsystem enabling (thanks, Sebastian!). -d9f378530 Make SDL error string formatting deal with nasty corner cases. -54f4725a1 Ran hardcoded game controller database through sort_controllers.py. -a300a7350 Added Logitect RumblePad 2 controller mapping for Linux (thanks, Nicholas!). -878c2324b winmm: Let audio callback buffer size be less than 1/4 second (thanks, Jon!). -ac2bb3f20 configure script: fix recursive mutex test on Linux systems (thanks, Ozkan!). -c76130c9c X11: Reenabled setlocale() and fork() for message boxes. -331a434fa Windows: Report window HDC in SDL_SysWMinfo. -528e48b98 Android: Removed not needed include statement. -8a58e12f5 Updated test program for Emscripten. -b42c25975 Cocoa: Handle more cases of lost focus when Key window closes (thanks, Alex!). -49f33b41a Added missing SDL_DOLLARRECORD event type documentation in header. -716ef0d5f Fixed confusing audio and touch events because of shared enumeration values. -eb49f8caa Patched to compile on OpenGL ES-based platforms. -161e5d150 Whoops, lost a newline in here. -3c76d2ff1 Several corrections to the CMake project files (thanks, Ozkan!). -34415c455 Windows: support for OpenGL extension WGL_ARB_context_flush_control. -89be609ad Wayland: Properly discover displays and their modes. -e7ba78a35 CMake: Dependency variable for FUSIONSOUND_SHARED was wrong (thanks, Kaleb!). -5b6e064ac CMake: fix CHECK_OBJC_SOURCE_COMPILES to work with GCC (thanks, Ivan!). -684f9e960 Fixed typo in gesture README. -3e9c2e751 Another attempt to make MSVC's /W4 warning level cooperate with SDL_assert. -a4458a700 Fix DBus error message if IBus couldn't be initialized. -801155745 Refuse to make a window that's too large. Some systems (x11) freak out at this. -f5d96416a Allow setting of GL_CONTEXT_RELEASE_BEHAVIOR when creating the GL context when GLX_ARB_context_flush_control is available. -70191a930 CMake: Don't search for the OpenGL library on Mac OS X. It's always there. -182a7768e Audio hotplug fixes for winmm and XAudio2 backends. -c1091f32f CMake project files no longer force you to link against Wayland or Mir libs. -d8988ea84 Fixed some defaults in CMake project file. -6c072917e Patched to compile on gcc2. -06e85acd7 Removed unused variable. -b24ff4469 Make static analysis happy. -277e07e70 Fixed a compiler warning on Visual Studio. -1877f5745 Patched to compile on Windows. -e9a7a81f2 Immediately minimize the goofy window in testaudiohotplug. -537b68b9f Zero out the audio hotplug event structure, so the "padded" fields are sane. -cafd030ba PulseAudio: Hotplug support! -11cffe1dc SDL_RemoveAudioDevice() should specify capture vs output. -1e78ef215 Removed the broken audio streaming code, other small cleanups. -5cbb32ef5 Disconnected/broken/lost audio devices now continue to fire their callback. -75973f81b Don't assert if an audio backend reports the same device disconnected twice. -7c4b88f2d PulseAudio: Improved multidevice support. -f9cfd9fa1 Bunch of reworking to how we manage audio devices. -0e02ce085 Initial work on audio device hotplug support. -338bf5d29 Changed some SDL_memset() calls to SDL_zero(). -97ff10c63 Tweaked a couple comments, added some FIXMEs. -1110f5361 WinRT: updated names, and references-to, various ANGLE/WinRT repositories -43674503e Patched to compile on C89 compilers. -9a83151e9 PulseAudio: Added multiple device support, other cleanups. -73feb8c04 Fixed a compiler warning. -522fd8290 WinRT: made OpenGL window-init work with latest round of ANGLE/WinRT updates -b12ea7599 WinRT: another ANGLE/OpenGL-initialization, error messaging tweak -1083ae22e WinRT: ANGLE/OpenGLES-initialization, error message improvements -5b7ddd534 Updated name of assert type in test program. -809b7be27 Cleaning out a silly coding style I used to use. -3a5325881 Removed an unnecessary #ifdef. -da843f6a8 Updated internal documentation comments. -060d243f6 Windows: Fixed ignoring return value of internal function. -8f4c2a8f9 Emscripten: Fixed ignoring return value of internal function. -1686af726 Emscripten: Partially fixed not removing key event callbacks if hint was used. -483ea8b7b Fixed SDL_PRI?64 for 64-bit Linux. -d34d608e5 SDL - fix crash on OSX when removing a device. If the remove happened due to the CFRunLoopRunInMode call in SDL_SYS_JoystickDetect then we would delete the device right away, before SDL_SYS_JoystickUpdate could clean it up. So move the CFRunLoopRunInMode to after the cleanup logic, preventing this case. This does mean that adds and removes of joysticks now take 1 extra frame to show up. -d6c429665 Fixed bug 2868 - SDL_FillRect can crash if surface's clip-rect is out-of-bounds -8321efba3 Emscripten: Fixed out of range joystick device index after joystick disconnect. -5c43207fa Emscripten: Fixed sending button and motion events for not opened joysticks. -e4be934f5 Fixed naming conventions in some SDL_assert types, added compat #defines. -201868156 Mac OS X: Better way to stop duplicate joystick reports (thanks, Kyungdahm!). -33b9d9ad7 Windows: Added a FIXME. -674eb5563 Windows: Free the argv we allocated for console_wmain(). -e974ccf82 Windows: Added a FIXME. -f7c4c3d01 Windows: Make a distinction between ANSI mainline and UTF-8 mainline. -e93ee5d7b Windows: Support unicode arguments for console applications (thanks, Jorgen!). -1b2cb70ca Mac OS X: replace some deprecated APIs with modern equivalents (thanks, Alex!). -635a369c9 SDL_SetWindowPosition respects display num for SDL_WINDOWPOS_CENTERED_DISPLAY. -b88ca1b4a the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here. -66867e654 Merged default into iOS-improvements -3e17fbee7 Fixed the extended launch screen causing minor visual issues when rotating the screen in some circumstances. -a26a4e9ee Fixed bug 2816 - [patch] Android: Expose screen refresh rate -f15d13d6e CMake: Removed unused variable (thanks, Felix!). -c4275f95c Fixed bug 2807 - Not using CoreAudio on OS X when built via CMake -2b53ffc77 Fixed wrong documentation in joystick implementation source. -4b3f0d6dd Fixed two warnings about initialized but unused local variables in tests. -ea5d1a8a3 Merged default into iOS-improvements -01bfc2158 Several improvements to the iOS backend: -775a5aa55 Added and fixed doxygen markup in header file. -aefcd86de Fix build on Linux when wayland is enabled -b7f6da062 Some corrections to the SDL2.spec.in (thanks, Simone!). -a30975596 Remove unnecessary parentheses and an unnecessary free() of a NULL pointer. -80ba85474 Corrected documentation about triggers values in SDL_GameControllerGetAxis(). -8751b956f We maintain the list of platforms on the wiki now. -6dda14c0d Emscripten: Fixed receiving joystick events after failed init or subsystem quit. -f9adb453d Removed redundant include statements from test programs. -f75d6c091 X11: Don't create a window and GL context to look up the glX extension string. -f0c061d14 glX HasExtension(): check for NULL ext string first. -052720f7d Emscripten: Removed unused internal function. -bd2d01464 Emscripten: Changed return type of callback implementations from int to EM_BOOL. -8a700d4db WinRT: a minor, nit-picky cleanup of some OpenGL code -5ad34f7a7 WinRT: improved OpenGL ES compatibility on WinPhone/ARM and Surface RT -ec2df6490 Fixed crash if using clipboard functions without having initialized video. -cec3efe62 Fixed compile warning about unused variable in wave test program. -df3299627 WinRT: fixed crash when using up-to-date versions of ANGLE/WinRT -2ef8b1a76 Emscripten: Fixed sending SDL_JOYDEVICEADDED events with an index out of range. -394184883 Emscripten: Deactivated and corrected debug log messages on joystick events. -6abd242b9 Emscripten: Fixed throwing JavaScript exception if no audio context available. -c5179c6ac Emscripten: Fixed not including SDL_internal.h. -697c5c575 Emscripten: Fixed framebuffer error message. -2bb73d170 Emscripten: Fixed SDL_GetPlatform() returning "Unknown" instead of "Emscripten". -d1932834e Fixed test programs for joystick not exiting on events after first disconnect. -7fd15e7e2 X11: Set dialog hint on message boxes (thanks, Melker!). -39c41bb95 Fixed bug 2873 - Joystick test won't reload after reattach -bd61c276f Fixed compiling test with older C. -e3f9bf337 Fixed two inconsistencies on failed allocation. -78f3a80cf WinRT: made note that VSync is always enabled on WinPhone, due to OS -fe586d077 Fixed three memory leaks on failed allocation. -c17a5b117 Fixed bug 2866 - testrelative.c: patch to make the orange box wrap around -60329e6a1 Added missing guards. -56edbb406 X11: Add events related to maximizing a window (thanks, Andrei and Gergely!). -ece8d2bb0 X11: Fixes for OpenGL 3.0 and later context creation. -86f87bf75 Added missing guards in implementation for PSP. -d036ad84a Added missing include statements in implementation for PSP. -43500a78b Fixed comment in implementation for NaCl. -f4b7cf6e8 Fixed including SDL_config.h in implementation for Android. -7384f147f Fixed names in implementation for PSP. -7815393b2 Fixed wrong comment in implementation for Android. -0781b5f9e Fix typos in header file documentation comments. -f1a56cd56 Changed static variable to local variable in implementation for Android. -a72580666 Fixed game controller hotplug support for some embedded Linux devices When guessing the device class, it ends up being 0 for devices that have been removed (because the device node no longer exists) -0874eb971 Add binding layout for Xbone pad. -203ea9817 X11: Don't delay delivery of focus events unless we just changed vidmodes. -34a5c70cf Fixed recently broken configure script for FreeBSD. -f64e6742b Fixed memory leak in video quit implementation for Android. -60f50c70a Updated a README. -b48e54aaf Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation -86c5c3f21 Replaced include of SDL_types.h with SDL_stdinc.h in internal header file. -a823982e0 Clang static analysis builds should use C runtime directly. -2a1e42237 Dynamic API: don't leak if a library loaded but didn't have the entry point. -f5fa9a59d Removed unused enumeration and constant from internal header file. -3cfe0abe7 Fixed copyright date. -69f18b626 Linked README-emscripten.md in README.md and added markdown formatting. -3e8040f30 Renamed README-emscripten.txt to README-emscripten.md. -16f3cbfc0 Cleaned up some compiler warnings. -f5bbbe417 GLES2: Only use VBOs for Emscripten (for now). -d8c60342c Added three missing checks for return values of SDL_calloc(). -bbaaa7775 WinRT: hiding SDL_WinRTRunApp's XAML functionality, until it's ready for use -31832d2a5 Removed missing test program from Makefile. -f4dcc2469 Changed Emscripten entry in gamecontroller database to allow sorting by script. -22855927c Removed unnecessary call to SDL_free(). -2cde19c63 Fixed typos in a README. -80d19b7ee Fixed typo in header file documentation comment. -79b3221b0 Fixed compile warnings about unused variables. -97e876671 Fixed compile errors in example programs. -e8467cbca Maybe actually patched to compile this time? -629c13fbf Actually fix Unix scripts this time. :) -9c38244f5 Really patched to compile this time? -9f111ce4b Patched to compile. -208636828 I don't know if Unix scripts are useful at all on Emscripten, but fix them up. -fc4051674 A little more work on the Emscripten buildbot script. -f4bd828af Added buildbot script for Emscripten port. -eab2433f6 Maybe patched to compile on Windows for real now? -b0ebfabf3 Patched to compile on Windows. -707c11f64 Patched to compile on non-Emscripten targets. -a6df21cd0 Partial fix for bug 2726 - Win32 'mouse' events not applying 'SDL_TOUCH_MOUSEID' -719bb6fce Fixed X11 build, added code to print initial modifiers to checkkeys -0694baf26 Fixed bug 2736 - X11 doesn't set KMOD_NUM and KMOD_CAPS to system state -779d40356 Fixed Windows build -0669a224f Fixed bug 2860 - SetProp must be paired with RemoveProp especially for properties added to external windows -84ce00067 I think this will be the time... -7964f3adb Still trying to get this to compile... -cae4fd7fb More patching to compile... -e90f87bab Another attempt to get this to compile. -4add16943 Patched to compile on MingW. -58447b24c Move tests from SDL_config higher up in Windows joystick/haptic code. -2a7578255 X11: Add Xdbe support to message boxes (thanks, Melker!). -bea1854ca Patched to compile on C89 compilers. -9c343681c Wayland: Avoid NULL dereference after window destruction (thanks, "x414e54"!). -7f17e0ab9 Fixed detecting PS4 wired controller on Windows -80cfccbf8 Back out changeset b80349dd6d40. -c69a55923 X11: generate clipboard update events (thanks, "chw"!). -059a03071 Uh, yeah, it helps to press "Save" before committing... -cc493d719 X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!). -baea64e64 Stack hint should look for 0, not -1, and not care about environment variables. -a8fa7bd1f Added a hint to specify new thread stack size (thanks, Gabriel!). -bcdc63a38 Properly report DX headers in the CMake project files (thanks, "MailMr_S"!). -dae40bff0 [IBus] Only register interest in messages sent to our input context. -42d9cf697 [ibus] Send an empty TextEditing event when the text is cleared by pressing backspace. -21d0cdedb Added some unknown keys from Japanese 106/109 keyboards (thanks, "ver0hiro"!). -262e8ef3f Mac: Send a window resize event when the window's backing scale factor changes. -be89fa09e Reset the keyboard state when launching a message box (thanks, Sean!). -41908548b Windows: Alt-F4 hotkey should be checked on keydown, not keyup (thanks, Matt!). -72a244da4 Android: Added basic drop file support (thanks, "noxalus"!). -ae6555dff Pump IBus events after X events. -46f758aeb Fix a libtool issue with some mingw-w64 cross compilers (thanks, Ozkan!). -a4f0daeda EGL: OpenGL ES 3.0 contexts can now be created without the EGL_KHR_create_context extension. -d5a578531 Drop out of SDL_UpdateTexture() early if the rectangle is zero pixels. -2e2b84fb3 Some setups need _GNU_SOURCE to make LLONG_MAX available (thanks, Ozkan!). -a21672c89 Fix fallback define for DECLSPEC for non-Windows platforms. -59f69f631 Whoops, fix the static analysis fix. -d1980b93f Mac: Fix compiler warning when building with a min target >= 10.6. -37f4eb537 Darwin haptic: Fixed a static analysis warning if axes==0. -f99d6e1df Linux joystick: Look at entire axis namespace for controls (thanks, "spaz16"!). -523064592 Fixed bug 2869 - Controllers connected on launch are reported twice. -80916e01f Cocoa: Fixed relative mouse mode when app loses/regains focus (thanks, Eric!). -d074a532e Make dot easier to see in testrelative. -a2c28ec18 Updated configure script. -903d0f730 Removed -XCCLinker from MingW command line (thanks, Fredrik!). -b11b3493b Windows: don't beep on Alt-* key combos (Thanks, historic_bruno!). -bb437f023 Cocoa: report SDL_WINDOWEVENT_EXPOSED events to the app (thanks, David!). -22704ac2d Cocoa: don't fail outright if we see an unknown display format. -aba4d7838 Don't look for (and fail without) glGetIntegerv() until we need to. -13487426d Fixed bug 1392 - Debian patch: do not propagate -lpthread -2c4a6ea0a Updated the copyright year to 2015 -c133c8c8a Script from Sylvain to automate updating the copyright year -d88b6738f Fixed bug 2989 - Memory loss in clipboard_testClipboardTextFunctions -507157abd Wait for devices to finish initializing when inserted, before using them. Fixes hotplug issue with XBox 360 game controller. -b0c5e201f Added support for Razer Serval Bluetooth mode -afc97cbd5 Fix duplicate raw mouse events with XInput2 -447194987 Sign any subframeworks - not needed for SDL proper, but included for consistency with other projects -1968ff047 Android: Fixed touch pressure being out of range. -4f00dda95 Removed redundant NULL check in test program. -b00214c3d Changed clean-up order in test program. -39d27a638 Fixed undefined key access in test program. -636538142 Added game controller support for the Razer Serval -2c4ad51d4 Added missing loop cancel for Emscripten in test programs. -ac10a2f29 Fixed compiling test program with Emscripten. -1ed86d221 Fixed handling only one event per frame in test program. -fcee3e734 Code style cleanup in the GLES and GLES2 render backends. -240a3fbff iOS: Added support for SDL_DisableScreenSaver and SDL_EnableScreenSaver. -f7ac02010 Android: Replaced logging tag strings with constant. -a54d038b6 Emscripten: Fixed wrong source comment and updated web link. -d57b97351 Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code. -1c6ea0f22 Added a userdata parameter to SDL_SetWindowsMessageHook() -b2be9253e Fixed Mac and Linux builds -7de242e72 Added SDL_SetWindowsMessageHook() to facilitate full IME support on Windows -094c4a160 Added generic xinput fallback for XBox compatible controllers on Linux -f1a7c00d0 Refactored SDL_EGL_CreateContext: It now supports context flags and OpenGL ES 3+ contexts, and its behavior more closely matches the GLX and WGL context creation code. Improved the code style consistency of SDL_egl.c. -5919a859b Android: Fixed empty parameter list in signatures of internal functions. -6e4e9ceb4 Fixed SDL_TouchFingerEvent documentation in header file. -8f4bcc727 Android: Replaced spaces with tab in Android.mk file. -3f51758ec Emscripten: Fixed touch coordinates not being normalized. -5715097a0 Fixed implicit function declaration in test program. -ac27b511b Fixed SDL_GL_GetAttribute queries for framebuffer component sizes in Core Profile OpenGL contexts. -c4fe8c80c Fixed building the iOS Demo files in debug mode -4fc402666 Replaced all remaining uses of NSAutoreleasePool with @autoreleasepool blocks (bugzilla #2680.) -6c20b6825 Fixed a warning when SDL_syswm.h is included in code compiled for iOS with clang. -d1372bb92 Fixed the window offset on iOS when resuming an app with a borderless or fullscreen window that has the on-screen keyboard visible. -d603bb30e Fixed a crash on iOS when none of the orientations in Info.plist match the SDL window's actual orientation. -74d83ead3 Fixed bug 2976 - Fix RGBA<->RGBA blit that was broken with the optimization from Bug 11 -589c46dd6 X11: send keypress events before textinput events. -0045e2e62 checkkeys: report SDL_TEXTEDITING events. -423262789 checkkeys: Readded the KEYUP event test. -9979bab20 Android: Deactivated debug log messages on joystick device events. -d9d1a1b98 X11: Use our own cut-buffer for intermediate clipboard storage. -93bd476de Moved code signature step to after the framework build step is complete, and don't hardcode the codesign identity -931f6e4ee Turn off code signing by default Code signature can be added after build with the following command line: codesign --force --sign 76BB5ACAC44CA5EFA5F879434D157B81DA842CFB SDL2.framework/Versions/A -43692a002 Updated project and added code signing for release builds -5c09bf73b Only check for Linux-specific input APIs on Linux targets (thanks, Marcus!). -e5f9c347e Remove trailing spaces in Android source code. -77ccc412f CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars. -fe40a1722 Initial merge of Emscripten port! -a228b67d8 CMake: Replace "else(condition)" with "else()", etc. -708a43f50 Treat any key device as a keyboard This matches commit d325f1bbbab4 for when udev is not running -b9707732e Removed unused includes and functions from test program. -269c2476b Replaced sqrt() with SDL_sqrt() in test program. -701c97074 Removed global variable from test program. -e2a5c1d20 Removed extern declaration of not existing SDL_numhaptics from internal header. -0f87761bf Removed dependency to stdbool.h in implementation file for Android. -d99911544 Fixed setting text to clipboard in controllermap program. -45fa5642e Added comments in example program. -fbbd59323 Fixed bug 2811 - [patch] Android core: Fix JNI 'nativeGetHint' symbol not being exported -a830fbc70 Fixed warnings about possible loss of data in conversion. -4f26e7760 Replaced free() with SDL_free() because related allocation also uses wrapper. -8dc56f2b3 Corrected header file guard comment. -ec6b9b27a Fixed some paths in the new buildbot windows zipper script. -5789cb4a3 Added a script to handle packing up Windows builds for the buildbot. -623b9d6d9 ugh.. stray character -06d357fb1 fix SDL_PRIs64 on windows compilers.. (should end in d) -73daadb74 switch to use SDL_PRI* macros for long long formatting everywhere. -7810d1981 fix incorrect struct member name in test code for wheel direction -313881175 Adds support to control the scaling policy/mode of SDL_RenderSetLogicalSize for both letterbox (current behavior) and a new overscan mode (expand to fill the entire screen, even if some parts draw off the screen). -5fee84f24 WinRT: removed SDL_HINT_WINRT_PREF_PATH_ROOT (introduced post-2.0.3 & pre-2.0.4) -cc0631a09 Merged default into iOS-improvements -ba6392d79 Fixed SDL_GetRendererOutputSize on iOS when high-DPI mode is enabled on a Retina device. -52760dcdf Fix assert format strings/parameters in testautomation modules; improve output of SDL_CompareSurfaces to aid debugging; update platform_testSetErrorInvalidInput for SDL changes -0d38073a5 Removed generated doxygen output of visual test suite. -f86af130f Fixed bug 2795 - SDL library detection selects the wrong lib -265b219e3 Fixed bug 2766 - Haptic coding bugs and fixes for Linux FF: periodic.phase handled as time instead of angle; + direction clarification -a5ce9c111 Fixed bug 2766 - Haptic coding bugs and fixes for Linux FF: periodic.phase handled as time instead of angle; + direction clarification -ef8c3d89c Fixed bug 2766 - Haptic coding bugs and fixes for Linux FF: periodic.phase handled as time instead of angle; + direction clarification -48481c8e5 Improved the pitch variable description -ce64b4ad3 WinRT: bug and data-integrity fixes for SDL_GetPrefPath() -4dab32a2b Fixed bug 2786 - "UCS-2-INTERNAL" iconv encoding is not supported everywhere, use UTF-16LE instead -767bb3636 Fixed bug 2676 - xdnd_version check issue in case ClientMessage -7ed41da0b Fixed bug 2411 - Even if built with --enable-clock_gettime, SDL2 still calls gettimeofday() -bc4b6f061 Minor Objective-C code tweaks. -6df55c660 Removed an ugly hack to make windows rotate properly on iOS 8+. Recent commits apparently resolved the issue that made the hack necessary. -9b8a1768f Cleaned up the iOS text input code, fixed the orientation of the view offset when the onscreen keyboard is shown in iOS 8+, and changed UIKit_SetTextInputRect to update the view offset if the keyboard is currently visible. -bd4dd2b56 update logging of events in test core -5b5823eeb add in support for passing down the "natural" (or flipped) scrolling direction in the MouseWheelEvent event -70438be27 WinRT: fixed bug whereby SDL would override an app's default orientation -6d85f5222 The iOS OpenGL ES context's color Renderbuffer Object is no longer completely destroyed and recreated in layoutSubviews. Its storage is now only reallocated when the actual size of the layer changes. The framebuffer object and renderbuffer object binding states are no longer clobbered by the storage reallocation code in layoutSubviews. -38c6e9d13 Added debug labels for the OpenGL ES objects created with SDL_GL_CreateContext on iOS. More misc. code cleanup. -feb2ab1e8 Minor objective-c code style improvements -650ace88c Fixed mismatching orientations for the window width and height on iOS when the window is created or the app is brought to the foreground, when SDL_HINT_ORIENTATIONS or SDL_WINDOW_FULLSCREEN is used. -0b02de757 Merged default into iOS-improvements -e695ec907 WinRT: updated README-winrt.md to detail Visual Studio 2013 Community support -646025b6c WinRT: made SDL_GetPlatform() return "WinRT" and not 'Unknown' -e6cca5e92 WinRT: build fix for Visual C++ 2013 Update 4 -8366bbdd7 Fixed gcc-fat.sh failing to build Objective-C sources correctly. -49c9b48ed WinRT: fixed multi-touch bug whereby 2nd, 3rd, etc. fingers weren't moving -743ba2f49 Added missing brackets in test source assert messages. -e11969a72 Fixed two typos in test source. -b561f2031 WinRT: removed '-' from build script file names -f055ea70f WinRT: added scripts to build Release copies of SDL for all WinRT variants -ef559ddb4 iOS: Added support for iOS 8 LaunchScreen NIBs. -ecc014740 WinRT: added SDL_HINT_WINRT_PREF_PATH_ROOT -506a1efc2 WinRT: removed a completed TODO item from an inline comment -6a5b3bb42 WinRT: added initial SDL_TEXTINPUT support -5bdc9913a Corrected header file guard comments. -8cab5ae30 Fixed limitation for number of custom main() arguments on Android. -94539137a Mac: Add drag & drop support. -084642d3f Cocoa: add in handling of "lost" touches on OS X. [bug #2635] -8c9341b92 add "i" shortcut to testgesture tool to log # of fingers down on the touch devices. -d7cc6fabe add controllermap program to SDLTest xcode project -43e5c9ee0 Fixed doxygen tags in header file documentation comments. -c0165972c Fixed typos in header file documentation comments. -097ad5500 Fixed local reference leaks in messagebox implementation for Android. -c121ff7f9 Added name for second Java Thread on Android. -d9a42c76b WinRT: fixed an invalid comment in SDL_GetPrefPath() (for WinRT) -13c511697 WinRT: allowed 'roaming' and 'temp' folder paths to be retrieved on WinPhone 8.1 -a690944e4 Fixed typo in header file documentation comment. -5575948b3 Fixed bug 2726 - WinRT touches not setting 'which' field in virtual mouse events -9c398852e Corrected header file documentation comment. -167b3bb4c WinRT: updated docs to include details of recently-expanded GLES2 support -577ef5e0b WinRT: fixed crash when trying, and failing, to load the opengles2 renderer -bbe1df0d5 WinRT: enabled OpenGL ES 2 support on Windows Phone -18ecc34df WinRT: updated an OpenGL-related code-comment -0bcc254e4 WinRT: expanded OpenGL ES 2 support to enable recent updates to ANGLE/WinRT -1c85ba23d WinRT: moved documentation + setup related TODO items out of README-winrt.md -796f7bbf0 WinRT: made README-winrt.md slightly easier to read in an 80-column text editor -438a55a49 WinRT: added details of the port's status, to README-winrt.md -43ad9670e Patched to compile on pre-C99 compilers. -3a916c6d7 X11: Fixed SDL_GetGlobalMouseState() to work better with multimonitor configs. -37720dd5f Fixed gamecontroller database sorting script not sorting the whole database. -0c60f023f Removed unnecessary NULL check. -2bdc5c9d7 Updated gamecontroller database sorting script to work with Python 3. -032b14e7b Fixed SDL_AddHintCallback() crashing if no more memory available. -2a46a9df2 Fixed bug 2647 - Memory leak in SDL_AddHintCallback function - SDL_hints.c -fb6d185a8 Merged default into iOS-improvements -28fe9f0cf Switched to the core versions of OpenGL ES framebuffer object and renderbuffer functions. -f2bd99da6 WinRT: detailed steps, via the WinRT README, to fix a common build error -3d2ca92e6 Fixed two typos in header file comment. -7268eabb9 Added handling of NULL as input for SDL_GameControllerAddMapping(). -33a2b58ca Fixed SDL_GameControllerMappingForGUID() crashing if no more memory available. -30d6cec1b Added handling of NULL as input for SDL_GameControllerMapping(). -90387dafb Removed two wrong documentation comments from gamecontroller source. -0a053ed66 Fixed wording in SDL_GameControllerAddMappingsFromRW() error message. -01f3498c3 WinRT: more keyboard code cleanups - made keycode listings a bit easier to read - listed VK_ keycode names, where appropriate - removed a few pieces of dead + commented-out code - applied a common 'WINRT_' prefix to internal function names -e057c7dd1 WinRT: Fixed bug whereby key-detection code could call SDL_Log -ed2fff6be WinRT: fallback to scancode key detection, if VirtualKey/VK detection fails -20b19aac8 WinRT: more keyboard code cleanups - use SDL_arraysize where appropriate - made long lines of debug-logging code span multiple lines, for easier reading -a1bac50d1 WinRT: Fixed bug whereby a right-shift key might get reported as left-shift -e9c79620d WinRT: minor keyboard code cleanup -d5d3721b4 Added new key codes from Android 4.4 (API 20) and 5.0 (API 21). -a1dcebb20 Remove unused variable. -04dbc4920 Merge patch for bug 2750. Thanks Sylvain! -1745116fe Fixed bug 2759 - Android findLibrary() returns NULL -d89620a80 Removed the codepath that gets compiled if IPHONE_TOUCH_EFFICIENT_DANGEROUS is not defined. -a0481bb10 Completely removed custom splash screen code. iOS 8 introduced yet another official way to do launch images (via a Storyboard), and the custom splash screen code was broken on newer devices and caused bugs for all devices anyway. -bc382e390 Added an option to define libraries to be loaded on Android in a derived class. -775a80262 Fixed alert dialog for not loaded libraries on Android being cancelable. -425a06a9e Fixed missing @Override annotation warning in source for Android. -4a67627e8 Fixed upper case button in alert dialog for not loaded libraries on Android. -d4bdd2469 Fixed typo in message of alert dialog for not loaded libraries on Android. -391c31cf0 Fixed writing new errors to standard output instead of error output on Android. -85bed0956 Fixed documentation in source for Android. -34a85f4de [Android] #2759: Show a message on failure to load a .so library (by Sylvain) -96fd9cefc Clarify (lack of) support for desktop OpenGL on the Raspberry Pi -5f193f0c6 Fixed setting of screen saver state crashing on some version of Android. -79035b393 Bug 2739 - [Android] No support for SDL_DisableScreenSaver by Martin Gerhardy -ec4dfdfc5 Fixed bug 2476 - Allow custom main() arguments -7cabaebed Fixed typo in source comment. -0302bb771 Fixed syntax error in cmake file. -38f94e21c Added a platform cleanup function for the Vivante video driver -5df970a69 [udev] Fixes #2654, ID_INPUT_KEY devices are ignored. -29eb6e9b3 [X11] Obey DISPLAY environment variable when selecting screen (Steaphan Greene) -1b341f587 WinRT build fix -839be3046 Updated configure based on recent configure.in changes -251ca855f Expanded the iMX6 video driver into a general Vivante video driver that works across multiple SoCs -f7abb7c4e Better error reporting for video drivers with less than full functionality. -3b70f65dc Fixed bug where EGL function pointers wouldn't get saved in optimized gcc builds -348cf3ee2 Fixed spurious SDL error on shutdown if mouse capture isn't supported -89127c2d7 Fixed input device detection on systems that aren't running the udev daemon -639b39c46 Fixed crash if the event subsystem didn't initialize properly -20a6c623c WinRT: fixed bug whereby offscreen-rendered content could get improperly rotated -72f703e39 Fixed log typo -557d43e69 Minor cleanups -bebc8d126 Added configure options to disable OpenGL ES 1.1 and 2.0 individually -411e0f9da WinRT: expanded the documentation on SDL_HINT_WINRT_HANDLE_BACK_BUTTON -498690ffa Mac: Fix build with clang from Xcode 6. -51a07ade2 Fixed broken layout for buttons with configured color in messagebox on Android. -788a2e459 Added setting configured color to button texts for messagebox on Android. -53feb2289 WinRT: cleaned up the opening section of the README -16773fd47 WinRT: fixed broken emphasis formatting in README, when rendering it with Doxygen -476580576 [Android] Better fix for #2480, pause/resume audio -5f9ea7ede Haptic: Deal with negative periodic magnitudes (thanks, Elias!). -266c0023d Fixed haptic documentation typos (thanks, Elias!). -4544343b3 [Android] Fixes #2480, music does not pause when process backgrounded -e7f2f85c3 [Android] Fixes #2679 - Crash resuming from screen off -60df81304 Fixed doxygen warning and markdown formatting. -ba565622a Enabling highdpi mode on an iPhone 6 Plus should now create a 1080x1920 OpenGL view, rather than 1242x2208 (414x736@3x.) -0fbd904af Fixed key down closing messagebox dialog instead of key up on Android. -df37d1d55 WinRT: made README note that Win 8.0 targeting via MSVC 2013 Express is not possible -75d0396eb WinRT: expanded and updated the README section on MSVC requirements -0903aa3f8 WinRT: added manual, app-setup instructions to the README -11d865b8f WinRT: added a note to README regarding need for a MS account -4eef8bbc1 WinRT: cleaned up section headers -3071128de Merged default into iOS-improvements -bf8ac8e79 DSCAPS_GL was added for DirectFB 1.6 -0e65e6236 Report the correct desktop video mode on the iMX6 -50cc4efec Freescale i.MX6 video driver --- CMakeLists.txt | 2 + cmake/sdlchecks.cmake | 20 +++ configure | 51 +++++++ configure.in | 28 ++++ include/SDL_config.h.cmake | 1 + include/SDL_config.h.in | 1 + src/video/SDL_sysvideo.h | 3 + src/video/SDL_video.c | 3 + src/video/mx6/SDL_mx6events.c | 45 ++++++ src/video/mx6/SDL_mx6events_c.h | 31 +++++ src/video/mx6/SDL_mx6opengles.c | 211 ++++++++++++++++++++++++++++ src/video/mx6/SDL_mx6opengles.h | 68 +++++++++ src/video/mx6/SDL_mx6video.c | 301 ++++++++++++++++++++++++++++++++++++++++ src/video/mx6/SDL_mx6video.h | 78 +++++++++++ 14 files changed, 843 insertions(+) create mode 100644 src/video/mx6/SDL_mx6events.c create mode 100644 src/video/mx6/SDL_mx6events_c.h create mode 100644 src/video/mx6/SDL_mx6opengles.c create mode 100644 src/video/mx6/SDL_mx6opengles.h create mode 100644 src/video/mx6/SDL_mx6video.c create mode 100644 src/video/mx6/SDL_mx6video.h -7798b4d62 video: waylandmouse: handle mmap error properly -5f39ea89c Fixed bug 2415 - Message Boxes aren't implemented on Android -2bfb3c3e8 Fixed using uninitialized display data in iMX6 initialization -24c86b550 [X11] Reconcile logical keyboard state with physical state on FocusIn since the window system doesn't do it for us like other platforms. -bcaae0b57 Deal with various .bmp file format variants in SDL_LoadBMP_RW(). -0b98d0cb8 Fixed example in header file. -c363bffa5 Changed version displayed in documentation generated by doxygen. -782d590b7 Fix non-power-of-two shaped windows. -7242e8147 Updated version to 2.0.4 -724d24d99 Mac: Don't add the same joystick twice if IOKit reports a duplicate device. -7e515963a Corrected hint documentation. -66a88c6c9 Fixed memory leak getting the X11 window title -05cff7923 Fixed bug 2699 - possible memory leak in GL_RenderReadPixels -9d54a9009 May have fixed the Linux build again -fe4bc5ab2 Fixed Linux build -059579e48 Fixed bug 2696 - Mac: fix display mode refresh rate calculation -a79ed6cea Fix declaration-after-statement errors in ibus code. -5e1f15892 Adjusted code style slightly for SDL_ibus.c -da4c3d54d Added note about libibus-1.0-dev to the Linux README. -96d23f6a8 Fixed typos in test program. -aaefa6a85 Fixed not needed standard includes in test program. -ed5435034 Fixed warnings about unused value in test program. -a0cdcb0a8 Fixed warnings about unused functions in test program. -005da280d Fixed warnings about missing initializers in test program. -b1a0bd10a Merged default into iOS-improvements -41728b3c6 Fixed the cmake-guided static analysis and use it by default. -2d2f90200 Better check for __has_feature -38b49c30e Changed the name of the IME hint to match the naming convention in SDL -90bc642fa Add a SDL_IM_INTERNAL_EDITING event to make IMs like iBus render editing text in its own UI instead of sending TEXTEDITING events. This is useful for applications that handle TEXTINPUT events but not TEXTEDITING events. -f4ddacf42 Improvements to the IBus related code: + Handle HidePreeditText IBus signal. + Use SDL_GetKeyboardFocus instead of SDL_GetFocusWindow. + Move the X11 IBus SetFocus calls to the X11_DispatchFocus functions. + Simplify the IBus ifdefs when handling X11 KeyEvents. + Remove inotify watch when SDL_IBus_Quit is called. -6f84f37c0 Take the window border size into account when positioning the IBus candidate list. -eba65c66a Fixed bug 2694 - configure bug __has_feature macro not detected -04f742255 Fixed bug 2691 - Disabling shared library prevent cmake configuration -5a752c3aa Better Mac OS X build fix - actually match the SDK OpenGL headers. -4b8f75381 Fixed Mac OS X build -bbab38552 SDL - fix fullscreen desktop windows not restoring to fullscreen state if focus changes happen due to programtic window changes (and not user alt-tabbing) -877666e23 Fixed UV texture coordinate scale when using GL_ARB_texture_non_power_of_two -f4d3303c9 Don't use the system OpenGL headers, ever. -d1cc47b33 Fixed 2680 - OSX: Replace NSAutoreleasePool with @autoreleasepool -5e5018041 Fixed bug 2655 - OSX: Window position and global mouse coord spaces are different -de3d381cb Fixed bug 2685 - SDL_RenderReadPixels() doesn't work with offscreen targets -2e3c778ef Fixed bug where the render target is updated instead of the default output when the window is resized. -f17587df4 Reset CMAKE_REQUIRED_FLAGS after test -95ced654c cmake: add -Wl,--no-undefined to GCC linker flags -569e595a1 cmake: add -Wall/-Wshadow to GCC compilation flags -1ea869789 Removed SDL_round() because the license wasn't compatible with zlib -2a13cab92 Fixed bug 2688 - failure to build test/loopwavequeue.c on Linux -529ed53b1 Fixed bug 2681 - dereference a NULL pointer dst_fmt in SDL_CreateTextureFromSurface function -984d0fc40 Fixed bug 2683 - Raspberry PI support using CMake -8272ed181 Fixed bug 2687 - SDL_BlitScaled does not handle clipping correctly -4e7db78ed Added SDL_round(), contributed by Benoit Pierre - thanks! -d673d8c38 Fixed bugs 2677 and 2625, made it possible to lock render targets in D3D -384c20476 Fixed building on Windows with CMake -d72c61d8c Haptic: Add some missing haptic types to test, and fix wrong array-sizes. -e2bbc17d1 Haptic: Fix clamping bugs on Windows, by using the Darwin haptics code. -57db27909 Haptic: Fix the saturation and deadband parameters' available range. -a2622ce6e Haptic: Explicitly avoid floating point arithmetic if it's not needed. -1db581b4c Haptic: DInput's POLAR direction actually matches Linux's direction. -3e27013b9 Haptic: Don't interpret a direction of polar 35999 as "unsupported type". -6d9dbf5e1 Fixed markdown formatting in READMEs. -c5aa0d808 Updated README. -e0eb6714c Fixed enumeration in README. -c6a2382c6 Take advantage of GL_ARB_texture_non_power_of_two when it's available -2c1faa40e Fixed warnings about unused local variables. -197a7cae5 Fixed warning about implicit boxing to Java Object. -cfaa99bb5 Fixed doxygen warnings and markdown formatting. -05d878002 Implemented SDL_GetPrefPath() on Android - it returns the path used by SDL_AndroidGetInternalStoragePath() -4fe43f408 Added an entry for the new Steam controller XInput emulation mode -a9d4a6b81 Fixed typo in source comment. -a02521492 Added javadoc comment for consistency. -53cf64b09 Fixed doxygen warning and markdown formatting. -b33d2b737 Updated README name in header. -09dc9f8b2 Removed 42 from README. -ff5caa172 WinRT build fix for ARM platforms -deceab256 Added iOS-specific functions to get the window view's current OpenGL Renderbuffer and Framebuffer objects, so they can be more easily rebound when necessary. -2dac6bf57 Fixed opengl context share groups on iOS. -6fef39d6b Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers -02b06c669 Merged default into iOS-improvements -6299daecb The OpenGL context returned by the UIKit backend is now an actual OpenGL context instead of the OpenGL view we created. This allows you to use the returned context in functions like CVOpenGLESTextureCacheCreate() -292eedffe Merged default into iOS-improvements -f5543f93b Updated the iOS backend code to use Objective-C's automatic reference counting (ARC). -2eb7563e3 Haptics aren't available on iOS, but use the dummy implementation instead of failing init if it's requested. -362899776 Minor code update for less verbosity -209658314 Merged branch default into iOS-improvements -87b8c8d10 SDL - when raising the window under OSX also force the app to activate. This fixes a fullscreen window on a separate space not coming front when raisewindow is called. -bde54b7f3 Merged 'default' into branch 'iOS-improvements' -755294765 SDL - fix re-entrancy into SDL_UpdateFullscreenMode under OSX. During HideWindow we get a RESTORED event which then turns fullscreen back on causing a hang in Cocoa_SetWindowFullscreenSpace waiting for the fullscreen transition to finish. -5b780063e Make SDL_SysWMinfo usable on Mac/iOS with ARC enabled (thanks, Alex!). -c0f9a57f7 Fixed comment typo. -c5b21ea6c SDL_GetQueuedAudioSize() shouldn't grab lock when not set up for queueing. -e5d49c203 Added a GetPendingBytes method to the audio backend. -db1dd7560 XAudio2: Use XAUDIO2_VOICE_NOSAMPLESPLAYED when possible. -e76fecc4e Moved documentation to docs, recreated a simple README.txt, fixed build -f982d0878 Rearrange documentation -caad673f0 Added missing autorelease pool blocks in UIKit backend code. Fixes memory leak issues, especially in SDL_video. -31257842e Added support for SDL_SetWindowBordered on iOS. Worked around a bug with rotating the device on iOS 8. -0c09ce2b3 Changed local var names in SDL assert macro. -164de2325 Turned on OmitDefaultLibName for SDL, SDLmain and SDLtest -2230df552 Remove dependency on C runtime from Windows SDLmain. -a0b68e817 Fixed bug 2537 - _allmul in SDL_lib.c is not working properly -5c6c86912 Fixed uninitialized variable in some cases -0e5df6053 Fixed SDL_SetWindowFullscreen on iOS causing the window's reported dimensions and supported orientations to go out of sync with what they should be, if the device orientation was different from the screen orientation when the function call was made. -05afbfdf2 Integrated Phil Hassey's patch to fix SDL_IsScreenKeyboardShown on iOS (https://bugzilla.libsdl.org/show_bug.cgi?id=2660) -029e0193c Fixed SDL_SetWindowFullscreen on iOS for the last time, hopefully. -ef0490a74 More cleanup of the iOS Objective-C code. -6d552cae3 90% of iOS users on the App Store run at least iOS 7, so it doesn't make sense to support building using an SDK that doesn't support iOS 7. The minimum supported runtime version is still iOS 5.1. -967549c9a Updated the iOS Objective-C code to use NSDictionary/NSArray/NSNumber literals and subscripting, for improved code clarity. -f30e120aa Added audio device buffer queueing API. -dfc7535ff Fixed bug 2657 - Memory leak in GL_CreateTexture function -987c33555 Clarifying hard-to-understand piece of code. -078ca9f07 Cleaned up iOS OpenGL ES context creation code and added sRGB context support on iOS 7+ -cf2958a8d Fixed SDL_SetWindowFullscreen on iOS to properly update the view's frame. -e02e34521 The default implementation of [view layoutSubviews] actually does something in iOS 6+, so we should call [super layoutSubviews] when overriding it. -75dacdb99 Dont redeclare DBusMessage* msg; -e234575d5 Disabled the custom iOS splashscreen code - it interferes with the normal rotation and orientation behaviour of SDL windows. -d2e445d7b Properly send a window resize event in all cases when viewDidLayoutSubviews is triggered. -b55be6e7b Fixed SDL_HINT_ORIENTATIONS to properly allow disabling custom orientations if the hint is set with no valid orientations. -b21544c1d The iOS 7 transparent status bar now uses white text rather than black. -b4d15ece6 Fixed SDL_SetWindowFullscreen not properly updating the status bar visibility in iOS 7+ -c81ce5a0a Minor fix for if SDL_JoystickInit is called more than once without a matching SDL_JoystickQuit. -1506b3b8f iOS now respects SDL_HINT_ACCELEROMETER_AS_JOYSTICK. -3672409c5 Changed the way retina resolutions are handled in iOS. -734b52330 Misc. iOS code improvements. -96b613eab Fixed bug 2640 - Unable to SDL_SetRenderTarget to original surface for software renderer without a window -fd1da994f Fixed bug 2639 - SDL_BLENDMODE_BLEND not working properly for software renderer, thanks to Melker Narikka -d1ca658c4 Fixed bug 2638 - (Signed) Can't create signed apps in Android -454c4a019 Fixed Visual Studio 2010 build -6a1011ae6 Fixed build for arm platforms -eb1c6044b Fixed bug in AVX detection and added AVX2 detection -f1ca7bd16 Clarified the documentation for SDL_FlushEvents() so people know it only affects currently queued events. -f7461cdc9 The Gimp puts out a different bogus color mask for 32-bit .bmp files. :) -a91f1a1ad Make SDL_LoadBMP() work with 32-bit bitmaps from ImageMagick. -0e9c0855f Comment update: SDL_INIT_NOPARACHUTE doesn't do anything as of 2.0.0. -19d878d71 Skip JUNK chunks in wave files -35ec0075c Strip the binaries before signing them, in release configuration -ed30c80c5 Fixed supporting multiple frameworks -9bd483439 Fixed code signing release frameworks -962c9911c Update audio testautomation: more coverage; added SDL_PauseAudio test /w callback coverage -d23d9c88e Fixed bug 2421 - SDL_RenderCopyEx off by one when rotating by 90 and -90 -ef39d1d1f Updated configure after removing pthread spinlock support -8077bf3d1 Fixed bug 2618 - incomplete pthread-based lock support should be removed -0c8e33764 Fixed bug 2628 - invalidate surface->map in SDL_SurfacePalette() -97bdefe2a Enable 2 disabled audio tests (since bug 1396 is fixed and they pass now) -cd8f63f28 Hopefully fixed Cygwin build -a2d5dd023 Removed useless assert -fc4e798d7 Fixed bug 2631 - Mac: minor code cleanup -febc47976 SDL_SYS_IsXInputGamepad_DeviceIndex() is only available if SDL_JOYSTICK_XINPUT is true. -c1d29725a Fixed indentation for pnacl configuration -7187b74cf Fixed compiler warnings on iOS -017c5dc38 Fixed bug 2626 - iOS: fix test and template Xcode projects and build scripts to link with CoreMotion -de1b22e74 Fixed compiler warning -73cb234b5 Fixed compiler warning on Mac OS X -c5812c551 2620 solaris port missing atomics if not using gcc -d44f39226 Fixed bug 2629 - Mac: crash when calling SDL_DestroyWindow with an active OpenGL context -1c6cd6781 Call dbus_shutdown to make valgrind happy. -1ee96bb99 Fixed mingw64 build and warnings -ac112e5f0 Fix option for forced run of disabled tests in test harness -9b1b74e6c Fixed haptic refcount bug (thanks David Ludwig!) -cf4ff728a Made the latest XInput + Haptic changes compile and run on WinRT -b79e7f32c Split the XInput and DirectInput code so Windows RT can use the existing XInput support. -5a3c553d0 Maybe fixes bug #2291 (red tinted screen on some Samsung Android devices) -321af03ff add a comment to SDL_InitSubSystem explaining its refcounting behavior -2748e2823 The YUV offset is 16 / 255, not 16 / 256 -744d4f02e Apply WIN32_LEAN_AND_MEAN redefine fix to SDL_syswm.h too. -610225b45 Fixed null terminating the X11 error string -765894e3c Better fix to support EGL_KHR_create_context and not fail to build on Android ...or Raspberry Pi (EGL < 1.4 systems) -9dc2614e7 Another fix to prevent dereferencing a null window pointer in SDL_mouse.c -a9bb88986 Disable desktop OpenGL for EGL under Android -1ed1f7f2e Fixes #2611 #2610, Touch events cause crash on Android, thanks Alvin & Sylvain -02e9f81eb SDL_egl: allow creation of versioned OpenGL contexts with EGL_KHR_create_context -e592b0468 Fixed compiler warning on Android -82849f073 Updated the template project for iOS, thanks to Davide Coppola -3d5f4a690 Fixed YUV texture update with a subrect in OpenGL ES 2.0 - thanks Sylvain! -65023e076 WinRT: Fixed game controller axis mappings -a838a56d4 WinRT build fix -95864f86d Patched to compile on Windows. -4318910e0 Whoops, lost this in the merge. -84cb23206 Patched to compile with -Werror=declaration-after-statement -b29740b88 Merged Ryan's SDL-gui-backend branch. -843695671 Changed SDL_GetAbsoluteMouseState() to SDL_GetGlobalMouseState(). -704d9bd30 Fixed bug 2525 - Keyboard focus crash -724d9380b Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int -a8955f264 Made the RLE code (semi) readable again -b4deeeba0 Fixed bug 2595 - Padded, non-contiguous YUV does not display correctly using OpenGL ES 2.0 renderer -afe14829b Fixed bug 2556 - add compilation flag -Wshadow -6a632eb23 Fixed bug 2603 - iOS: update joystick accelerometer code to use CoreMotion instead of the deprecated UIAccelerometer -52ec151fb Fixed bug 2553 - Add support to all XInput devices -cbafb158b Fixed bug 2467 - bad memcpy in SDL_OpenAudio/open_audio_device/prepare_audiospec chain -3344db40f Don't redefine standard macros, use SDL specific macros instead to avoid compiler warnings -67e55655a Fixed grab interaction with Windows Classic theme -9e2a2639f Added names for some theme related windows messages -e63e1a5e6 Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker) -620510b33 Fix compiler warning -553028c9e Partial fix for bug 2556 - add compilation flag -Wshadow -9f5e3ed7e Fixed bug 1673 - BEXT wave files only have extra metadata that you can easily skip through -cff9eac63 Fixed bug 2579 - SDL fails to compile on Windows when only EGL+OpenGL ES defined -1b3d4e6d0 565 textures have higher priority than 555 textures -d65ac7785 Restore window OpenGL state if creating an OpenGL renderer fails -b7b6d8ab7 Fixed crash initializing OpenGL ES renderer if OpenGL renderer fails -5df11f8aa Made SDL_PIXELFORMAT_ARGB8888 the default texture format for consistency across renderer implementations. -7b7828a46 You shouldn't get axis and hat events when your application doesn't have focus (unless you use the SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS hint) -f8b75b1a1 Fixed bug 2562 - SDL_hapticlist/_tail not set correctly -e8d84fbfa Merged changes from Alexey Petruchik to support Android obb files http://developer.android.com/google/play/expansion-files.html -f448815e8 Added libibus-1.0-dev build dependency -b56b37cde Fixed warning when building without ibus -fe63e00be Generated configure from recent configure.in changes (for ibus support) -62bdecc80 Fixed compiler warning with new OpenGL ES header files -d7924c73d Fixed bug 2563 - Remove obsolete code for supporting iOS < 5 -e8f8e6727 Fixed bug 2595 - Padded, non-contiguous YUV does not display correctly using OpenGL ES 2.0 renderer -41a39837c Add IBus IME Support, move DBus code to its own file. (v3.3 squashed) -0d673844a Fixed bug 2596 - SDL_SetError fails on on NULL on systems with vsnprintf -6c0a7b99f Added NaCl to the supported platforms list -80e401ab0 Added NaCl to SDL_GetPlatform() -640e0415a Added OpenGL ES headers to public headers -8ef565118 Fixed compiler warning -ce84813a8 commit 9e211e646f9d51dc1372c9f3c8f47a78caf4f2a5 Author: Sam Clegg Date: Fri Jun 20 12:52:11 2014 -61fea2a80 Removed references to Raspberry Pi -879805260 Added script for buildbot to use on NaCl target. -3b217eefd Fix another NaCl warning -7e52722df Fix compiler warnings in Native Client and Linux builds. -6c5cb5400 Ooops, code that resists erasure, I've seen that in a movie. -553cc07e9 Initialize nacl_io, removes SDL_NaClMount/Umount -199aff7bc Make autoconf-based build quiet by default. -715a9829b Fix file name typo, thanks Sam Clegg! -2334aa86b Add suport for "make uninstall" to cmake. -ab238dc6e Assorted fixes for NaCl. Hat tip to Sylvain Becker -9e55ace81 Fixes #2583, clean up EGL initialization -047c19ce7 Fixed bug 2558 - Missing FINGERUP in Android -260549d1c Fixed bug 2567 - x11: Local dropped files are not URI-decoded -af50403e5 Fixed bug 2575 - Current GL context tracking fails -175b343ee Fixed bug 2568 - NO_SDL_GLEXT should prevent OS glext.h as well -2a082c07f Fixed bug 2580 - sndio backend improvements -6146fe85c Fixed 2584 - Memory leak in Cocoa_GetDisplayName -54771080f Add controller mapping for Bluetooth DualShock 4 controllers on Linux -b9d1f9edd Fixed Android error on static lib build, if relative NDK_MODULE_PATH used -ab4f1aaae Fixed Visual Studio 2008 projects Added missing files to SDL2 project Added missing Visual Studio 2008 tests to the solution Added output paths which match the 2010+ projects Added SDL project references instead of old style project dependencies Removed post-build copy step and added data files to projects -39bad809c Mac: Fixed crash when returning from a fullscreen Space on shutdown. -70cebc7d4 Add coreaudio to the configure script's summary output. -446d19c4d Removed SDL_SYS_JoystickNeedsPolling(). -9e5504f89 Mac: Run the CFRunLoop in joystick mode during SDL_SYS_JoystickNeedsPolling(). -8c2c744ad - fixed crash if you removed a device twice, the deviceRef is invalid if removed from the removed device callback (added in http://hg.libsdl.org/SDL/rev/d4e4d0fcda03 ). -2cce7b2ed Implemented Cocoa GetAbsoluteMouseState(). -4676705de Implement Windows GetAbsoluteMouseState(). -c8c55a01f This should probably query async button state. -8719a7653 Regenerated SDL_audiotypecvt.c with updated perl script. -91b7fb00d Fix audio resampling in some cases. -78d40e090 Fixed nesting of HTML elements in documentation. -f4df54258 Fixed typos in documentation. -ea93820e1 Fixed format string faults in audio tests. -7467e30b8 Forgot a piece of README-nacl.txt -efa2d0581 Fixes audio for Native Client, and other fixes... -5ae12b46b The NaCL mount/unmount functions need to be in SDL_system.h and specific to NaCL -be74705f8 Visual Studio 2013 Express Edition can load the standard solution, so we don't need special Express Edition solutions. -d639d031c Ignore Visual Studio test data files -ef3887ecf Changed two Java nested classes into static nested classes. -d2220917e Fixed typo in log message. -2b95c4c40 Fixed doxygen comment in header. -0ad1dc187 Fixed typo in source comment. -85cae4783 Updated projects for Visual Studio 2010, 2012 and 2013 * Test programs use project references instead of hard-coding SDL library dependencies * Test data files are copied only when needed. * Copying SDL2.dll is no longer necessary * Fixed /SAFESEH warning * Fixed attempted rebuild of SDL every time a test program is run -47e0aa0e6 Fixed building on command line Mac OS X -cde32ccc8 Fixed compile warnings -6101e4b20 Added SDL_sqrtf(), SDL_tan(), SDL_tanf() -40538446d Fixed crash with SDL_SetError(NULL) -0ddd252fd Fixed initializing test event queue -5907cfaad Fixed another loopwave crash with no command line arguments -a93474a2e Fixed loopwave crash with no command line arguments -9fb2cc10c dront78 implemented YUV texture support for OpenGL ES 2.0 -93aabd322 Adds missing Makefile for NACL test and a couple of smaller fixes -1e352d792 Chrome's Native Client backend implementation -04a0836b1 Turns out visualstudio does not like PRIu64, soo lets just cast it to llu. -1f7167690 Fix warnings, only major one being an SDL_SetError not providing enough arguments. -6671aa2a0 Code analysis annotations found a legitimate bug! -d0146cfcc Added missing headers that should be installed. -4f7329a12 Don't link directly against OpenGL.framework on Mac OS X. -eff61ee39 Add an entry for X11 "/" key for Brazilian keyboard. -75a3ad1d4 CMake: Slightly better fix for installation target (thanks, Anthony!). -034933d71 Fixed typos in header file documentation comments. -71c65b156 Fixed SDL_GameControllerOpen() and SDL_JoystickOpen() documentation in header. -83c088a04 Fixed unsupported doxygen tag in header file. -69f6f646a Cleaned up the macro salsa in the Windows timer code. -b72938c86 Windows: Always set the system timer resolution to 1ms by default. -c294130f6 Added SDL_opengl_glext.h to the list of headers to install. -3dedcf29f Corrected package list for Wayland/Mir support (was missing libxkbcommon-dev). -c8cf407ea Wired up Windows resize hit testing. -31de8f8b9 Minor tweaks to testhittesting. -2d38a71a1 Added SDL_HITTEST_RESIZE_*, and implemented for X11. -b861efde1 Implemented SDL_GetAbsoluteMouseState(). -264eb4bbe Added some (harmlessly) missing braces. -1188c174d Fixed Mac OS X build -d829af786 Assume all motion events are mouse events unless tool_type states otherwise. -4fd03b958 Setting the window size changes the fullscreen display mode, unless a window display mode has been set. -c15e26d77 Fixed crash and lost pixel data when recovering from a lost device situation (e.g. alt-tab from fullscreen) -947a0b8ba Ryan C. Gordon 2014-05-24 01:23 -0400 Generated dynapi stuff for the new WinRT entry points. http://hg.libsdl.org/SDL/rev/d54306e2b8a7 -da6d9a9f2 Added annotations to help code analysis tools -529bcf629 Fixed bug 2526, but regressed delivering dead key presses -4750fe739 When the window fullscreen mode changes, update the display resolution -707fd9f07 Fixed bug where changing the window border would change the window size on Windows. -1e00c03f1 Fixed Mac OS X build -45ed5ee49 Added an API function to warp the mouse cursor in global screen space: SDL_WarpMouseGlobal() -3e3b34adc Added a hint to disable windows message processing in SDL_PumpEvents() SDL_SetHint( SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP, "0" ); -0d1f0fed7 Added a hint to disable window frame and title bar interaction when the cursor is hidden -d34184461 SDL_opengl: Fix Mac build for SDK 10.9 too. -d623c0b44 SDL_opengl: Fix Mac build with new glext.h -65133ebc1 Wait for the fullscreen transition to complete before allowing the application to continue. This fixes Alt-Enter in the Steam streaming client, which sets the window size and position immediately after switching out of fullscreen mode. -16360b197 Fixed escape cancelling fullscreen mode now that the SDL window is the first res ponder. -a2085da21 SDL_opengles2: Update to latest Khronos headers. -0887f5184 SDL_opengl: Update to glext.h from Khronos dated 2014-05-21. -f45a2fd05 SDL_opengles2: Separate out GLES2 headers. -8793657db SDL_opengl: Move glext.h to a separate file. -c1e11f699 X11: Provide specific X error when SDL_GL_CreateContext fails. -ece2a9bf0 Hopefully really fixed the Android build -5186be4a1 Fixed Android build -a8fcbc466 Fixed bug 2534 - Mac: black bar at top of screen in SDL_WINDOW_FULLSCREEN mode -6b90d7f58 Fixed bug 2550 - [OS X 10.9] Enabling SDL_WINDOW_FULLSCREEN after relative mouse mode leaves cursor visible -32665131f Added a way to get the native Android window and EGL context -3905b910f Fixed bug 2479 - [OS X] SDL_SetWindowFullscreen fails to switch to windowed -75c57f8db Don't use D3D9Ex by default, since it can change behavior for games which rely on D3D9 classic. -9d00f75a2 Fixed bug 2520 - Held double-click app startup creates a stuck MOUSEBUTTONDOWN event -70df9cd0c Fullscreen to windowed mode switch -18c31dec5 Fixed Direct3DCreate9Ex prototype -0c6b99d57 Fixed cast -49c53fd28 Use D3D9Ex when available This hopefully works around crashes in Intel D3D9 support in Windows 8.1. -52222db25 Fixed SDL error when filtering events after shutdown. This can happen when restoring video modes during video system shutdown -7153c2dad Fixed using SDL_PointInRect() from C++. -bb7a27fad Fixed up SDL_CaptureMouse() on Windows to work like I expected. -bcc2cc872 Fixed hit-testing on Windows. -bf03bec12 Patched to compile on Visual Studio. -4ef6eddaf Make some printf() calls into SDL_Log() so I can see them on Windows. :) -f29ac3993 Added javadoc comments to document methods used by JNI. -eac27bcd2 Added javadoc comments to prevent unused parameter warning. -1f111f3dd Fixed implicit boxing and unboxing of Java Objects warning. -8d11db2f9 Added missing stdio include in test program. -3a8033587 Fixed use of uninitialized variable warning in test program. -89ad79340 First shot (not even compiled) at Windows hit-testing support. -661548c8f Tweaked hit-testing documentation. -7364ed016 Added a few debug printf() calls. -98c03f391 Changed drag area API to a hit-testing API. -7a4ddcd8c Don't hardcode an 8 here. -20ac4bae8 Some updates for the X11 drag areas work. -2744c0195 Initial work on X11 implementation of SDL_SetWindowDragAreas(). -3cbc83ef1 First shot at SDL_SetWindowDragAreas(). -b7f90442d Added SDL_PointInRect(). -dd5277d65 Fixed stack overflow in X11_CreateWindow() (thanks, rapha and Brad!). -4db368e62 Added note about Wayland and Mir packages for Ubuntu 14.04. -ded970f70 Flip this around to do the simpler condition first. -668025c23 Implement SDL_CaptureMouse() for Mac OS X. -b7d2c0e9d Implemented SDL_CaptureMouse(). -846a3e077 Added some FIXMEs. -f0e0f4ca1 Fixed whitespace. -a2710516e Generated dynapi stuff for the new WinRT entry points. -25313c3bb added comment -3727528eb access google apk library through reflection -3cdae42d6 Fixing issues discovered by Philipp Wiesemann -612f4a69d inital apk extension support -d5c109b2f Fail if we couldn't create the specified renderer -83200a322 Removed empty statements. -a24745f48 Fixed names of four hint environment variables. -2d8b86bb0 Fixed unused local variable warning. -aeebdc501 Fixed typos in header comments. -9a56cde24 Removed unused variable from test program. -02045dcb3 Fixed doxygen comment in header. -abcb264c1 WinRT: "SDL" to "SDL2", both for .dll output files, and for MSVC project names. -c3c24a335 Fixed the joystick side of XInput haptic detection on Windows 8 -764aa147a Fixed XInput haptic support on Windows 8 It turns out the XBox 360 controller driver never reports force feedback capability, so we'll try to set 0 state and see if that succeeds. -229b438d4 Fixed assertion loading button.bmp in testgamecontroller -20680d7db Added testrumble to the Visual Studio 2013 solution -6123f15e7 Raspberry Pi builds should upload as .tar.xz instead of .tar.bz2. -17a8d2934 Changed a C++ single-line comment to /* */ style. -833cfe534 Remove the RaiseWindow call from OnWindowRestored for now. -8938c2b5d Ignore unused mir event functions, need headers in Ubuntu 14.04 to use them. -2298ed170 Remove two unused variables, causing compiler warnings. -b0502ce83 Re-enable Mir/Wayland support now that 2.0.3 has been released. -a99bf4d70 WinRT: Call IDXGIDevice3::Trim before app-suspend, as required on Windows 8.1 -cbf718461 WinRT: Line ending fixes (CRLF to LF) -22a7dd0be Fixes #2456, controllermap's undo does not work correctly (by Bogdan Marinov) -1f92c9dca Emit SDL_RENDER_DEVICE_RESET on Android when the GLES context is recreated -dd81dad1a Added an assert to help static analyzer. -26823b1bb Added an event SDL_RENDER_DEVICE_RESET, which is triggered on Direct3D 11 when the device has been lost and all textures need to be recreated. -25919bf25 Fixed warning on Mac OS X -3317e4340 Fixing Alt-Enter handling, submitted by Nader Golbaz -119dff554 WinRT: Implemented SDL_ShowMessageBox for Windows 8.x/RT hosts -6ab50a5e2 Tossed in some SDL_asserts to make static analyzer happier. -46a80b04d D3D11: Fixed a crash after a GPU device-reset on Win32 -6ce684e92 D3D11: Added code to handle GPU-device-removed scenarios -c3d103766 Better keyboard detection when some of the keys are remapped, thanks to Lewis Wall -c2243092d WinRT: Miscellaneous app-backgrounding/restoring event fixes and additions -50ee99ecb WinRT: Made app-backgrounded events get sent at separate, distinct times. -823bf7213 WinRT globals cleanup: Removed WINRT_GlobalSDLVideoDevice -b51a3206c WinRT: Got OpenGL ES 2 working with the latest version of ANGLE/WinRT. -cc5293985 Static analysis fix: more cleanups of unused variables, etc, in blitters. -7bf36abfc Static analysis fix: more dead stores. -ba4b3aa94 Patched to compile on C89 compilers, removed more streamer code. -e177b1cc4 Static analysis fix: clean up unused variables and dead stores in blitters. -6d6fba4b0 #ifdef'd out the audio streamer code. -a43dbfad0 Static analysis fix: Removed unused variable. -3aae0ed2c Static analysis fix: uninitialized data. -d7a253b5e Static analysis fix: uninitialized data. -93ba5bd89 Static analysis fix: uninitialized value. -a25bd63cc Static analysis fix: leaking Objective-C object. -84b919a2a Static analysis fix: dereference of a NULL pointer. -b99a6253d Static analysis fix: let clang know _this->displays isn't NULL. -415675bef Static analysis fix: division by zero. -b659c7008 Static analysis fix: uninitialized variables. -1a2a3e9c8 Static analysis fix: Fixed leaking Objective-C object. -bcc2ed09b Static analysis fix: bad release. -a7b84069e Fix visualstudio build break introduced by changeset 8645 -f018ca469 Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite -6ca112739 Minor comment cleanups in checker-buildbot.sh -e84fc5a36 Static analysis fix: division by zero. -546cb8901 Static analysis fix: Value stored to '[bcd]' is never read. -faaaf6c57 Static analysis fix: "Value stored to 'p' is never read" -7b893acdc Don't overwrite SDL_dynapi.h in checker-buildbot.sh. -055d5679a Make checker-buildbot.sh work just about anywhere Clang is installed. -ff3f49f07 Reenable static builds for now with static analysis. -7b7856252 Buildbot static analysis script: use configure script instead of cmake. -80bb859c3 Just build shared libraries for static analysis. -f53d1669f Added a script to let buildslaves run Clang static analysis. -18c9a4e96 Fixed SDL_HapticNewEffect() failing on various DirectInput devices. -2a2fb611d Fixed PS4 game controller config on Windows. -978566a65 Whitespace fix. -1f45d4b61 controllermap: Don't treat SDL_HAT_CENTERED as a valid input. -1496be6e4 Fixed a build error in SDL_platform.h when using Code Blocks and MinGW -7eaf89979 Fixed SDL_HapticOpenFromJoystick() with DirectInput devices. -cf3ff16e9 Added tag release-2.0.3 for changeset d0af6b2f53ca -d4f2f0158 (tag: release-2.0.3) Fixed iOS build -a2e77a247 Added tag release-2.0.3 for changeset 9ac15210f445 -adddf2696 Added a patch note for 2.0.3 -56b40ce04 Fixed bug 2450 - Crosscompiling for Win32 with MinGW fails due to WM_UNICHAR undeclared -9245c9304 Only show the window if it's supposed to be shown. -c663d731f Mac: Make sure window is still showing when we exit a fullscreen space. -f25ee50b0 Fixed broken rotation detection routines on WinRT -5281f9f1e Fixed a crash on Windows Phone 8 that occurred after rotating a device -205266fa0 Fixed a build error when including WinRT's SDLmain file directly in an app -26e8e387e Fixed Mac OS X window level when leaving fullscreen mode -2216ab93d Added a missing file related to WinRT power management/reporting. -f9a589681 Added missing copyright notices -ed02f61da Fixed the copyright date on files contributed by David Ludwig -7124034ba Windows XP toolchain fix from Bruce Dawson: Fix to allow using SDL when compiling with v110_xp or v120_xp -- compiling with VS2012/VS2013 with the XP targeting option. -646cdedb1 Fixed line endings (CRLF to LF) in WinRT source code -4cd5ed7ba Merged various WinRT build fixes -b68b6e23d Fixed various build and runtime errors when using WinRT with VS2012. -c515b7942 Updated framework version to match dylib version. Actually the dylib compatibility version is 3.0.0, but don't break compatibility with previous frameworks, which were compatibility version 1.0.0 -641ba0997 Fixed compiling Windows RT code on Visual Studio 2013 -36e7c8d92 Fixed compiler errors in the D3D11 renderer when building for WinRT -ce3c5b842 Made VS2012 build the D3D11 renderer -b2fcdfca7 Disable Wayland/Mir again for 2.0.3; it's a quick, brown-paper-bag release. -7a36070a9 Fix bug/add test coverage for SDLTest_GenerateRunSeed helper; improve test harness adding output of repro steps for failures; improve negative test for SDL_GetError/SDL_SetError -b677d1d88 Fixed Mac OS X OpenGL context creation to match other backends, where we only care about the actual version we request if it's 3.0 or newer or a special profile context. Eventually we'll probably move the version checking to higher level code and report the actual version of context that got created, but to avoid breakage we'll leave it like this for now. -e99dc1f1b Fixed binary compatibility with the new Windows RT support -7d98754a7 Temporarily disabled the D3D11 renderer so we can get a build. -28398109a Fixed regression causing the renderer to recreate its window since it's not getting an OpenGL 2.1 context anymore. -e8eb14274 build fixes for most WinRT-related files -2c558ca24 Fixed D3D9 initialization on Windows 8, which doesn't have D3DX -9c2fb684a Implemented fullscreen <-> windowed transition on Windows 8 -7e8b25534 Fixed line endings -3df586cef Fixed creating the rendering context on a specific device -9aa5b1d45 Implemented YV12 and IYUV texture support for the D3D11 renderer -cb7a408f4 testoverlay2 depends on SDL2, SDL2main, and SDL2test -1e6ac6911 Added testoverlay2 to the Visual Studio 2013 solution -965cdf10d Minor style tweaks -1a35f32b6 Converted David Ludwig's D3D11 renderer to C and optimized it. The D3D11 renderer is now slightly faster than D3D9 on my Windows 8 machine (testsprite2 runs at 3400 FPS vs 3100 FPS) This will need tweaking to fix the Windows RT build. -a8f540fe4 Fixed renderer flags to include support for target textures after the renderer is created. -8c7ee701a Removed unused variable. -8d2dcbc1b Updated WinCE readme to note WinRT work. -ea333d2e6 Turn off Mir support in the buildbot Raspberry Pi script. -89648a9a3 Drop the default requested OpenGL version to 1.2. -1fe7b27a9 Fixed 64-bit warnings -e58ee5403 Fixed compiling with mingw64 -1367bf874 Integrated David Ludwig's support for Windows RT -05c23063b Fixed line endings on WinRT source code -c167d1f6a Updated SDL to version 2.0.3 -360f1101c Visual Studio 2013 project updates -db568d69d Patched to compile with MingW64 on case-sensitive systems (thanks, Martin!). -5755fa4b9 Patched to compile on C89 compilers. -0f1a72c01 Enable Wayland and Mir in configure/cmake scripts, now that 2.0.2 has shipped. -20dc4214e Added tag release-2.0.2 for changeset c20e24653d40 -2b92d9b43 (tag: release-2.0.2) CMake: Don't use /NODEFAULTLIB on Windows unless we're Visual Studio. -e9eb7ecd0 Fixed bug 2430 - Missing initialization of the variable 'centroid' inside SDL_GestureAddTouch -61ae0c1b5 WinRT: emit SDL_APP_TERMINATING -844ad5001 WinRT: emit SDL_APP_WILLENTER* and SDL_APP_DIDENTER* events -9e67444a3 Mac: Added a hint to opt-out of new Spaces code. -3889d4788 Removed unused variable. -0e5cc8dff Mac: Don't lose the menu/dock when switching back to a resizable window Space. -86be83215 Mac: only programmatically create Spaces if we're FULLSCREEN_DESKTOP. -460f97ff9 A bunch of fixes for the new Spaces code. -da324233e Fixed dictionary initialization -0f9bb0cda Updated to build on Mac OS X 10.7 with Xcode 4.6 -5eccbac4b Mac: Manage menubar and dock as FULLSCREEN_DESKTOP windows become/resign key. -4ca76b3e5 Add support for the freedesktop.org Idle Inhibition specification, as per: http://people.freedesktop.org/~hadess/idle-inhibition-spec/ -c2c08f68e Backed out changeset 9357a2ca3473 -2cf453dd3 Make sure we return version 0 if XInput detection fails -51faf449b Reworked fullscreen policy on Mac OS X. -afc74d984 Better attempt to detect available X11 XInput2 features. -fc0daeba7 Fixed X11 XInput2 multitouch test to work in configure script. -1005c9340 Windows: Fixed crash if quitting without closing an XInput haptic device. -754067db7 Added a FIXME. -7fa4eece2 Fixed a typo in a comment. -bafa4c7ae Dynamically load glGetString(), to avoid direct dependency on OpenGL. -73936208b Added some FIXMEs. -99583397e Mac OS X: Make OpenGL context selection more robust, avoid software fallback. -3e541f306 Force Windows version of SDL_GetPrefPath() to Unicode, create missing dirs. -6687ece1d WinRT: cleaned up some hard-to-read SDL_DisplayMode management code -f4a5a0fad WinRT: fixed a crash in SDL_Quit -63106e472 Changed SDL_HINT_ACCEL_AS_JOY to SDL_HINT_ACCELEROMETER_AS_JOYSTICK to be more clear. -54ba385b4 Fixed compiler warning -86655b64e Fixed compiler warning -d49962359 Fixed test for libuuid.a -2a67548a3 Updated with the latest 2.0.2 API changes -c916f388d Fixed bug 2368 - Security Software is blocking RegisterRawInputDevices() -e663b4eb7 Fixed bug 2423 - timeBeginPeriod & timeEndPeriod mismatch -ab9345a89 Null termnate the pUserMappings variable to prevent memory corruption. -e56bbe3f7 Added a hint to enable the screensaver by default -ac32352f0 Disable the screensaver by default. -f61602b43 Improve window recreation logic in OpenGL* renderers -0d5957dfe Mac: Forgot return value in last commit. -dd94c5fa5 Mac: Don't disassociate cursor if window is moving / doesn't have focus. -4850d2598 Mac: Redo cursor warp handling. -52a63e823 Mac: Improve moving relative mode windows. -98d873796 Mac: Fix error message for haptic subsystem. -95f7e242e Mac: Immediately update current OpenGL context's shape. -4c192bc80 Fixes #2308, recreate window if GL requirements for the renderer are not met -abfbed92c WinRT: simulate keyboard events on Windows Phone 8 back-button presses -7eaa3cd81 WinRT: added a means to display a privacy policy link via the Settings charm -44b0e901f WinRT: d3d11 blend mode bug fixes -910c1cd0a WinRT: minor error cleanup regarding OpenGL init -0dfde14d3 WinRT: took out some dead comments from SDL_winrtopengles.cpp -fed81d121 WinRT: fixed crash on ARM and x64 during OpenGL window init -0562e53fd WinRT: minor header file usage cleanup in the d3d11 renderer -94233675c WinRT: simplified the d3d11 vertex shader a bit -7ef05d266 WinRT: implemented SDL_RenderSetClipRect for the d3d11 renderer -700f82de2 WinRT: corrected a minor error in an end-of-file comment -8b2694f98 WinRT: minor rotation/orientation code cleanup in the d3d11 renderer -b93ab1e6a WinRT: removed a bit of dead d3d11 code -f0e406e99 WinRT: d3d11 compiled-shader code cleanup -4d16628f1 WinRT: made sure d3d11 debug mode doesn't get enabled by default -ce8057221 WinRT: compiled the d3d11 renderer's shaders into SDL itself -ca867fc92 WinRT: prevented a potential race condition in the XInput backend -8db33416a WinRT: added a TODO note regarding texture-[un]locking in the d3d11 renderer -187f52e80 WinRT: renamed d3d11-internal struct, SDL_VertexShaderConstants, to just VertexShaderConstants -222549310 WinRT: moved contents of the d3d11 renderer's header file into its implementation file -d4ae39295 WinRT: simplified a potentially-common error message from D3D11_SetRenderTarget -b0df91573 WinRT: removed an unnecessary use of std::string in the d3d11 renderer -10f2de1e6 WinRT: utilized SDL_SetError's return value in the d3d11 renderer -43e27aa82 WinRT: minor d3d11 code cleanups -8c8feb83e WinRT: made d3d11-spawned error messages trickle down -5fba7db23 WinRT: made d3d11-spawned error messages include the function name of failed calls -3f1e3c303 WinRT: moved ill-performing XInput device-detection calls to a separate thread -27e79b93e WinRT: bug fix: game-controller/joystick button-down events weren't getting sent -5e6aba067 WinRT: better rendering performance via D3D11_USAGE_DYNAMIC -d92f0127d WinRT: enabled OpenGL ES 2 support by default -472068dd9 fixed gles/gles2 renderer creation fail on Android when default major/minor version doesn't match -8db4c5a9d Fixed crash if the input data pitch is larger than the locked texture pitch -b420ad0e0 Don't warp the mouse while we're doing a modal interaction -2a6213ad0 Make sure we don't clip the cursor while clicking on the window title bar -973d890b8 Fixed relative mouse mode with multiple windows. The window cursor clipping will be taken care of when SDL_UpdateWindowGrab() is called. -54debf84e Added a bunch of missing windows messages -d6b1218b4 Mac: Fix inconsistent repeat of SDL_TEXTINPUT events on 10.7+ -6ee12d6cc Fixes #2296 - SDL_GL_UnbindTexture segfaults (thanks Daniel B?nzli) -b814f23a2 CMake: Fixed build on Mac OS X. -1084421cc Zero out haptic linked list items on creation -2ed47d836 Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!) -96f09df73 Free the correct variable. -295acea95 CMake: Just assume Apple platforms have Cocoa support. -f9f2bc5af Fixed Mac DualShock 4 gamecontroller db entry again. -b67b970db Mac joystick: ignore duplicate HID elements. -9cd5f5cec Fixed bug 2404 - CPU detection not working with MSVC on x64 -fea87cc9c Fixed bug 2335 - Fails to build on Debian GNU/kFreeBSD -6bb2f2ef8 Fixed bug 2347 - On OSX, an SDL app prevents system shutdown. -b80f4f9e5 Don't fail initialization if the helper window class already exists. -a5f52ac5a Fixed bug 2395 - OSX: App name in the menu bar is not localized. -eb5eb0465 Fixed bug 2298 - undefined reference to `IID_IUnknown' on cygwin -d3cf7360d Fix audio conversion when channel count changes -5512eac69 Fixed bug 2414 - Execute event watchers in the order they were added -f7de4ae13 Fixed bug 2407 - Support for OpenGL ES 3 contexts on iOS -af0ab4900 Fixed bug 2346 - Mac: mousewheel events have flipped horizontal scroll values -7c33f2336 Thou shalt not use more than 4k local variables in this code. -0deb54c02 Reworked Mac OS X joystick code to use the 10.5+ HID Manager API. -abe2ac2cb Fixes #2326, clean up the X11 backend a bit -22e3217e5 Fixed infinite recursion in D3D_Reset() -ea71a5e07 Fixes #2408, VS2013: several projects of release build are not built -01550b96c Improve testgles2 exit behavior (useful on Android) -e3f0d53b5 Fixes #2403, add SDL2 dependency to testgles2 (thanks Hiroyuki Iwatsuki) -6b33f2e8c Fixed resetting the current render target if the D3D device is reset while using a non-default render target. -ccce6fb30 s/iPhoneOS/iOS -245e125e0 Corrected battery percentage on iOS (thanks, Felix!). -fbeb24e96 Fixed documentation comments in SDL_hints.h file. -fc1c17cc0 Changed text in documentation. -70b975d62 Corrected name of hint in README. -5c5770ad4 Make sure we don't stay in the windows event loop forever if there are lots of events coming in quickly. -441f7d8d6 Fixed Mac PS4 controller entry, added Linux OUYA controller entry -268071d16 Added the new function at the end so we don't break the ABI -baf2dd4c7 Back out changelist 1951976 -f5d1559b5 Back out changelist 2026006 -c52c91056 Added SDL_DXGIGetOutputInfo which returns the adapter and output indices that are used to create DX10 and DX11 devices and swap chains on a particular display. -e34da6801 Fixed lost mouse button when in relative mouse warp mode and you click on the title bar, entering a modal move/resize loop. -567b5ba8e As part of Jorgen's code review of this function I added a call to LoadLibrary so the refcounts would be consistent between Windows and Posix. Then I forgot to include the check that the thing was actually loaded and caused it to be loaded all the time. Oops. -1fa4939a3 Added SDL_GetLoadedModule to do the equivalent of GetModuleHandle/dlload(NOLOAD) -cf119f786 Try to work around Android's handling of static variables in terminated apps -076a14b26 Fixed crash if render target textures are used while the device is lost -ae05f178c Recreate render target textures when the D3D device is being reset, and notify the application using the SDL_RENDER_TARGETS_RESET event when this happens. -9f2509da7 Exposed the font character size and SDLTest_DrawCharacter() to make it easier to do custom debug text layout -a396841f8 Fixed bug where a window created fullscreen and hidden would get activated and "shown" but never actually be visible. This is the case with the Steam In-Home Streaming client. -f38c1f05f Fixed DualShock 4 controller config on Mac OS X. -7f4c6a9ca Fix Cmake so generated SOname matches autoconf's #. -2d92a3723 Make controllermap, etc, work on platforms with hardcoded window sizes. -9268c7a1b Backed out 0869362ccc3c -f0aa97d20 Removed unused function. -b17fd9a18 Replace testgamecontroller visualization mode with something more useful. -9a15da84d No need to use a render target here. -853334afe Updated SDL to version 2.0.2 -8cabd44f3 Fixed the OUYA controller mapping on Windows -c8c3911e0 Added Windows entry for the bluetooth OUYA controller -c3c2964db Possibly fixed bug 2250 - Cmake: SDL2 Doesn't install DLLs on Windows -3ab3ea642 Fixed bug 2385 - error: unknown type name 'IDirect3DDevice9' -b331ada81 Fixed bug 2354 - [ES 2.0] SDL_RenderClear clears render target with wrong color -fab5c7599 Updated README-macosx.txt to note new minimum requirements, end of PowerPC. -ba55cbef6 Make non-Clang compilers happy. -129456fe2 Tell Clang's static analysis that SDL_assert() is an assertion handler. -d3f64213e slight adjustment to the hot plug test to allow it to be run with hap tics disabled -fff7503b6 ignore hot plugs in mac haptic layer IF hap tics hasn't been initialized. -c2f6ab0cc Added DualShock 4 game controller config for Windows, Mac, and Linux. -7033e597b Fixed crash on Windows if haptic isn't initialized when controllers are added. -56979749e Fixed a typo. -a09548eb0 Fix device counting in HapticMouse and JoystickOpen routines. 0 is the first item in the list not the last -f3e6a0a71 fix indentation and spaces -257ab5f57 Fixed return values on testhotplug mainline. -1191a902f Fixed copyright date. -e42d46b46 Wired up haptic hotplugging for Windows DirectInput/XInput code. -9cf8c49c3 Fixed memory leak. -ccbf6943e Make SDL_SYS_HapticMouse() count device indexes like HapticByDevIndex(). -7f9426880 Cleanup some vi footer comments, rename new PRIVATE_* funcs to MacHaptic_*. -7afbb8c37 SDL_pixels.h needs SDL_stdinc.h for SDL_FOURCC #define (thanks, Dmitry!). -d4e3221f1 add testdropfile to OS X Project -b352698d9 Implement new backend methods for haptic and hot plugging on OS X -c9f6e4ec9 add testhotplug to OS X test project and set target OS version to 10.5 for tests. -4da882981 implement new backend method for Haptics in dummy driver -5fb0be307 Rework haptic backend to properly support hotplugging of haptic devices. -a98c477bc allow safely quitting the hotplug test by pressing button 0 on the joystick -25fcc1959 * Remove android based workaround, it is handled in SDL_EGL_GetProcAddress. -c2b5da973 Added SDL_GetAssertionHandler() and SDL_GetDefaultAssertionHandler(). -e6dce68f8 testhotplug: Actually log the SDL_Error that occured on failures -8512f1b87 add logging for the case when haptic is not detected on the joystick as well. -e0e6b2a46 add simple test showing off hotplugging of joysticks w/ haptic. -c8ad30bc9 Removed -force_cpusubtype_ALL cflag from Mac builds. -e719158cb Fixed some compiler warnings from the latest Clang, cleaned up some things. -0d9443d3a Temporarily default Wayland and Mir to disabled, for 2.0.2 release. -bd01a9c91 Unload Wayland libs if memory allocation fails during init. -89fd0faf5 Hooked up dynamic loading for Mir. -8f055d199 Add Mir to configure script's summary output. -69d85ff56 Bumped copyright date on Mir code. -435b80b9a Disable some minor things that need newer Mir dev headers. -6bc297704 Added some SysWM bits for Mir. -8674b7aee Cleaned up headers and footers on Mir code. -19f8c6224 Added Mir video target (thanks, Brandon!). -dce9b7b12 Ignore the buildbot build directories. -e8f5e010a Fixed including SDL_internal.h twice for DirectFB. -9ee68e8f8 Added additional platform check for __ANDROID__. -58edac3e6 Fixed bug 2374 - Update copyright for 2014... -3bd0e9002 Fixed bug 2376 - no SDL_HasAVX -8ba565fff Treacherous copy/paste! -6f3bf1865 Detect Xrandr >= 1.2 at build time -338bf9cc6 Add SDL_GL_ResetAttributes. -d76c2cc1d Add a new hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT that allows SDL_CreateWindowFrom() to set the pixel format of another SDL_Window (and also will set the SDL_WINDOW_OPENGL flag on the window created with SDL_CreateWindowFrom()). -dbd4a917e Document Michael's changes adding TranslateMessage() back to the SDL message loop. -5c58bd687 * Added TranslateMessage call to SDL default message pump - was causing problems in S2 tools mode apps that used Qt. Qt relies on the WM_CHAR message generated by TranslateMessage and keyboard input was showing up in the UI as mixed-case. (Depending on which message pump got a given message - both SDL and Qt pump messages for the entire process.) Sam will review and possibly tweak this change before propagating to public SDL, but I'm checking this version in so I can integrate into S2 and fix the issue there. -366b1727b Mac: [NSApp keyWindow] is not valid in windowDidBecomeKey: -109fe0e0d fixed hat code validation. -68f2fe649 Fixed spaces in source file license comment. -62b17e7ed Fixed comments in joystick implementation files claiming to be headers. -4f1b8a406 Move to no-argument version of "endif()" in CMakeLists.txt. -2de3b01c6 Some CMake fixes for static linking on Windows from the OpenFL project. -f52d7f5ee [Wayland] Fixes segfault when mouse enters window -682bc47bc Preserve binary compatibility in SDL_SYSWM_TYPE (thanks Gerry JJ!) -9d85cdb1a CMake: Enable missing timer subsystem on Mac OS X and Haiku. -2efa2dc22 X11: Don't redraw dialog box when mouse moves. -aff44ccdb Patched to compile...uh, everywhere. :) -87cfee27d Patched to compile on Windows when not supporting Direct3D. -33479316c [Android] Fixes Bug 2370, don't send accelerometer changes when Android_JNI_GetAccelerometerValues return SDL_FALSE (thanks to Jairo Luiz) -037475670 Removed unused variable from Java class for Android. -623441587 Fixed typo in documentation. -815c6c3b6 quick fix for CMAKE SOVERSION number so it matches what is output by the configure script -f186314ae correct grammar on UNIX missing dependency status notice. -5071cb5c1 autoconf script tweaks -e78be5daf Bug 2358 - [Android] Sort joystick axes - Fix by David Brady -50befa620 Bug 2358 - [Android] Joystick Button Mappings are strange (fix by David Brady) -ecc0df066 Fix detection of iOS for disabling dynamic API. -f02ef2985 Fixed XF86 VidMode extension dynamic loading with CMake project. -b131e74be Fixes 2356, [Android] SDL_JoystickGetAttached does not function -beee1c442 Fixed dynamic loading of NAS in CMake project. -cf9828a2a Move Wayland driver above dummy, check for driver availability before creation -2ddd0c58c Patched to compile if Wayland is disabled via SDL_config.h (thanks, Martin!). -9e90acdfc Make sure you clean up the associated renderer when destroying a window. -129640af7 Fixes prototype declaration for wl_proxy_marshal_constructor [Wayland 1.4] -838e76c69 Fix to compile against the Wayland v1.4 headers -12e7fdcbb Don't minimize fullscreen windows when destroying them. -bc92383ee Mac: Don't give windows focus back when we're closing them. -a0c9e649f Allow switching between FS and desktop FS. -a442f121e Test: Add Shift-Enter to switch between FS and desktop FS. -a6a56af91 Tests: Refactor key modifier checking. -56355f3ff Adds README-dynapi.txt based on Ryan's G+ post (lightly edited) -8f660a462 Mac: Trigger SDL_FINGERUP for all touches. -c0d86b923 Make EGL loading more resilient. -272ebb8ef Dynamic loading support for Wayland -5fd5567c4 define a font-size for the "unicode" message box font so the text isn't unreadable on linux systems -93fd65f76 some fixes to the testshape.c code so it more correctly works. -d75665c77 Maybe fix Cygwin. -960458e58 Patched to compile on Cygwin. -e9689e8df Another Android fix. -d16e63016 Updated Dynamic API jumptable. -e9be2d0b5 Add Dynamic API to Android makefile. -afd0f3231 Patched to compile on Android (I think). -d5c977adb Patched to compile on OpenBSD. -446a27048 WinRT: fixed bug: SDL_RenderReadPixels didn't work with certain orientations of the physical display -090327e76 Implemented the Dynamic API magic. -679259473 WinRT: removed a now-complete TODO comment regarding Direct3D 11 -b6f80d855 WinRT: enable the OpenGL ES 2 SDL_Renderer backend, if and when OpenGL ES 2 support is compiled in -ecfbb3f5d WinRT: got the SDL-official OpenGL ES 2 changes working, in an experimental state -7b5887b27 WinRT: implemented SDL_DetachThread() for WinRT -46740a5a1 WinRT: merged with latest SDL 2.x/HG code -da0c0a4a3 WinRT: fixed bug: touch input coordinates weren't normalized [0..1] -9fa4da135 Fixed windows build with conflict resolve -dee481350 Added alternative XBox 360 controller GUID on Linux -d2511d9ef Fixed bug 2260 - SDL_SetCursorGrab() is buggy on Windows -fa4e4a643 Fixed large relative mouse motion when iconifying the SDL window. Windows will move the window to -32000,-32000 when it is iconified, so we don't want to send mouse motion for iconic windows. -2bb344d6d Don't crash when no WM is present. -8574c0815 Fixed bug 2274 - SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined -c343eab67 Fixes #2271, Add KD detection under CMake by Scott Percival -96fe749fc Fixes #2272, typo in CMakeLists.txt (thanks Boris Bendovsky!) -1ad0d2482 [Android] Fixes #2228, reworked touch code -7e1289af3 Make internal SDL sources include SDL_internal.h instead of SDL_config.h -31caa22d3 Patched stdlib changes to compile on Windows. -b72c8bcaf Regenerate the configure scripts. -5c383489a We don't need to check for snprintf() anymore, we don't use it. -e76937409 Added SDL_vsscanf(). -928b49463 Moved atomic API implementation out of headers. -6cbaf9a05 Don't use -falign-loops=16 on Mac OS X anymore. -b44e7470d Fixed display mode calculations for applications which are not DPI aware. If your application wants to have access to the full resolution even when the system has DPI scaling enabled, call SetProcessDPIAware() before calling SDL_Init() -691531968 Switch back to apartment threaded COM initialization, which was the previous default. We do succeed now if the application previously initialized COM in multi-threaded mode. -6f6c76a6a Make sure our window has mouse focus before processing raw input events. This happens rarely, but not reproducibly, where we get raw input events for the window even though it doesn't have focus. -27779311b Bump SDL to build with 10.7 SDK. -fce6257c4 Implements touch support on QTWayland. Contributed by Thomas Perl. -54a1f61a1 Changed return -1 after SDL_SetError() to return SDL_SetError(). -87ad7a1c5 Fixed pointer from integer warning and bug if compiled without EGL. -b2faf3f08 Updated paths in README for Android. -65f0142fa Fixed access of command line arguments on Android in two test programs. -36cbd5068 Fixed unused local variable warning in test program source. -928553718 Fixed missing @Override annotation warning in source for Android. -b97e077e4 Fixed unused local variable warning in joystick source for Android. -28309c1d1 Fixed implicit declaration of SDL_Log() warning in joystick source for Android. -18125f76d Fixed missing return warning in test program source. -2521e4976 Setting the mouse in relative mode implies grabbing the mouse. This fixes getting mouse button events in raw input relative mode on X11. -7aef2350c Added a relative mouse mode that uses mouse warping instead of raw input. To enable this, set the environment variable SDL_MOUSE_RELATIVE_MODE_WARP to "1" -7fe277cd6 Fixed float to int conversion warning, which was a legitimate bug. -8e0dfef15 Print events with SDL_Log() so they show up in Visual Studio debug output Added some joystick and controller events to the set that are printed out. -112f60a48 Changed testgamecontroller to wait for controllers to be reattached, the way testjoystick does. -03aece545 Generate SDL_CONTROLLERDEVICEADDED events for controllers connected at startup -746928350 Added support for double-clicks, through a new "clicks" field in the mouse button event. -3666c1f7c Explicitly initialize COM with multi-threaded support. This is the safest option for applications that use COM, multi-threaded or not. -b5a6c407d [Android] Define SDL_VIDEO_OPENGL_ES2 -45f785f0a Enable ccache for Raspberry Pi buildbot script. -ec1cb49ea Wayland support -4a8c29671 Context sharing for EGL -2159de66c [Android] Poll joysticks every three seconds -35ab76d08 Fixed bug 2050 - Obvious bugs in SDL_ltoa and SDL_lltoa -fcf692276 Fixed bug 2294 - testdrawchessboard.c Sets the render color alpha to 0x0. -bfcd28c1e [Android] Hotplugging support for joysticks -d01ad02be Hook up SDL_acos and SDL_asin properly. -5e656f895 Associate the environment with any thread that calls Android_JNI_GetEnv(), in case it's been manually created with pthread_create() or C++11. -44afc2a30 Fixed crash if no window has keyboard focus -4ab350d4f Fixed detecting the wired XBox 360 controller on Linux Also added some more debug output to detect issues -c78476dad Fixed compiler warning on Visual Studio -fc78e9822 Added missing header for file IO -7afb76824 Added code missed in the resolve -43825e275 Clean up the cursor clipping area when quitting SDL. This fixes the cursor being clipped after the streaming client quits when streaming Dungeons of Dredmor -77d2d55e1 [Android] Handle native thread finishing when not commanded from the Java side -6c495a806 [Android] Signal the resume semaphore after pushing the relevant events -5ac181345 Adds SDL_GameControllerAddMappingsFromRW, updates controllermap -013d99823 Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak -d0d07decc Adding WhatsNew.txt changes -95ec90aa8 Adds controllermap utility to test suite. -45ae148ae Adds SDL_GameControllerAddMappingsFromFile -7d9e42f28 Select EGL config when creating the EGL surface -f848adff5 Improve Android pause/resume behavior. -c93316640 Fixed bug 2258 - Crash when using Android clipboard -e9af6dcd9 Fixed a few public APIs that we accidentally neglected to mark as SDLCALL. -5aa702fe7 Removed second return statement. -01acbd389 Fixed spaces in license comment. -2aa4974bf Removed include of no more needed header. -7a18a6747 [Android] Fixes #2264, handle joystick open/closed state properly -a3bb007ee Fixed double-free of the window shape path -4abeed93c Fixes compilation on Mingw. -61959aa67 OpenGL ES support for Windows -45dbff2ee [Android] Fixes #2247, enable hardware acceleration by default. -a21871711 Query version for X11 XInput2 multitouch separately from base XInput2. -9095952ac Clean up X11 OpenGL ES backend -2f3014041 Fixed SONAME lookup for runtime loading of shared libraries in CMake project. -825a68983 -fvisibility=hidden is no longer a requirement for dynamic X11. -131a07250 Find the best EGL config available between those returned by eglChooseConfig -47139fb3e Adds testgles2 -fdfea4ad1 [Android] Try to improve handling of DPAD|GAMEPAD + KEYBOARD devices -48954ba19 Accidentally committed debug code -d75498f6b Textures need to be freed before renderers -48cffe33f Added missing resource release in test source. -3cba79970 Fixed unreachable return statement warning in gamecontroller source. -b5c681110 Fixed implicit function declaration warning in joystick source for Android. -2f6198edb Fixes building for RPi using --no-undefined -ec080ff89 Restore evdev sources to configure script -9dd923fb9 When the mouse is grabbed it's constrained to the client area, not the window frame. -e4146267f Fixed bug 2245 - add SDL_acos and SDL_asin -923709a69 Turn off --no-undefined on OpenBSD again. Leave it on everywhere else for now. -5a68214b7 Fixed bug 2232 - Version Mismatch in VS2013 Solution File -8acec42a0 Fixed up configure so it doesn't reference input/evdev anymore -4e1ee5573 Fixed bug 2231 - Move src/input/evdev into src/core/linux -744cd465e Fixed bug 2238 - Enable GCC atomics for clang -3b52058f6 Fixed bug 2241 - SSE intrinsic in fillrect MMX path -517747d53 Added information on reporting bugs to the README.txt file -104ceb864 Fixed compile warning, thanks to Michael Pohoreski -8093cfd8c Better fix for bug 2207 - SDL_RenderSetViewport behavior is different/incorrect on OpenGL renderer vs DirectX renderer At least, it works better here on my Mac. :) -44959a21e Added viewport test, contributed by Andreas Schiffler and improved by me and Ryan Gordon. If it works correctly you should see a square moving from the upper left to the lower right, with a little yellow box at the top of the moving square. -30f7e8688 Added space in the common state structure for render targets -4f39f0115 Fix viewport being upside down in OpenGL renderer. -4295a92f9 Fixed bug 2240 - On OS/X after calling SDL_SetWindowBordered right mouse clicks no longer register -ef97aab9c Backed out changeset 6c59f7c8ec17 - it didn't actually do anything useful -346ebbb47 Turning --no-undefined back on, to see what platforms are still broken. -b2f8b351d Fixed comment typo. -35915d4f9 Clean up the EGL related video backends (X11, Android, RPi) -a4a7c78ce Apparently Haiku is removing /boot/common (thanks, scottmc!). -e899f0c4e Haiku: fixed uninitialized variable. -f9f064d53 merged with repo -00003e8c0 Renamed things named after BeOS to be named after Haiku instead. -1c138785d Fixed visualtest build on VS2012 SDL2, SDL2main and SDL2test had to be added as dependencies to the testquit project to get it to build properly. -85dd689ff Adds joystick/udev troubleshooting information to README-linux.txt -dd325b976 Patched to compile on Haiku. -8d6e03f35 Added SDL_DetachThread() API. -7550ddcc0 Started BeOS removal: merged BeOS thread and pthread code. -b36d98bd9 Diagonal flipping with RenderCopyEx -5b8b403e3 [Windows] Fixes bug #1555, handle ALT+F4 on Windows -f8e1d350a Updated androidbuild.sh to enable parallel builds and ndk-build parameters -ad4ba2d57 Added a few notes from Ryan's email to README-linux.txt -bcece01c6 Linux README explaining build vs runtime, and build deps for Ubuntu 13.04 -397f5a850 Retain the high dpi flag when recreating the window (e.g when creating a renderer context) -12961352d Fixed build error with SDK < 10.7 -253b9ba81 We still want to generally minimize on focus loss, but not when we're in a fullscreen space on Mac OS X. -75145ea02 Added a hint SDL_HINT_VIDEO_FULLSCREEN_SPACES to specify that windows go fullscreen into their own spaces on Mac OS X. -5f8a0b18d Fullscreen space naming cleanup to avoid confusion with normal fullscreen mode -7459b159e Made sure the window had the correct border when manually being brought back from fullscreen mode. -cb190b827 Fixed assertion when quickly toggling from fullscreen back to fullscreen: "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'backgroundWindows not nil in enterFullScreenTransitionWithOptions:animated:activatingIt:'" -8f8070db4 Fixed window resizing when entering and leaving fullscreen mode -7cf76ffbe Fixed assertion failure when minimizing a fullscreen window. -75a23d99a Fixed bug 2212 - SDL_SetTextInputRect has no effect on iOS -cb31a80d8 Properly handle toggling fullscreen state when another fullscreen state change is in progress. -819148a84 [X11] Fix up compilation when EGL headers are not present. -04afd61cd [Android] Try to improve handling of some dpad+gamepad+keyboard corner cases -6dbed827a [Android] Fixes Bug 2031 - Backspace Not Sending Events From On-Screen Keyboard -d37bad52b [Android] Improve handling of keyboard, dpad and gamepad events -45a88b6ad [Android] Fixes bug 2217, better joystick axes handling on Android. -f0692d656 Fixed compiling with older Mac OS X SDK -2384ad5b9 Fixed compiling with ISO C90 -2ceeb74e2 Don't minimize by default when in fullscreen desktop mode. This fixes behavior with the new Mac OS X fullscreen space code, as well as improve behavior on Linux desktops. The default for normal fullscreen mode is still to minimize because we're likely doing a mode switch and don't want to stick around as a borderless window in the background. -4c1322f69 Added support for new style fullscreen transitions on Mac OS X -2b93fa089 Turn off resizable flag by default, you can always pass the --resize command line option if you need it. -6ec3e6904 Fixed whitespace style -77a0d3fe2 Toggling fullscreen now takes fullscreen flags -893afbaf3 Fixed pool memory leak -b30e396ba Fixed bug 1965 - Mac: dead code for supporting OS 10.4 -5821466c0 Fixed bug 2176 - SDL_CreateWindow(w=INT_MAX, h=INT_MAX) causes program to hang -15a3bbcbd [X11] Ignore both NotifyGrab and NotifyUngrab modes in FocusIn/FocusOut events -d21640e92 Fixes bugs #2213 and #2214, improves the Android joystick code button handling -9228c8457 Fixed issue with dead key press/release events being filtered out. -0d39d0907 Hopefully fixed focus problems when handling a global hotkey on X11. See this thread for details: https://bugzilla.mozilla.org/show_bug.cgi?id=578265 -e19f15ddd Fixed bug 2067 - Window size limit calculation issue when exiting fullscreen on Windows Also fixed minimize and maximize state detection for Windows. -b7553ae77 Added project files for Visual Studio 2013 Added /arch:SSE code generation option to prevent SSE2 floating point functions from being implicitly called (which aren't linked in SDL) -842a9898c Fixed joystick crash on Android if joystick subsystem not initialized. -305f64ba2 Replaced search loop with indexOf() in Java file. -bbf0f62be Replaced implicit boxing with explicit boxing in Java file. -2d6717814 Renamed a class in Java file for consistency. -802f83ff9 Removed not needed imports from Java file. -d6c1e3812 Added missing @Override annotations in Java file. -26ce68e8c Changed motion listener implementation not to inherit from Activity class. -fda8d9344 Moved two function calls so they are only called if needed. -aa3379802 Added a new unused key code from Android 4.4 (API 19). -0ab7624cd Changed function to return -1 through SDL_Error() instead of plain -1. -82b3e7d22 Changed function to be static. -6e3558cf9 Removed unused local variable to fix warning. -3f2e942fa Fixed implicit function declarations by including the missing header. -bd1e1a93f Corrected source comment. -92b12812a Added Ben Henning's GSoC2013 work: premake build system. -520697577 Added Apoorv Upreti's GSoC2013 work: visual test suite. -247313174 Updated notes about building with the Windows 8 SDK: Get the DirectX SDK. -33cf925c1 Fixed signed/unsigned warning -550676d08 Fixed signed/unsigned warning -976c87692 Fixed bug 2172 - Window loses maximized state when activated -7c7a9b7f8 Added a Linux game controller mapping for the Valve Streaming Gamepad -3523b409b Made helper window creation depend on initializing the Haptics or Joystick subsystems. -faebe94c5 Mac: Fix a crash with SDL_MAC_NO_SANDBOX. -e3e24bded Make sure the joystick count is correct when the added and removed events are dispatched, in case someone is watching for them with an event filter. -621c7f8f1 Added SDL_HINT_CTRL_CLICK_EMULATE_RIGHT_CLICK hint which controls whether ctrl+click should emulate a right click on OSX. -493fadd5c Fixed spot where SDL was assuming that two displays having the same origin means they're the same display. Changed it to check for the same extents instead. -95c67ed9a Fixed bug 2219 - BMP loader do not handle big BITMAPINFOHEADER structure -48e44f7fc Fixed Windows compile error -3b050fc95 Horizontal wheel support in windows -22770a8f4 [Android] Fixes Bug 2041 - can't get SDL_QUIT event... -e27248c27 Fixes Bug 1944 - Linux events, joysticks having only hat are not read -1c9cc8c9b Fixed performance regression caused by the fix for bug 2158 -0b7c69fe1 Adds Joystick support for Android -749117acd WinRT: added experimental OpenGL ES 2.0 support -61068a30b Fixed bug 2180 - debian/rules: Makefiles should use tabs -c4b563e4c Fixed bug 2190 - test/testdrawchessboard.c line endings -517886a7f Fixed bug 2205 - SDL_GetAudioDeviceName returns default-device name on invalid index for default-device only drivers -aaa4165b9 Fixed bug 2187 - CMake is not adding src/core/linux/*.c to the build, linking to SDL results in errors. -f2224e1fc Fixed bug 1990 - focus/keyboard events not generated correctly for multiple windows -2efd40652 Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning -cd37485e3 Changed parameter name for gesture template save functions from "src" to "dst". -95bbf5f44 Removed unreachable return statement in gesture source. -4e270de15 Changed function to return -1 through SDL_Error() instead of plain -1. -0f8d9995f Corrected typo in source comment. -7cc095163 WinRT: added support for SDL_HINT_RENDER_SCALE_QUALITY -e651ab12b Fixes Bug #2191,incorrect test for egl_context validity Thanks David Binderman! -804e5799a Fixed common test usage string (was "hidpi", should be "highdpi"). -d36c7363d Updated GL version tests for Mac OS X 10.9 ("Mavericks"). -ea12ff9fa WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT -3236fc3a9 WinRT: implemented SDL_GetBasePath and SDL_GetPrefPath -3f8f68089 WinRT: spelling fix in SDL_hints.h -1704af5b0 WinRT: build fixes, post SDL 2.0.1 update -69c5d21d7 WinRT: merged with SDL 2.0.1 codebase -e64e3d8c2 WinRT: fixed two bugs regarding mouse events -62c781eaf WinRT: made the Direct3D 11.x 'Debug Layer' be enable-able in any app via a hint -f570effbf Added tag release-2.0.1 for changeset 5755b4fad250 -7108aac5a (tag: release-2.0.1) Removed tag release-2.0.1 -609b58e44 Fixed buffer overflow. -aa10a5d90 Added tag release-2.0.1 for changeset 37391efdb946 -72de99aed Initialize MEMORYSTATUSEX size before GlobalMemoryStatusEx() (thanks, Justin!). -51fc4b202 Added tag release-2.0.1 for changeset 51a4ba8915d8 -fbfe09011 Updated Debian package version to 2.0.1 -d3ad8ff4b Added tag release-2.0.1 for changeset 1e256bd077b2 -e0771482f Fix regression causing crashes when running without a window manager. -965a0da90 Moved a SDL_SetError() call elsewhere to avoid triggering it needlessly. -28aa076c8 SDL_GetPrefPath() now uses the organization on all platforms. -298d3d627 Fixed duplicate const warning -30ce2bc72 SDL 2.0.0 defined __inline__ and some code relies on it now. -fa73a3c8f Testing fullscreen window in the accelerometer test. -09b3b7e78 Fix error assert for negative cases of pixels_getPixelFormatName test -6a71d9923 Added patch notes for 2.0.1 -2348e426c Fixed whitespace -3d1c3b19c Revert fix for bug 1392 because it breaks linking with mingw32 -06811ecf1 Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework -50da48eeb We don't have API changes documented yet. -bcf5472d1 Fixed bug 2073 - Mac: window moves unexpectedly when exiting SDL_WINDOW_FULLSCREEN_DESKTOP mode -d08634e2c Better fix for bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings -c10389cf5 Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework -b8b9bfbe5 Fixed some warnings building for 64-bit Windows -11d38d696 Fixed bug 2015 - surface getting leak in SDLTest_ScreenShot function -80930559a Fixed bug 2012 - Algorithm logic getting wrong in ComputeOutCode -6f76bc290 Fixed bug 2061 - SDL_filesystem API not built using cmake -deb8086b0 Fixed bug 2072 - Make OS X's filesystem calls use -[NSString fileSystemRepresentation] -360c3d853 Better cleanup if OpenGL initialization fails -5697089d9 Fixed bug 2156 - Android: Accelerometer values fed to joystick driver are inverted for the X axis and wrong for Z -a503dabe0 Fixed a crash initializing Android touch IDs -f8c11bb95 Fixed the status bar visibility in iOS 7 -85c2e2367 Fixed Y axis inversion on iOS; positive is up, negative is down. -08fa8da77 Fixed bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings -4ca34ad4a Prevent conflicts when linking both SDL2 and SDL2_gfx -aa86e05d2 Fixed windows compile -f5fa492e2 Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values. Went through the code and used the macro and fixed a couple places that were using incorrect timestamp comparisons. -04e170ceb Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms -d71039967 Fix some edge cases in XInput haptic timing. -dddb87876 Disable Win32 thread naming again. See Bugzilla #2089. -0e699eb5b Added SDL_GL_FRAMEBUFFER_SRGB_CAPABLE (thanks, David!). -d1bde399a Backed out changeset 737771c47c6f, done testing Buildbot changes. -df3680846 Intentionally breaking Windows and Raspberry Pi builds to test Buildbot change. -f28c7fe8a Backed out hg changeset add2dbe99fe2. REFGUID is apparently a const type. -c521ae84b Patched to compile on non-C99 Microsoft compiler. -a614f1866 Patched to compile on Windows. -b285b6009 Allow XInput haptics to run for SDL_HAPTIC_INFINITY time (thanks, Mitchell!). -6e1169ddc Fixed goofy logic in haptic device comparison code. -54dce3f53 Don't bother calling SDL_SYS_HapticEffectType() at all for XInput devices. -5e74299a8 Fix adding of XInput devices (thanks, Mitchell!) -ade13fd74 It's okay to quit things more than once. -20f5167d2 Use vertex arrays for drawing points in addition to lines -8fc4fdf10 Fixed bug 1392 - Debian patch: do not propagate -lpthread -82b8e6df8 Fixed bug 2158 - Pixel missing in SDL_RenderDrawLines -a25b51923 Fixed compiling with the new X11 symbol wrapping -6a3478c23 Fix bug 1300 by querying current border size in ConfigureNotify, and adjusting window coordinates accordingly. -e343273ab Fixed bug 2162 - SDL_RenderClear not clearing entire render target -b4a00144f Fixed the XInput2 X11 symbols. -5a0260064 Fixed bug 2108 - CMake does not set X11 includes properly for sdl2-config and friends -379c0054d Fixed bug 2123 - SDL_BlitScaled crashes in src/video/SDL_blit_N.c:2145 -a329c7f1c Fixed bug 2139 - SDL_CreateWindow/WIN_GL_LoadLibrary fails due to external iconv not being able to convert path -7ae171d15 Fixed bug 2155 - automatically remap accelerometer coordinates according to screen orientation on Android -7ad441a37 Fixed bug 2069 - Device addition/removal queries all USB devices rather than only HID devices. -3f8df1097 Fixed 1598 - Mingwin build fails on src/audio/xaudio2/SDL_xaudio2.c -888d807a7 Removed redundant #ifdef -12ca3ce3f Fixed building using MinGW Our SDL_windows.h needed to be included before anything else so UNICODE is defined. -a2bd89706 Don't supply duplicate X11 symbols inside SDL. -95dc9940a Fix to unbreak SDL_GetSystemRAM() on FreeBSD -14e13e13c Fixed compiler warning if dynamic X11 loading isn't enabled. -7db31223e Fixed using the wrong variable when reporting a missing SDL scancode mapping. -2e6b4b960 Fixed compiling on Mac OS X, added a system RAM test -852004a22 The _SC_PHYS_PAGES method of calculating RAM works on Linux. -8b79cbade Added an API to get the amount of system RAM -01164655c Merged -64e1b1ca3 Fixed project conflict during commit -6435a82d0 Backed out revision fb5ab0e91c56, the platform specific messagebox functions don't have the right prototype since they're designed to be used standalone. -4b603abfd For some reason, trying to raise the window programmatically while it's alt-tabbed away will minimize it. Added a workaround for this. -fea2699c2 Fixed the windows message debug output so it works without HAVE_LIBC -e7e86c6dc Adding static lib to SDL builds on Windows. -06cab8575 Added support for SDL_PIXELFORMAT_UYVY surfaces on Mac OS X -8ec3ba382 Fixed accumulating mouse wheel motion for the Microsoft Wireless Mouse 5000 -080c919b7 Fixed function feature test for Visual Studio 2012 -2337a684b Fixed bug 2149 - Don't search for libusbhid except on BSD -a7b2db05c Added an assert to catch init/quit call mismatch that might bite people. -e9d213393 Prevent keystrokes from leaking through to the console when using evdev. -074a1c4c6 Fixes X11 video backend compilation when no GL is available -7bc981577 added simple Drag & drop test -f6fa41588 Updates the Raspberry Pi README -9a0954c51 Do a full sysroot for the Raspberry Pi buildbot. -4349cb576 Fixed bug 2146 - Enable static linking of libSDL on Android -a7e1fddde Updated SDL to version 2.0.1 -15682c0c5 Report joystick added/removed events even if we don't have udev. -2568a367c Mac: Better handling when someone else is the app delegate. -69e1e779c Raspberry Pi build script: let caller specify final tarball name. -f7e0a9b2b Patched to compile in C90 mode. -6b2291d1c Fixed tarball name in Raspberry Pi build script. -4f305b85a Added script that the buildbot will use for cross-compiling to Raspberry Pi. -89131435f Adds gl_profile_mask to test framework, uses it in testgles -d0fddfab8 Fixes Bug 2134 - [Android] Black screen after resume (sometimes) -eaa4300fa Fixes testgles and testgl -24f237710 Adds test framework to Android.mk and a simple utility to build Android projects -c455f7291 Fix SDL_SetWindowPosition on fullscreen windows. -cca094225 Only allocate a joystick instance ID once we know it's a joystick. This fixes compatibility with code that assumes 0 based joystick instance IDs. -11c45c4ed Removed unused variables (thanks Joseph!) -8f46bcfd6 Check for NULL joystick in SDL_JoystickGetGUID() -90a219a37 Fixed bug where a Logitech wireless keyboard with built-in mouse touchpad didn't get recongized as both devices. -529664278 Fixed bug 2132 - Tests may use invalid SDL_window pointers when windows are closed -0db36f51a Added detection of touch devices before first touch events happen on Android. -36b759174 Do a 32-bit compare on RGBA values. Thsi should be inlined in optimized builds. -5607cc45c Avoid redundant state changes in the GLES2 renderer. -500e4f6f9 Removed "u_colorTable" uniform from the GLES2 renderer. It's not used anywhere. -9c489c7c0 Fix EGL/OpenGL ES paths -9cbd05df1 Report an error if creating a render target fails -509898460 Added optional error checking for OpenGL ES 2.0 in the same style as the OpenGL renderer. You can enable it like this: SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG); -e5ef978e1 Fixed a potential double-free bug if glGenTextures() failed. -b39a4daf0 SDL_TEXTINPUT support for EVDEV -1f21484bd Fixed const/non-const warning -6004b764d WinRT: added missing files -58dd08648 WinRT: unified the two, public, app-init functions -aeaa05054 WinRT: ugh, at least one file in an app's project seems to require C++/CX compilation. Assuming this is true, that file might as well be the one that contains WinMain. -efb3cdca1 WinRT: renamed SDL_winrt_main.cpp to indicate that it should only be used in non-XAML apps -fff83d8e5 WinRT: reduced the size of SDL_winrt_main.cpp by a little bit -0022dbf26 WinRT: made SDL_GetWindowWMInfo return window data in a slightly easier-to-use format -fa45a9c95 WinRT: fixed a line-rendering bug in the D3D 11.1 backend -c72a4fa31 WinRT: made SDL_winrt_main.cpp not have to be compiled as C++/CX (via the /ZW compiler flag) -79e82936c WinRT: build fix for the SDL-WinRT-only .sln -8a16449e9 WinRT: project-naming cleanup. Projects that link to SDL will need updating. To update: 1. remove references to SDL's project files from the Visual Studio Solution. To note, these project files have been renamed, and will show up in Visual Studio with the text, "load failed". 2. add the SDL project files back into the Visual Studio Solution 3. for each project that should link to SDL, add a reference to it. This can be done by right-clicking on it in Visual Studio, selecting "References...", clicking "Add New Reference", checking the box next to the SDL project, then closing each dialog by clicking OK. -34722465d WinRT: code cleanup: attempted to make it more clear what code is specific to what app type (plain Direct3D or XAML) -de8d9dbb9 WinRT: minor code cleanup regarding events -9de76eb52 WinRT: removed chunks of C++ hack code from SDL_xaudio2.c -fff780818 WinRT: made SDL_xaudio2.c compile as C code when building for WinRT -ac6e5a69c WinRT: minor code cleanup in SDL_xaudio2.c -f3bd9175a WinRT: more renaming of "windowsrt" to "winrt" -8fc04cc76 WinRT: renamed a mouse-related header file for naming-consistency's sake -7e06b806a WinRT: misc code cleanups regarding touch and mouse events, and also SDL-internal globals -a94e41854 WinRT: added touch input event support for Windows 8/RT devices -dbdc4b84e WinRT: added touch-event support for Windows Phone devices -1d5082d81 WinRT: corrected SDL_MOUSE* coordinates in non-Portrait modes -13c87e712 WinRT: made simulated-mouse (via touch) input work on Windows Phone in Portrait mode -31235b4b9 WinRT: made rendering work with orientation changes on Windows Phone -91b039027 WinRT: removed a comment regarding a dealt-with TODO -8e3886a27 WinRT: rendering orientation fixes for Windows Phone, part 1 -44755f8a6 WinRT: fixed a potential memory-related crash in SDL_Renderer on Windows Phone -88ea6f9d1 WinRT: build fix for Windows Phone -2cafee9de WinRT: experimental and preliminary support for XAML-based overlays on Windows 8/RT -86ea4c4ed WinRT: made all WinRT-related TODO comments use the same prefix, "TODO, WinRT" -17ca1d00b WinRT: code cleanup wrt. display mode(s) -f860141aa WinRT: renamed "windowsrt" directories to "winrt" -fa229f379 WinRT: fixed a crash that occurred on device rotation (oops!) -1e78c4a5d WinRT: more "Windows RT" to "WinRT" renaming -307008643 WinRT: took out a deprecated TODO-comment -6dc2a410e WinRT: moved the WinRT SDL_VideoDevice out of SDL_WinRTApp This was done to help pave the way for XAML support. -253b9aae8 WinRT: moved the pointer to the global SDL_Window to a separate variable This is a cleanup that is being done to help with WIP XAML support. It may be reverted in the future. -7be2ad71c WinRT: renamed SDL_SYSWM_WINDOWSRT to SDL_SYSWM_WINRT This is part of an overall effort to use the name, "WinRT", rather than "WindowsRT" (or "Windows RT"), as the shorthand name often seems to mean something different than the longhand name. (WinRT is an API, Windows RT is a product name) -d06276732 WinRT: Windows Phone build fix -3e83fd784 WinRT: misc code cleanups -f8e80edf0 WinRT: removed more hack-code that attempted to help have non-standard window sizes "Non-standard" is defined here as any window size that differs from that provided by WinRT's CoreWindow. -80abfc4d6 WinRT: minor function and variable name cleanup -065b2cf47 WinRT: made all SDL_Windows get sized to the WinRT-defined window size This change removes some code that attempted to allow non-standard window sizes, the idea of which was to do display scaling, and a hackish one at that. If display scaling is needed, use SDL_Renderer as appropriate. -409d9b1ce WinRT: removed a deprecated hack regarding window resizing and Direct3D viewports -d78b26ed6 WinRT: moved most platform-specific keyboard and mouse code to shared locations -73dfcdcfe WinRT: removed some old debugging code from SDL_mutexP and SDL_mutexV -dcb1689fb WinRT: made a note that WinRT doesn't appear to support modifying a thread's priority -6300b3606 WinRT: made SDL_ThreadID() return the native thread ID, rather than a fake one -3fce6688b WinRT: made testthread log output via SDL_Log - this will allow output to be read via Visual C++'s Output pane -90a9278f9 WinRT: made the C++11-based threading backend only try to catch exceptions that it knows it (the threading APIs) might throw, rather than all exceptions -19a168b4b WinRT: file naming and placement cleanup - moved SDL_WinRTApp.* from src/video/windowsrt/ to src/core/winrt/, and renamed them to SDL_winrtapp.* (to mimick case-sensitivity used elsewhere in SDL) - renamed all "windowsrt" directories (in src) to "winrt", as the shorthand name is used more often (and, IMO, "WinRT" != "Windows RT", not entirely at least) -eaf26ff66 WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer -45ef345df WinRT: fixed a crash in some display orientation hint code -3dde6e1e9 WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code -11dc53221 WinRT: Windows Phone 8 build fixes -d41fdc94d WinRT: build fixes and additional WinRT-related integrations with SDL 2.0.0 -f7049b93d WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d4ce48ff30d1) -1ad936eb2 (tag: release-2.0.0) Fixed bug 2027 - Full-screen appears to be broken - hang in SDL_DestroyWindow() -1df1e6969 Added the platform specific messagebox function to the video function list -8fbd7dc73 Fixed bug 2130 - Two members of Windows WindowData not initialized -ce45fa28e SDLK_DELETE should probably be SDLK_BACKSPACE on iOS. -958640e5d Get rid of glGetError() calls in GLES2 renderer. -57e09318d Uses SDL_UDEV for Linux joystick hotplugging -69a4351eb Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi -22a972a44 Fixed bug 2122 - SDL_CreateTexture allows illegal texture sizes -058aba086 Fixed bug 2119 - compiler warnings (-pedantic) SDL_video.h:111:42 -889b6bd79 Removes unused property use_egl from internal structure gl_config -c691de00c Fix: SDL_EVDEV_device_removed does not need UDEV -202528a48 Call AddRef() on the device so it doesn't accidentally get released from underneath the caller. -25f607a3c Make it clear we're just returning a D3D9 device, allowing for new functions to get other D3D versions -cf5e5a836 Added a hint to create the D3D device in thread-safe mode: SDL_HINT_RENDER_DIRECT3D_THREADSAFE -803965bcc Added platform specific call: SDL_RenderGetD3DDevice() -9f390e796 Moved SDL_Direct3D9GetAdapterIndex() to SDL_windowsvideo.c since it doesn't belong in the window code. -89c31bb42 Implemented SDL_UpdateYUVTexture() for Direct3D -17c9ff85e Added missing SDL_assert.h -57bd51470 Added optimized YUV texture upload path with SDL_UpdateYUVTexture() -d0a57ea2b Rolled back my LoadLibrary change. The first failed call causes a dialog to pop up in Windows apps (but not console apps) and that's really bad. I'll have to deal with this in my app. -dfa53e7e3 SDL_LoadObject on Windows now calls LoadLibrary a second time in its EX form whenever the first load fails. This second call uses the "altered" search path for DLL dependencies, which includes searching the directory that the DLL itself lives in. -b6be1435c Moved D3D_LoadDLL and SDL_Direct3D9GetAdapterIndex to SDL_windowswindow.c at Jorgen's insistence. That file is wrapped in a more appropriate define check so it will work if somebody builds a binary without D3D support. -1ccbad960 Do not use UDEV references in EVDEV if UDEV has not been detected -99789c71c Fixed bug 1820 - building SDL as a static library with static runtime doesn't compile/link with visual studio -9ceed73db Raspberry Pi support (also unified UDEV and EVDEV support) -b9a223080 Fixed doxygen warning. -90afb94ec Corrected name of SDL_Color field from unused to a. -8b6ad7ffb Fixed bug 2101 - CWBackPixel causes weird window flickering on window resize -b9567776d # User Darren Salt # Date 1379621782 -3600 # Thu Sep 19 21:16:22 2013 +0100 Work around a false-positive in the X11 mouse wheel code -c95761e00 Fixed bug 2100 - directfb fails to build -3ef5a9770 Fixed the name of the environment variable to match the name of the hint. -869a70761 add in High DPI support (aka Retina) -0103bc0bf Default to OpenGL ES 2.0 instead of 1.0 when it's available. -d3d6f9ad1 Fixed syntax error in C style block comment. -bfe1b1d06 Don't incorrectly report success for negative swap intervals on Mac OS X. -fae4190dc Added SDL_Direct3D9GetAdapterIndex(), which returns the adapter index you would pass into CreateDevice to get your device on the right monitor in full screen mode. This fixes the default adapter in SDL_render_d3d.c, which means that tests will work fullscreen off the main monitor now. -49d64d52d Fix X11_RestoreWindow() and X11_RaiseWindow() to properly do window activation. -67c02a282 Mac: Translate Ctrl-Left click to right click. -e231d5b45 Mac: Turn off momentum-based scrolling. -37509cf3e Mac: Fix cast warning. -a9166450f [SDL] X11+GL: Allow Visual override for GL windows. -5081b5d3d Workaround for compiling with /W4 warnings on Visual C++. -83383c652 Disable thread naming on Win64 for now. -dc9ddf1f6 Fixed bug 2090 - Some joystick inputs are delayed on FreeBSD -10ffa28a2 Fixed time comparison and explicitly delay 1 ms instead of an arbitrary scheduled time. -f06eeb013 Fix to buffer overrun in SDL_JoystickGetGUIDString(). -4b942c5a0 Fixed bug 2076 - OpenGL doesn't work with --disable-threads -2afbd773b Fixed bug 2081 - Add name to SDL_Point structure -cefffd618 Fixed bug 2082 - SDL stdlib implementation does not force upper case for %X format specifier -48aca0b2d Fixed bug 2084 - SDL_log xxx on Android outputs to Logcat with incorrect priority. -b63d11ce9 The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const. -2bafbedac Enabled thread naming on Windows. -ace1e98a1 Fixes bug #2040, prepare SDL_GL_CONTEXT_EGL for deprecation on v2.1 -eec4710c5 Fixes bug #2074 - Thanks Sylvain! -e07d7e649 Christoph Mallon: Replace strlen(x) == 0 (O(n)) by x[0] == '\0' (O(1)). -3e2930def Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x) -f79fc33a3 Christoph Mallon: Remove pointless if (x) before SDL_free(x) -1d2c7796a Christoph Mallon: Correct indendation. -7267ea8f8 Christoph Mallon: Use SDL_arraysize() -9e23d1786 Christoph Mallon: Simplify assignment. -67c10169e Christoph Mallon: Report an error, if creating the directories in SDL_GetPrefPath() failed. -db7c92b4b Christoph Mallon: Remove lone /* if */ comment. -321aa4ae1 Christoph Mallon: Simplify avoidance of duplicate / in SDL_GetPrefPath() -257cef302 Change order we enumerate Windows joysticks. -ea4350d82 Don't corrupt XInput device state during SDL_SYS_JoystickClose(). -2538d3114 Fix endlines for logging via OutputDebugString(). -aa6521148 Make XInput joystick names match the numbers on the device. -794998988 Fixed comment typo. -4b255c63f Reworked XInput and DirectInput joystick code. -c89e04694 Better XInput detection code for DirectInput device enumeration. -540cb5389 Fixed testgamecontroller output to make sense. -aef52c350 [Linux] Test config script: Add the X11 library search path if it is not empty -7fc50affa Fixes test building -ad20c801c Fixes typo in EGL code (thanks jmcfarlane!) -2abe45e8c Removed obvious comment to trigger buildbot. -833fd30eb reworked GetBasePath on OS X to use Contents/Resource by default if bundled, or exedir if not bundled. -9ce449e6c update xcode projects with filesystem API bits. (missing tests and missing from files from some targets) -64e6eeac7 Fixes "error: conflicting types for 'GLintptr'" -c9c6852f8 Minor FreeBSD code cleanup. -5f45f4224 make the examples in the doc comments match the actual output of the SDL_GetPrefPath function -e5b65e4e0 Fix #2062 Be more diligent about validating trailing "/" existence in HOME and XDG_DATA_HOME env vars -58a558e32 Patched to compile on Solaris. -88cd94a0e Patched to compile on FreeBSD. -97948aef6 Add support for some BSDs and Solaris to SDL_GetBasePath(). -f60bcf8b5 Fix warning in GL ES2 renderer -1c6d55767 Separate EGL / GL ES detection in CMake -faf760d20 XAudio2/DirectSound: Use the usual Windows string convert (thanks, Norfanin!). -f77c2372e Added SDL_VIDEO_OPENGL_ES2 to the SDL_config.h templates (Thanks, Kerim!). -cc122ce52 Fixes #2036 and #2038, bypass camera zoom and shutter keypresses on Android. -cd27a1ef0 Fixed compiling on old versions of the DirectX SDK -9faefccd4 SDL - detect that you tried to open a gamecontroller in xinput mode and failed, then re-get the mapping for the dinput variant you did open (and most likely now just fail the open) -05d8c2dcd Fix SDL xinput code to work at all when xinput has devices at high indexes but no device connected at lower index, for instance 0->disconnected, 1->wireles, 2->wired. Previously the SDL code assumed the indexes were always used up in order which is not true at all and lead to a bunch of failure cases where controllers would go unrecognized. -3d217ed7b Fixed crash if the IC isn't set up for some reason (bad X11 locale?) -6107705a4 Fix a couple of warnings -5f8de2b93 Patched to compile on Darwin -29dfdd1ed More fixes for -Wdeclaration-after-statement -2490166d2 Fixes for -Wdeclaration-after-statement -1e49b1ed6 OCD fixes: Adds a space after /* (glory to regular expressions!) -695344d16 OCD fixes: Adds a space before */ -3984c7d8e Actually, this should be a memcpy(). -38dc821b0 Added filesystem code to Mac and iOS Xcode projects. -9ff379ba6 Patched to compile on iOS. -fb7a02912 More Haiku fixes. -24006be28 Fixed compiler warning. -ad8aa33bc More Windows fixes for filesystem code. -13e67150b Regenerate configure script. -06f6a5921 Corrected Haiku build. -c9152adcb Patched new filesystem code to compile. -2dd7091e5 Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module. -634473669 Fixed cut-and-paste error. -abbaa90dd Added SDL_DEPRECATED #define. -094a72b8f Added SDL_assert_always (never disabled). -552b04c58 More non C89 compliant comments -63fe3a775 Fixes a few non C89 compliant comments -d8f66188d add missing SDL_bits.h from OS X framework -e43ff8fb5 Added some FIXMEs for later. -0eeb76d86 Fixes bug #2037, common EGL code for Android and X11 -b44267693 Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!). -0ca506611 Fixed warnings building with gcc 2 and gcc 4 on Haiku -c2a29aede Fixed Haiku build (thanks Alexander!) -a46437f79 Replaced introduction in header file with more recent version from README.txt. -ad608e2dc Corrected file names in header file comments. -8cf730554 Changed some documentation comments in header files to be used by doxygen. -7e3b7dbcb Patched to compile with Visual Studio. -1455a9471 Fixed Windows build -d7817f424 Fixed for consistency with the other platforms -e187810ec auto init the ticks if the GetTicks and the like methods are called before SDL_Init().. This prevents annoying game bugs such as caching SDL_GetPerformanceFrequency in a static initializer -6995ff18d Do full state initialization in D3D_Reset(), this fixes blend mode issues when resizing the window on Windows 8. -9ab14aa55 Fixed windows build -ff77ca8d0 The keyboard text events should be sent after the key down events -b4b12d950 Fixed bug 1876 - SDL_TEXTINPUT only returns '?' (0x3F) in event.text.text with Khmer language input -bb2671b7e Android quirk:Some devices don't report GL_OES_framebuffer_object but support it -4cb0ead79 Patched to compile. -02868b690 [Bug 2042] OpenGL ES renderer tries to load OES functions unconditionally -76b7b1e96 Fixed alpha composition when destination alpha is transparent. -89bc80f1a Fixed alpha blending for the MMX blit functions -65728477a Fix bug 2034: replace printf by SDL_Log in tests; update loopwave VS solution: copy missing dependency -67367be01 Don't print "unrecognized key" message for an X11 keycode of 0. This can happen with composed characters. -5d1865c24 Fixed the tag name for the SDL 2.0 release -14bf230d7 Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows. -a84a97fe8 Added Julian Winter to the credits for the SDL 2.0 website. -03477ef6e Added tag release_2.0.0 for changeset d4ce48ff30d1 -dad420670 Fixes #2022, do not resume on Android when surfaceChanged -e14e0ef94 Fixed crash if the OpenGL library hasn't been loaded yet -d12d7952f Align pointer in SDL_memset before doing Uint32 loop -9bc47465c Changed C++ style comments. -f5c77149b Fixed typo in header comment. -ca11d7c8b Changed C++ style comments to fix pedantic warnings. -0d196c309 Removed unused standard library includes from gesture source. -660a57f90 Fixes #2541, build failure with Wayland enabled, OpenGL ES disabled -e772f0df2 Added a binding for the NVIDIA Shield controller -673509733 Updated coding style to match the rest of SDL -81c574b8c Fixed typo in header comment. -49cef77e3 WinRT: fixed the max-button count for WinPhone 8.1 message boxes -ea99e0c03 Added limited message-box support for Windows Phone 8.1 -d5a2e55d4 Improve handling of focus behaviour on Android. Patch by Alexey Petruchik -b701175ab Include gl2platform.h in SDL_opengles2.h so we play nice with GLEW. -de0d349e6 Fixes #2512, handle configuration change messages sent by Wayland. Patch by Bryan Cain. -d57d99a10 Updated iOS deployment target to iOS 5.1 -fb389950a Fixes #2529, guard SDL_d3math.* with the proper defines -536dd0130 Fixes #2519, clear error if using the default library path for EGL succeeds. -f565d81af A few more ANDROID for __ANDROID__ replacements -548a0ee7b __ANDROID__ is the correct macro to check for an android system.ANDROID is only defined in NDK build system (.mk) and not in the standalone NDK. -3672aeb49 Export android jni functions even when build with -fvisibility=hidden flag -fd2d26ebb Show android video or android audio if detected in autotools summary. -1a4c0dacb Temporary fix for bug 2494 - Crashes due to the non thread-safe SDL_malloc/SDL_free on Windows -164e5b89d WinRT: display-information code cleanups -d4f1d2257 Fixed bug: touch input on WinPhone 8.0 was wrong, in some cases -0a879d63b Fixed rendering-alignment issues on WinPhone 8.1, when the device was rotated -33f81a0da WinRT: made Win[Phone] 8.1 projects be structured like their 8.0 counterparts -b61480920 eglGetProcAddress fails the same way on MIR as ANDROID does on arm. Thanks Sylvain Becker for the patch! -e7bccd164 Update the machine-generated configure code. -2a7aa9bde Fix build on Windows targets without dxgi.h, like MingW32. -7528f94ca Remove code that found its way back into the diff -44a0f1d9c Fix software rendering in the mir backend. The window assumed hardware buffer, which caused testdrawchessboard to fail to mmap a buffer. -ec5f6ad59 WinRT: suppressed an unused param warning when building for Windows Phone 8.1 -c5c1a2c65 WinRT: preliminary support for building against the Windows Phone 8.1 SDK -c10afa481 Fixed a linker error when building SDL/WinRT -366967775 WinRT: added project files for Windows 8.1 + MSVC 2013 -cb403ab66 Removed comma at end of enum in a public header, to make -Wpedantic happy. -2c784e363 Set the tag type in libtool invocations -bd6a49369 Fixed bug 2508 - don't redefine WIN32_LEAN_AND_MEAN -d9ffe549e Fixed the inertia effect in the test program -d2fb8a2a9 Better compiler for Windows XP systems -5d7562c7e Mac OS X: Look for joystick hotplug in its own CFRunLoop. -8b2800910 Mac: Correct the y-axis position after 870c7d21004b -dfea14d92 Fixed cygwin build -45dc89c2c Fixed detecting output on second adapter -3e3570dff Don't crash in WIN_GL_InitExtensions() if the OpenGL library couldn't be loaded -a5ce57bc3 Fixed compiler warning -acbc321c2 Don't try to load d3dcompiler_46.dll on Windows XP -af395e970 Removed possible implicit memset() -ae2a50fc8 Revert MIR_CFLAGS to SDL_CFLAGS. Use forward declaration for the real fix. (We shouldn't expose mir headers!) -beff5cece Mac: SDL_SetWindowPosition is now relative to the menubar. -defd90b6f Render: Allow empty cliprect. -36e11d87c Fixed missing j -0ba3a54ac Cleaned up and rearranged WinRT project file structure. -65c82148e Removed global variable from test program. -2540214e0 Mir 14.04 headers available that allow scroll + touch events. -dd27ebed6 Turn off Wayland support for Raspberry Pi on the buildbot. -60e050407 Fixed some issues reported on new Ubuntu 14.04 buildbots. -d2ea7cfea Fixed logic error loading DXGI -03afd0de4 SDL_DXGIGetOutputInfo() checks input parameters and returns a boolean value whether or not it succeeded. -fc9e3a69b Mac: Don't prompt to reopen windows after crash. -353feb5c7 Fixed bug 2475 - Incorrect SDL_Log() format specifiers in test/testgesture.c -43c991969 Fixed bug 2489 - SDL2.framework references __Block_copy in /usr/lib/libSystem.B.dylib, but this symbol cannot be found on OSX-10.5 -9eccde51c Enable building of Android libraries using a standalone NDK -6dd9ea8d3 Fixed bug 2496 - mouse left button double click event issue -929fd90e0 Wayland: Resize windows with 0x0 requested size to screen size -5a6f4d405 Fixed bug 2485 - [PATCH] Wayland: cursor disappears permanently after window loses mouse focus -59690a4e9 Fixed bug 2482 - Wayland_CreateSystemCursor trying to load nonexistent "wait" cursor -7ae52b173 Fixed bug 2477 - [PATCH] Joysticks do not work on RHEL6/CentOS6 systems -5439f9dd8 Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to recreate it. -2dacb60bb Fixed bug 2086 - valgrind memory not released -f6953cf4c Fixed bug 2502 - Memory leak inside SDL_x11events.c -> X11_DispatchEvent(_THIS) -f4b77110d Fixed bug 2503 - Loop indexing and event union errors in SDL_gesture.c -3d5a24b9c Updated configure with Brandon Schaefer's changes -fc9491ddc Add DIRECTFB_CFLAGS to SDL_CFLAGS so its cflags will get added to the sdl2.pc -ece3143d8 Add MIR_CFLAGS to SDL_CFLAGS so these cflags are added to the sdl2.pc file. -63b46d3d8 WinRT: keyboard VirtualKey translation improvements from Sylvain Becker -4bb6afefa Comment out eglWaitGL from Android_GLES_SwapWindow -931cb1a46 Minor change to a README to test Mercurial server. -3dcb451f8 Added a README file regarding WinRT support diff --git a/test/dreamcast/test/Makefile.dc b/test/dreamcast/test/Makefile.dc new file mode 100644 index 00000000000000..1041790ff4f9bc --- /dev/null +++ b/test/dreamcast/test/Makefile.dc @@ -0,0 +1,38 @@ +TARGET = SDL2dcvidTest + +# Update include paths for SDL2 +KOS_CFLAGS+= -I../../../build-scripts/build/include -I../../../build-scripts/build/include-config-/SDL2 -I../../../build-scripts/build/include/SDL2 -I. -DDREAMCAST + + +#KOS_CFLAGS+= -O3 -ffast-math -fno-common -fno-builtin -fno-exceptions -fstrict-aliasing + +#KOS_CPPFLAGS=-fno-operator-names -fno-exceptions $(KOS_CFLAGS) + +# Update library paths and libraries for SDL2 +KOS_LIBS+= -L../../../build-scripts/build -lSDL2 -lSDL2main + +all: $(TARGET).bin + +include $(KOS_BASE)/Makefile.rules + +OBJS = main.o #romdisk.o + +clean: + rm -f $(OBJS) $(TARGET).elf $(TARGET).bin romdisk.o romdisk.img + +$(TARGET).elf: $(OBJS) + $(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET).elf $(KOS_START) \ + $(OBJS) $(OBJEXTRA) -lSDL2 -lSDL2main -lm -lkosutils $(KOS_LIBS) + +$(TARGET).bin: $(TARGET).elf + $(KOS_OBJCOPY) -R .stack -O binary $(TARGET).elf $(TARGET).bin + +romdisk.o: romdisk.img + $(KOS_BASE)/utils/bin2o/bin2o romdisk.img romdisk romdisk.o +# bin2odc romdisk.img romdisk.o + +romdisk.img: data + $(KOS_GENROMFS) -f romdisk.img -d data -v + +run: $(TARGET).bin + $(KOS_LOADER) $(TARGET).bin