include


Log

Author Commit Date CI Message
SDL Wiki Bot 2a4e0f8f 2022-03-23T16:09:05 Sync wiki -> header
Sylvain Becker c23a7ad3 2022-03-23T17:07:56 Add SDL_RenderGetWindow() API to get the window associated with a renderer (#5440) Add SDL_RenderGetWindow() API to get the window associated with a renderer
Ryan C. Gordon f782abe5 2022-03-22T09:52:52 hints: Added SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE. Fixes #2349.
Ryan C. Gordon 2b3c16eb 2022-03-20T23:17:14 Sync wiki -> headers.
Ryan C. Gordon d81fee76 2022-03-19T10:27:31 SDL_Rect: Added floating point versions of all the rectangle APIs. Fixes #5110.
SDL Wiki Bot aef1e567 2022-03-18T17:30:05 Sync wiki -> header
Sam Lantinga 40b7326b 2022-03-18T10:28:38 Added a note that SDL_RenderReadPixels() should be called before SDL_RenderPresent()
Sam Lantinga 6c962177 2022-03-18T10:07:59 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. For further info about the pros and cons, check out the discussion in https://github.com/libsdl-org/SDL/issues/5271
Sam Lantinga 5ff42438 2022-03-17T17:39:46 Added a hint to capture the mouse when mouse buttons are pressed, defaulting on Fixes https://github.com/libsdl-org/SDL/issues/5301
Sam Lantinga e5f45455 2022-03-17T14:44:34 Added a hint to mark a foreign window as usable with OpenGL Fixes https://github.com/libsdl-org/SDL/issues/2942
Ethan Lee 0bf8ccfb 2022-02-08T22:15:11 video: Add a hint to allow Vulkan surfaces on foreign windows
Ozkan Sezer f0d2747d 2022-03-17T14:56:04 use _Static_assert for SDL_COMPILE_TIME_ASSERT(), when available
Ozkan Sezer ecc1c871 2022-03-14T10:10:40 SDL_endian.h: use endian predefs from newer gcc and clang versions. Closes: https://github.com/libsdl-org/SDL/pull/5403
SDL Wiki Bot 229297d9 2022-03-11T22:47:04 Sync wiki -> header
Zach Reedy d14a1263 2022-03-11T17:45:17 IME Composition Truncation + SDL_IsTextInputShown + SDL_ClearComposition (#5398) * Fixes for IME Composition Truncation + Addition of SDL_ClearComposition, SDL_IsTextInputShown * Fixed: Documentation and code style issues raised during code review.
SDL Wiki Bot 232c3556 2022-03-04T17:30:05 Sync wiki -> header
Sam Lantinga ae73ea9c 2022-03-04T09:27:46 Clarified documentation for the trigger rumble API Fixes https://github.com/libsdl-org/SDL/issues/5372
SDL Wiki Bot 669a7f85 2022-02-23T16:18:05 Sync wiki -> header
Phillip Stephens 94d43186 2022-02-22T00:41:15 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
Sam Lantinga 18032979 2022-02-15T13:07:51 Added the hint SDL_HINT_JOYSTICK_ROG_CHAKRAM to control whether ROG Chakram mice show up as joysticks This hint defaults off, but when it is enabled the mice will have a game controller mapping set up for Profile 3 (set in the Armoury Crate software)
Ozkan Sezer 67f12ede 2022-02-08T21:32:50 move bug #5333 fix to headers
SDL Wiki Bot 580d2318 2022-02-08T10:37:04 Sync wiki -> header
Sylvain 34d4f5b1 2022-02-08T11:32:20 Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
Ozkan Sezer 050a5e1a 2022-02-04T20:02:20 removed unused SDL_config_wiz.h
Francisco Javier Trujillo Mata daea9fa1 2022-02-02T08:18:22 Remove SDL_config_psp and references
SDL Wiki Bot e1cf8d87 2022-02-01T16:58:05 Sync wiki -> header
SDL Wiki Bot 4fa21dd6 2022-02-01T10:37:05 Sync wiki -> header
Sylvain d46cc18a 2022-02-01T11:35:26 Fix function comment
SDL Wiki Bot 61b6a2ca 2022-02-01T10:33:04 Sync wiki -> header
Sylvain fe2ed6cf 2022-02-01T11:30:43 Fixed bug #5221 - Add SDL_AndroidSendMessage()
pionere 998117b3 2022-01-09T16:00:22 add 'Misc' subsystem
pionere 942b01a5 2022-01-09T15:08:21 do not use RWOps in WIN_SetWindowIcon
pionere 739f350f 2022-01-08T12:35:52 add SDL_LOCALE_DISABLED to SDL_config.h
pionere 3939ef72 2022-01-19T17:23:53 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
pionere 014e2bbd 2022-01-12T16:40:52 use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT
pionere 65e9415b 2022-01-10T17:00:32 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
ulatekh 57bc9040 2022-01-07T08:54:08 Add hint to optionally forcibly raise the window under MS Windows.
Sam Lantinga a0e3c884 2022-01-17T15:32:27 Updated to version 2.0.21 for development
Ryan C. Gordon 42302d0a 2022-01-11T21:17:21 x11: Let apps specify a custom _NET_WM_WINDOW_TYPE. Fixes #5185.
SDL Wiki Bot b424665e 2022-01-10T20:40:05 Sync wiki -> header
SDL Wiki Bot 5e3f4ccc 2022-01-10T20:35:04 Sync wiki -> header
Ozkan Sezer f14c7bb4 2022-01-09T20:33:32 added missing hidapi stuff for os/2 with libusb
Sam Lantinga 09ece861 2022-01-08T11:36:29 Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method
Ozkan Sezer 21914b4e 2022-01-08T11:55:10 updated Makefile.psp and SDL_config_psp.h
Sam Lantinga 92946348 2022-01-07T18:28:25 Updated to version 2.0.20 for release
Sam Lantinga 4b38d4c9 2022-01-07T12:37:28 Leave the Metal view active on the window when recreating the Metal renderer Fixes https://github.com/libsdl-org/SDL/issues/5140 Also move the metal tag definition to SDL_syswm.h so it can be used by applications
Ozkan Sezer 75ac944b 2022-01-06T22:24:00 check for tpcshrd.h and define HAVE_TPCSHRD_H if it's available.
Sam Lantinga 120c76c8 2022-01-03T09:40:00 Updated copyright for 2022
Francisco Javier Trujillo Mata 13a9cd47 2022-01-01T16:08:00 Adding sysfilesystem driver to PSP
Alex Szpakowski 7f5339e6 2021-12-14T14:24:59 Document the packed integer formats SDL_Color is bit-compatible with.
Sam Lantinga 086c7455 2021-12-14T12:08:36 Fixed build warning on iOS
Sylvain b7885abc 2021-12-14T10:31:55 Fixed bug #5087: SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color*
Ozkan Sezer 8d14e6ea 2021-12-08T14:01:02 replaced use of _MAX_PATH with CCHMAXPATH in os/2 code, it now compiles without HAVE_LIBC
Wouter Wijsman da5dbb47 2021-12-07T16:43:50 Fix SDL2main on PSP (#5076) - Fix SDL2main on PSP SDL2main was not working for PSP, because it wasn't being activated and it wasn't unsetting the main. Besides that a debug screen being started was causing issues with joystick input and the sceKernelExitGame calli is no longer needed with the current PSPDEV SDK. - Clean up imports in PSP main - Set PSP GPU and user modes in main - Fix exit callback in PSP main
Wouter Wijsman 21fd0047 2021-11-29T18:42:13 Initial for building PSP version with CMake
Wouter Wijsman 897c7cfa 2021-12-07T10:24:46 Make sure SDL_VIDEO_RENDER_PSP is set
Ozkan Sezer 70c5e91d 2021-12-01T01:20:10 os/2 optionally builds against libiconv.
Sam Lantinga 5fc901d4 2021-11-30T09:58:21 Updated to version 2.0.19 for development
Sam Lantinga 976328bb 2021-11-28T08:54:18 Fixed ABI break in SDL test header
Sam Lantinga 110e4e13 2021-11-27T10:24:32 Use WGI instead of XInput for Windows 10 UWP apps Fixes https://github.com/libsdl-org/SDL/issues/5017
Ozkan Sezer 5a0ea7fb 2021-11-27T19:10:10 Check for O_CLOEXEC definition in fcntl.h at configuration time, If not available, define it internally as 0 (in SDL_internal.h). Define it as available for macOS >= 10.7 in SDL_config_macosx.h.
Sam Lantinga 7242075b 2021-11-26T08:12:45 Updated version to 2.0.18 for release
Ozkan Sezer eb39e205 2021-11-25T17:00:50 SDL_endian.h: remove aarch64 asm. The asm has been reported broken in at least optimized Apple M1 builds; and besides, the compiler builtins have precedence over the asm anyway. Closes https://github.com/libsdl-org/SDL/issues/3943
Ozkan Sezer 53aa8eec 2021-11-25T17:00:24 minor cleanup for watcom _inline keyword.
SDL Wiki Bot 3c71f893 2021-11-25T13:53:04 Sync wiki -> header
Cameron Gutman 57520cbd 2021-11-25T16:49:57 Improve documentation for input grabbing functions
Ozkan Sezer f8900583 2021-11-23T17:04:40 removed windows winmm joystick driver
Sylvain e5467af7 2021-11-23T09:42:07 Minor change comment
Sam Lantinga c97b7218 2021-11-21T12:18:10 Added SDL_PremultiplyAlpha() to premultiply alpha on a block of SDL_PIXELFORMAT_ARGB8888 pixels
Ryan C. Gordon aeff8748 2021-11-20T13:35:25 configure: Allow building of the "offscreen" video target. It was CMake-only before this.
Ozkan Sezer 990fb668 2021-11-20T01:02:02 tests: several -Wwrite-strings fixes.
Ozkan Sezer 3ed0c626 2021-11-19T01:24:40 SDL_RWsize: updated description
SDL Wiki Bot 0fddda6e 2021-11-18T21:51:05 Sync wiki -> header
SDL Wiki Bot e5268309 2021-11-18T20:58:04 Sync wiki -> header
Ryan C. Gordon 3f978c0f 2021-11-18T15:56:16 include: Improved documentation of SDL_RegisterApp and SDL_UnregisterApp.
Ryan C. Gordon 7f70f6e1 2021-11-18T15:30:36 include: Note that several rwops functions used to be macros before 2.0.10.
SDL Wiki Bot 319d2b3e 2021-11-18T20:29:04 Sync wiki -> header
SDL Wiki Bot 16a1721e 2021-11-18T20:25:05 Sync wiki -> header
hgs3 c2464653 2021-11-17T18:19:49 Remove unnecessary clang-cl check since Clang has __builtin_bswap.
hgs3 6b66542e 2021-11-17T17:04:34 Fixing compilation errors for VS2019 Clang toolset (fixes #4702)
Ozkan Sezer dd6269b1 2021-11-17T17:55:00 SDL_endian.h: added proper version check (VS2005+) to MSVC functionality
Cameron Gutman 43d1b42a 2021-11-16T17:59:38 cmake: Sync build config options with autotools - SDL_CLOCK_GETTIME now defaults to ON to match autotools build - Add detection of float.h and Xdbe - Fix detection of pthread_setname_np() (requires _GNU_SOURCE) - Move SDL_USE_IME definition into SDL_config.h.cmake
Sam Lantinga 66058bbb 2021-11-15T16:52:56 Fixed exception accessing Bluetooth devices on Android 12 Since accessing Bluetooth prompts the user for permission on both Android and iOS, and we only need it for Steam Controller support, we'll leave it off by default. You can enable it by setting the hint SDL_HINT_JOYSTICK_HIDAPI_STEAM to "1" before calling SDL_Init() Fixes https://github.com/libsdl-org/SDL/issues/4952
Sam Lantinga fb6aba19 2021-11-14T15:35:11 Updated SDL_egl.h with the latest Khronos headers https://www.khronos.org/registry/EGL/api/
Ozkan Sezer 8a6e48d4 2021-11-14T04:40:50 constified SDL_RegisterApp()
Ozkan Sezer acb602d6 2021-11-12T07:28:00 minor style adjustment
Misa 3bf7994f 2021-09-27T14:38:12 Add and use `SDL_FALLTHROUGH` for fallthroughs Case fallthrough warnings can be suppressed using the __fallthrough__ compiler attribute. Unfortunately, not all compilers have this attribute, or even have __has_attribute to check if they have the __fallthrough__ attribute. [[fallthrough]] is also available in C++17 and the next C2x, but not everyone uses C++17 or C2x. So define the SDL_FALLTHROUGH macro to deal with those problems - if we are using C++17 or C2x, it expands to [[fallthrough]]; else if the compiler has __has_attribute and has the __fallthrough__ attribute, then it expands to __attribute__((__fallthrough__)); else it expands to an empty statement, with a /* fallthrough */ comment (it's a do {} while (0) statement, because users of this macro need to use a semicolon, because [[fallthrough]] and __attribute__((__fallthrough__)) require a semicolon). Clang before Clang 10 and GCC before GCC 7 have problems with using __attribute__ as a sole statement and warn about a "declaration not declaring anything", so fall back to using the /* fallthrough */ comment if we are using those older compiler versions. Applications using SDL are also free to use this macro (because it is defined in begin_code.h). All existing /* fallthrough */ comments have been replaced with this macro. Some of them were unnecessary because they were the last case in a switch; using SDL_FALLTHROUGH in those cases would result in a compile error on compilers that support __fallthrough__, for having a __attribute__((__fallthrough__)) statement that didn't immediately precede a case label.
Sam Lantinga 9c3bcf8e 2021-11-11T17:31:14 Added SDL_hid_ble_scan() for pairing Steam Controllers on iOS and tvOS
Sam Lantinga abc12a83 2021-11-11T15:58:44 Revert "Add and use `SDL_FALLTHROUGH` for fallthroughs" This reverts commit 66a08aa3914a98667f212e79b4f0b9453203d656. This causes problems with older compilers: https://github.com/libsdl-org/SDL/pull/4791#issuecomment-966630997
SDL Wiki Bot cfbae8b9 2021-11-11T23:12:04 Sync wiki -> header
Cameron Gutman fe09a493 2021-11-11T15:53:11 joystick: Add APIs to query rumble support
Ozkan Sezer 1ba695dc 2021-11-12T02:00:04 whitespace between '#' and 'cmakedefine' does not seem to work.. at least with my version of cmake-3.9.6.
SDL Wiki Bot a3648e26 2021-11-11T21:52:04 Sync wiki -> header
Sam Lantinga b15e880e 2021-11-11T13:50:16 Fixed open functions in the SDL_hidapi.h header
Sam Lantinga 1e159bc6 2021-11-11T13:45:31 Include standard wrapping for SDL public headers in SDL_hidapi.h
SDL Wiki Bot 76e3bb55 2021-11-11T20:48:04 Sync wiki -> header
Sam Lantinga c9ada1c1 2021-11-11T12:45:38 Made HIDAPI device change notifications available via SDL_hid_device_change_count()
Misa 66a08aa3 2021-09-27T14:38:12 Add and use `SDL_FALLTHROUGH` for fallthroughs Case fallthrough warnings can be suppressed using the __fallthrough__ compiler attribute. Unfortunately, not all compilers have this attribute, or even have __has_attribute to check if they have the __fallthrough__ attribute. [[fallthrough]] is also available in C++17 and the next C2x, but not everyone uses C++17 or C2x. So define the SDL_FALLTHROUGH macro to deal with those problems - if we are using C++17 or C2x, it expands to [[fallthrough]]; else if the compiler has __has_attribute and has the __fallthrough__ attribute, then it expands to __attribute__((__fallthrough__)); else it expands to an empty statement, with a /* fallthrough */ comment (it's a do {} while (0) statement, because users of this macro need to use a semicolon, because [[fallthrough]] and __attribute__((__fallthrough__)) require a semicolon). Applications using SDL are also free to use this macro (because it is defined in begin_code.h). All existing /* fallthrough */ comments have been replaced with this macro. Some of them were unnecessary because they were the last case in a switch; using SDL_FALLTHROUGH in those cases would result in a compile error on compilers that support __fallthrough__, for having a __attribute__((__fallthrough__)) statement that didn't immediately precede a case label.
Sam Lantinga 1c78b080 2021-11-10T20:02:25 Added support for /dev/input/js* on Linux Added the hint SDL_HINT_LINUX_JOYSTICK_CLASSIC to control whether /dev/input/js* or /dev/input/event* are used as joystick devices Added the hint SDL_HINT_JOYSTICK_DEVICE to allow the user to specify devices t hat will be opened in addition to the normal joystick detection Fixes https://github.com/libsdl-org/SDL/issues/1314 Fixes https://github.com/libsdl-org/SDL/issues/1727 Fixes https://github.com/libsdl-org/SDL/issues/1981 Closes https://github.com/libsdl-org/SDL/pull/4727
Ryan C. Gordon cb4491ca 2021-11-10T16:05:03 Sync wiki -> header