SDL Wiki Bot
644a4e5b31
Sync SDL wiki -> header
2022-08-28 02:01:12 +00:00
Sam Lantinga
3cbfd75d0f
Re-added the CRC to the joystick guid
...
This is now used as a crc field in the mapping rather than directly in mapping guids, for better mapping compatibility between versions of SDL.
Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID, so that mapping programs can clear the CRC from the GUID when generating mappings.
sort_controllers.py has been updated to extract the CRC from mappings created by older mapping programs and convert it into the new crc field. It will also take the CRC into account when checking for duplicate mappings.
Also regenerated the GUIDs for the PS2/PSP/Vita controller mappings, fixing https://github.com/libsdl-org/SDL/issues/6151
2022-08-27 19:00:31 -07:00
SDL Wiki Bot
111626f4cf
Sync SDL wiki -> header
2022-08-25 17:17:12 +00:00
Sam Lantinga
e4b85091fd
Document the range of trigger axes for virtual joysticks
...
Fixes https://github.com/libsdl-org/SDL/issues/6130
2022-08-25 10:15:45 -07:00
Noel Berry
00452e47fa
Adding SDL_GetWindowSizeInPixels for window size in pixels ( #6112 )
2022-08-24 11:25:13 -07:00
Sam Lantinga
1fc7f68118
Document that it's not possible to use the HIDAPI driver for PS3 controllers on Windows
2022-08-24 06:38:36 -07:00
Sam Lantinga
b6f96b69aa
Initial HIDAPI driver support for the PS3 controller
2022-08-23 22:45:37 -07:00
Sam Lantinga
92b3c53c92
Added a hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether to use system mouse acceleration on raw relative motion.
...
This is currently only implemented on Windows, and "Enhanced pointer
precision" mode is not quite correct.
2022-08-22 16:48:09 -07:00
SDL Wiki Bot
a7066c527a
Sync SDL wiki -> header
2022-08-21 14:05:04 +00:00
SDL Wiki Bot
8fb1b50a9e
Sync SDL wiki -> header
2022-08-20 17:50:04 +00:00
Oleg Derevenetz
a204ef50bb
Use __ARM_ARCH instead of __ARM_ARCH__
2022-08-19 13:15:28 -07:00
Sam Lantinga
5a3adbfdb2
Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LED is set on Xbox 360 controllers
2022-08-19 11:11:25 -07:00
Sam Lantinga
52b6899a6b
Added hints for more fine grained control over HIDAPI Xbox controller support
2022-08-19 11:11:23 -07:00
Sam Lantinga
6e9c14e550
Updated to version 2.25.0 for development
2022-08-19 09:38:42 -07:00
Sam Lantinga
8c9beb0c87
Updated to version Updated to version 2.24.0 for release
2022-08-19 08:44:09 -07:00
Sam Lantinga
f6b81125b3
Always define SDL_COMPILE_TIME_ASSERT as static_assert() in C++
...
Apparently some versions of gcc will define __STDC_VERSION__ even when compiling in C++ mode.
Fixes https://github.com/libsdl-org/SDL/issues/6078
2022-08-18 16:06:42 -07:00
Sam Lantinga
f1416ef2ba
Updated to version 2.23.2 for release candidate
2022-08-12 20:27:22 -07:00
SDL Wiki Bot
f35bbe0c3f
Sync SDL wiki -> header
2022-08-11 21:11:11 +00:00
Sam Lantinga
3861c557da
Added the hint SDL_HINT_MOUSE_RELATIVE_WARP_MOTION
...
This hint controls whether mouse warping generates motion events in relative mode, and defaults off.
Fixes https://github.com/libsdl-org/SDL/issues/6034
Fixes https://github.com/libsdl-org/SDL/issues/5741
2022-08-11 14:02:03 -07:00
Sam Lantinga
b4c4dd84c2
Added SDL_crc16() to be used in joystick GUIDs after 2.24.0
2022-08-11 09:53:25 -07:00
SDL Wiki Bot
6ecfc40697
Sync SDL wiki -> header
2022-08-10 15:02:11 +00:00
Sam Lantinga
d4192850c1
Added SDL_ResetHint() to reset a hint to the default value
...
Resolves question of how to clear an override hint raised by @pionere in https://github.com/libsdl-org/SDL/pull/5309
2022-08-10 08:01:24 -07:00
Ryan C. Gordon
3119d58ff5
cocoa: Change the new sync_dispatch hint to async_dispatch.
...
This is so the default is safer.
2022-08-10 10:48:23 -04:00
Ryan C. Gordon
bdc7f958fd
cocoa: Added hint to treat MacBook trackpads as touch devices, not mice.
...
Fixes #5511 .
2022-08-10 00:42:31 -04:00
Salman Ahmed
b4660e9d8b
macOS: Add hint for blocking thread on OpenGL context update dispatch ( #5708 )
2022-08-09 20:40:00 -04:00
Sam Lantinga
824f2d4650
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
2022-08-09 13:41:58 -07:00
SDL Wiki Bot
523bedac1a
Sync SDL wiki -> header
2022-08-09 15:48:12 +00:00
Sam Lantinga
aad2df7f0d
Document passing -1 to clear the player index for a controller
2022-08-09 08:47:49 -07:00
Ryan C. Gordon
07b0ec539f
SDL_video.h: Added \since info to new APIs.
2022-08-09 09:05:08 -04:00
Ryan C. Gordon
a35cff634b
Sync wiki -> headers.
...
(bridge got stuck, I'm just kicking it to get it working again, idk.)
2022-08-08 16:07:31 -04:00
Sam Lantinga
98bac00dcc
Add `SDL_GetPointDisplayIndex` and `SDL_GetRectDisplayIndex` and re-implement `SDL_GetWindowDisplayIndex` in terms of `SDL_GetRectDisplayIndex`
...
- This allows looking up the display index for an arbitrary location rather than requiring an active window to do so.
- This change also reimplements the fallback display lookup that found the display with center closest to the window's center to instead find the display rect edge
closest to the window center (this was done in the almost identical display lookup used in SDL_windowsmodes.c, which now uses `SDL_GetPointDisplayIndex`). In
practice this should almost never be hit as it requires the window's center to not be enclosed by any display rect.
2022-08-08 11:26:52 -07:00
Francisco Javier Trujillo Mata
d355ea9981
Add a way to avoid IOP reset
2022-08-08 08:32:38 -07:00
Sam Lantinga
878259722f
Added SDL_GameControllerType enumeration for Nintendo Switch Joy-Con controllers
2022-08-08 08:22:20 -07:00
Sam Lantinga
52bf5b1de9
Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED to control whether the player LED is set on Nintendo Switch controllers
2022-08-06 10:34:19 -07:00
SDL Wiki Bot
bdaf9a92a6
Sync SDL wiki -> header
2022-08-06 13:25:12 +00:00
Ryan C. Gordon
e2452ede66
include: Added documentation to SDL_CaptureMouse about auto-capture.
2022-08-06 09:19:10 -04:00
David Carlier
16e699a761
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.
2022-08-04 08:47:39 -07:00
Sam Lantinga
bcdef4aaf9
Added separate hints for Nintendo Online classic controllers and Joy-Cons
...
This allows them to be enabled/disabled separately from Switch Pro HIDAPI support
2022-08-03 13:07:47 -07:00
Shootfast
60d1944e46
SDL_video: Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR
2022-08-02 15:45:30 -07:00
Daniel Santos
147a71b976
Finish dummy driver
2022-08-02 11:40:31 -07:00
Francisco Javier Trujillo Mata
46f95a7a5f
Create dummy PS2 Video driver
2022-08-02 11:40:31 -07:00
SDL Wiki Bot
75f34fc5bf
Sync SDL wiki -> header
2022-08-02 14:52:12 +00:00
Ryan C. Gordon
307b0b7813
video: Add a warning to the docs about using SDL_GetDisplayDPI.
...
Fixes #5647 .
2022-08-02 10:51:31 -04:00
Sam Lantinga
ce5a23bd57
Applied DragonFly BSD patch
...
https://raw.githubusercontent.com/DragonFlyBSD/DeltaPorts/master/ports/devel/sdl20/dragonfly/patch-include_SDL__endian.h
2022-07-30 16:32:21 -07:00
Sam Lantinga
2241bd669f
Added a command line option `--info event_motion` to show mouse and finger motion events
2022-07-29 20:37:38 -07:00
SDL Wiki Bot
47265f377f
Sync SDL wiki -> header
2022-07-29 13:24:05 +00:00
Anonymous Maarten
f8aa00d198
cmake: add HAVE_STDDEF_H to SDL_config.h.cmake
2022-07-29 15:05:19 +02:00
Sam Lantinga
2fa2f9ff77
Greatly improved Nintendo Joy-Con support using the HIDAPI driver
...
* Added support for mini-gamepad mode for Joy-Con controllers, matching the mapping for hid-nintendo on Linux and iOS 16
* Added the ability to merge left and right Joy-Con controllers into a single Pro-style controller
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_COMBINE_JOY_CONS to control this merging functionality
* Removed the hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS
2022-07-28 19:22:27 -07:00
Ryan C. Gordon
5d85c7d300
kmsdrm: Added a hint to specify device index.
...
Fixes #2811 .
2022-07-26 00:19:54 -04:00
Sam Lantinga
cbb3f4ca37
Add SDL_guid.h to the global SDL header
2022-07-25 19:53:04 -07:00