|
669a7f85
|
2022-02-23T16:18:05
|
|
Sync wiki -> header
|
|
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
|
|
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)
|
|
67f12ede
|
2022-02-08T21:32:50
|
|
move bug #5333 fix to headers
|
|
580d2318
|
2022-02-08T10:37:04
|
|
Sync wiki -> header
|
|
34d4f5b1
|
2022-02-08T11:32:20
|
|
Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
|
|
050a5e1a
|
2022-02-04T20:02:20
|
|
removed unused SDL_config_wiz.h
|
|
daea9fa1
|
2022-02-02T08:18:22
|
|
Remove SDL_config_psp and references
|
|
e1cf8d87
|
2022-02-01T16:58:05
|
|
Sync wiki -> header
|
|
4fa21dd6
|
2022-02-01T10:37:05
|
|
Sync wiki -> header
|
|
d46cc18a
|
2022-02-01T11:35:26
|
|
Fix function comment
|
|
61b6a2ca
|
2022-02-01T10:33:04
|
|
Sync wiki -> header
|
|
fe2ed6cf
|
2022-02-01T11:30:43
|
|
Fixed bug #5221 - Add SDL_AndroidSendMessage()
|
|
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
|
|
998117b3
|
2022-01-09T16:00:22
|
|
add 'Misc' subsystem
|
|
942b01a5
|
2022-01-09T15:08:21
|
|
do not use RWOps in WIN_SetWindowIcon
|
|
739f350f
|
2022-01-08T12:35:52
|
|
add SDL_LOCALE_DISABLED to SDL_config.h
|
|
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
|
|
014e2bbd
|
2022-01-12T16:40:52
|
|
use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT
|
|
57bc9040
|
2022-01-07T08:54:08
|
|
Add hint to optionally forcibly raise the window under MS Windows.
|
|
a0e3c884
|
2022-01-17T15:32:27
|
|
Updated to version 2.0.21 for development
|
|
42302d0a
|
2022-01-11T21:17:21
|
|
x11: Let apps specify a custom _NET_WM_WINDOW_TYPE.
Fixes #5185.
|
|
b424665e
|
2022-01-10T20:40:05
|
|
Sync wiki -> header
|
|
5e3f4ccc
|
2022-01-10T20:35:04
|
|
Sync wiki -> header
|
|
f14c7bb4
|
2022-01-09T20:33:32
|
|
added missing hidapi stuff for os/2 with libusb
|
|
09ece861
|
2022-01-08T11:36:29
|
|
Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method
|
|
21914b4e
|
2022-01-08T11:55:10
|
|
updated Makefile.psp and SDL_config_psp.h
|
|
92946348
|
2022-01-07T18:28:25
|
|
Updated to version 2.0.20 for release
|
|
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
|
|
75ac944b
|
2022-01-06T22:24:00
|
|
check for tpcshrd.h and define HAVE_TPCSHRD_H if it's available.
|
|
120c76c8
|
2022-01-03T09:40:00
|
|
Updated copyright for 2022
|
|
13a9cd47
|
2022-01-01T16:08:00
|
|
Adding sysfilesystem driver to PSP
|
|
7f5339e6
|
2021-12-14T14:24:59
|
|
Document the packed integer formats SDL_Color is bit-compatible with.
|
|
086c7455
|
2021-12-14T12:08:36
|
|
Fixed build warning on iOS
|
|
b7885abc
|
2021-12-14T10:31:55
|
|
Fixed bug #5087: SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color*
|
|
8d14e6ea
|
2021-12-08T14:01:02
|
|
replaced use of _MAX_PATH with CCHMAXPATH in os/2 code,
it now compiles without HAVE_LIBC
|
|
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
|
|
897c7cfa
|
2021-12-07T10:24:46
|
|
Make sure SDL_VIDEO_RENDER_PSP is set
|
|
21fd0047
|
2021-11-29T18:42:13
|
|
Initial for building PSP version with CMake
|
|
70c5e91d
|
2021-12-01T01:20:10
|
|
os/2 optionally builds against libiconv.
|
|
5fc901d4
|
2021-11-30T09:58:21
|
|
Updated to version 2.0.19 for development
|
|
976328bb
|
2021-11-28T08:54:18
|
|
Fixed ABI break in SDL test header
|
|
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
|
|
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.
|
|
7242075b
|
2021-11-26T08:12:45
|
|
Updated version to 2.0.18 for release
|
|
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
|
|
53aa8eec
|
2021-11-25T17:00:24
|
|
minor cleanup for watcom _inline keyword.
|
|
3c71f893
|
2021-11-25T13:53:04
|
|
Sync wiki -> header
|
|
57520cbd
|
2021-11-25T16:49:57
|
|
Improve documentation for input grabbing functions
|
|
f8900583
|
2021-11-23T17:04:40
|
|
removed windows winmm joystick driver
|
|
e5467af7
|
2021-11-23T09:42:07
|
|
Minor change comment
|
|
c97b7218
|
2021-11-21T12:18:10
|
|
Added SDL_PremultiplyAlpha() to premultiply alpha on a block of SDL_PIXELFORMAT_ARGB8888 pixels
|
|
aeff8748
|
2021-11-20T13:35:25
|
|
configure: Allow building of the "offscreen" video target.
It was CMake-only before this.
|
|
990fb668
|
2021-11-20T01:02:02
|
|
tests: several -Wwrite-strings fixes.
|
|
3ed0c626
|
2021-11-19T01:24:40
|
|
SDL_RWsize: updated description
|
|
0fddda6e
|
2021-11-18T21:51:05
|
|
Sync wiki -> header
|
|
e5268309
|
2021-11-18T20:58:04
|
|
Sync wiki -> header
|
|
3f978c0f
|
2021-11-18T15:56:16
|
|
include: Improved documentation of SDL_RegisterApp and SDL_UnregisterApp.
|
|
7f70f6e1
|
2021-11-18T15:30:36
|
|
include: Note that several rwops functions used to be macros before 2.0.10.
|
|
319d2b3e
|
2021-11-18T20:29:04
|
|
Sync wiki -> header
|
|
16a1721e
|
2021-11-18T20:25:05
|
|
Sync wiki -> header
|
|
c2464653
|
2021-11-17T18:19:49
|
|
Remove unnecessary clang-cl check since Clang has __builtin_bswap.
|
|
6b66542e
|
2021-11-17T17:04:34
|
|
Fixing compilation errors for VS2019 Clang toolset (fixes #4702)
|
|
dd6269b1
|
2021-11-17T17:55:00
|
|
SDL_endian.h: added proper version check (VS2005+) to MSVC functionality
|
|
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
|
|
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
|
|
fb6aba19
|
2021-11-14T15:35:11
|
|
Updated SDL_egl.h with the latest Khronos headers
https://www.khronos.org/registry/EGL/api/
|
|
8a6e48d4
|
2021-11-14T04:40:50
|
|
constified SDL_RegisterApp()
|
|
acb602d6
|
2021-11-12T07:28:00
|
|
minor style adjustment
|
|
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.
|
|
9c3bcf8e
|
2021-11-11T17:31:14
|
|
Added SDL_hid_ble_scan() for pairing Steam Controllers on iOS and tvOS
|
|
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
|
|
cfbae8b9
|
2021-11-11T23:12:04
|
|
Sync wiki -> header
|
|
fe09a493
|
2021-11-11T15:53:11
|
|
joystick: Add APIs to query rumble support
|
|
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.
|
|
a3648e26
|
2021-11-11T21:52:04
|
|
Sync wiki -> header
|
|
b15e880e
|
2021-11-11T13:50:16
|
|
Fixed open functions in the SDL_hidapi.h header
|
|
1e159bc6
|
2021-11-11T13:45:31
|
|
Include standard wrapping for SDL public headers in SDL_hidapi.h
|
|
76e3bb55
|
2021-11-11T20:48:04
|
|
Sync wiki -> header
|
|
c9ada1c1
|
2021-11-11T12:45:38
|
|
Made HIDAPI device change notifications available via SDL_hid_device_change_count()
|
|
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.
|
|
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
|
|
cb4491ca
|
2021-11-10T16:05:03
|
|
Sync wiki -> header
|
|
b42ae3db
|
2021-11-10T15:21:01
|
|
Sync wiki -> header
|
|
6f9909b6
|
2021-11-09T21:11:19
|
|
These functions made it into 2.0.18
|
|
0d987936
|
2021-11-09T22:03:42
|
|
testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936)
* SDLTest_CommonDrawWindowInfo: log SDL_RenderGetScale, SDL_RenderGetLogicalSize
* testwm2: fix video modes menu hit detection in High DPI cases
- also when logical size is specified, e.g.
`--logical 640x480 --resizable --allow-highdpi`
* add function to determine logical coordinates of renderer point when given window point
* change since to the targeted milestone
* fix typo
* rename for consistency
* Change logical coordinate type to float, since we can render with floating point precision.
* add function to convert logical to window coordinates
* testwm2: use new SDL_RenderWindowToLogical
* SDL_render.c: alternate SDL_RenderWindowToLogical/SDL_RenderLogicalToWindow
Co-authored-by: John Blat <johnblat64@protonmail.com>
Co-authored-by: John Blat <47202511+johnblat64@users.noreply.github.com>
|
|
04f42e04
|
2021-11-09T11:50:49
|
|
metal: Deal better with -[CAMetalLayer nextDrawable] returning nil.
Fixes #4863.
|
|
fd79607e
|
2021-11-08T21:34:48
|
|
Added SDL_GetWindowMouseRect()
Also guarantee that we won't get mouse movement outside the confining area, even if the OS implementation allows it (e.g. macOS)
|
|
4b42c05b
|
2021-11-08T13:52:48
|
|
video: Add SDL_SetWindowMouseRect.
This API and implementation comes from the Unreal Engine branch of SDL, which
originally called this "SDL_ConfineCursor".
Some minor cleanup and changes for consistency with the rest of SDL_video, but
there are two major changes:
1. The coordinate system has been changed so that `rect` is _window_ relative
and not _screen_ relative, making it easier to implement without having
global access to the display.
2. The UE version unset all rects when passing `NULL` as a parameter for
`window`, this has been removed as it was an unused feature anyhow.
Currently this is only implemented for X, but can be supported on Wayland and
Windows at minimum too.
|
|
1a98dcb6
|
2021-11-08T15:16:18
|
|
Revert "include: Updated SDL_config_emscripten.h from emscripten-ports."
Apparently we already had the newer version, sorry!
This reverts commit 6657cbce8dcea9abe4501c8bbf85f2b40e6c927a.
Reference issue #4623.
|
|
84138b77
|
2021-11-08T21:15:04
|
|
minor update to os2 config file.
|
|
5dbbc8e6
|
2021-11-08T09:44:31
|
|
Added mouse wheel deltas with floating point precision
Fixes https://github.com/libsdl-org/SDL/issues/4888
|
|
b8327a4a
|
2021-11-08T07:19:45
|
|
Added SDL_HIDAPI_DISABLED so it can be disabled like other SDL subsystems
|
|
2a904aa1
|
2021-11-08T17:00:28
|
|
os2: remove SDL_hidapi duplications in makefile, disable it in config.
|
|
5b646cd1
|
2021-11-07T22:58:44
|
|
Build hidapi code into SDL as a new public API
This prevents conflicts with hidapi linked with applications, as well as allowing applications to make use of HIDAPI on Android and other platforms that might not normally have an implementation available.
|
|
6657cbce
|
2021-11-07T20:43:49
|
|
include: Updated SDL_config_emscripten.h from emscripten-ports.
Reference issue #4623.
|
|
74f35a7c
|
2021-11-07T14:10:04
|
|
Fixed documentation
|
|
e1435826
|
2021-11-07T11:16:48
|
|
Cleanup sfSymbolName support and add them to the dynamic API functions
|
|
149e5c65
|
2021-10-03T12:49:36
|
|
Support returning sfSymbolsName for gamepad controls on macOS / iOS / tvOS
|
|
a0e055a7
|
2021-11-07T02:48:29
|
|
testwm2: add mode menu, click on a mode to call SDL_SetWindowDisplayMode
|