Mathieu Eyraud
8e604a5f12
Fix error handling in X11_SetWindowTitle
...
X11_XChangeProperty return 1 on success.
2021-07-25 14:51:33 -07:00
Jaylon Gowie
bc3b98f3ed
Replace with SDL_SendKeyboardKeyAutoRelease
2021-07-25 07:41:30 -07:00
Jaylon Gowie
5cd37c0a7b
Add Enter Key support to PSVita IME keyboard
2021-07-25 07:41:30 -07:00
Sam Lantinga
10ec4c8671
Added support for the PowerA Nintendo Switch Spectra Controller
2021-07-24 22:11:22 -07:00
Sam Lantinga
3c9559f765
Don't try to rumble third-party Nintendo Switch Pro controllers
...
Sending rumble to the PowerA Spectra Nintendo Switch controller hangs input reports for a couple of seconds.
2021-07-24 19:43:56 -07:00
Sam Lantinga
cc19b13bc3
Fixed missing return statement
2021-07-24 19:21:29 -07:00
Cameron Cawley
89bdc6ba1d
Fix MSVC builds in paths with spaces
2021-07-24 16:06:54 -07:00
Cameron Cawley
b0daa9f1db
Automatically select the default platform toolset for MSVC builds
2021-07-24 16:06:54 -07:00
Sam Lantinga
d4ac6b5ed9
Detect buffer overflow when getting DirectInput device state
...
This fixes bug https://github.com/libsdl-org/SDL/issues/4528
2021-07-24 15:58:33 -07:00
Sam Lantinga
3b85e3fdfc
Fixed internal Windows key state when using Windows+Space or Windows+G shortcuts
...
This fixes bugs:
https://github.com/libsdl-org/SDL/issues/4369
https://github.com/libsdl-org/SDL/issues/4500
2021-07-24 15:47:11 -07:00
Sam Lantinga
03c19efbd1
Added support for multiple seats with touch input on Wayland
...
This fixes bug https://github.com/libsdl-org/SDL/issues/4517
2021-07-24 15:25:50 -07:00
Sam Lantinga
ff1b5e1bf7
Implemented the window flash operations for X11
2021-07-24 15:11:36 -07:00
Ryan C. Gordon
5ae0dd4b52
joystick: Split out Linux opening code for reuse by querying code.
...
This prevents an assertion whem LINUX_JoystickGetGamepadMapping tried to
open the stick temporarily and messed with global state by doing so. Now
the global state is only set in LINUX_JoystickOpen, but the common code
is shared by both interfaces.
Fixes #4198 .
2021-07-24 17:48:26 -04:00
Cameron Cawley
6c92bf540c
Add more filters to the MSVC project
2021-07-24 14:11:36 -07:00
Sam Lantinga
f1633127d1
Added a window flash operation to be explicit about window flash behavior
2021-07-24 13:42:19 -07:00
Joel Linn
b2c8d3e9e4
audiocvt: 5.1 to Stereo conversion utilizing AVX
2021-07-24 15:39:17 -04:00
Joel Linn
20eea021c6
Windows: set HAVE_IMMINTRIN_H for AVX intrinsics
2021-07-24 15:39:17 -04:00
Joel Linn
638befc1a9
audiocvt: 5.1 to Stereo conversion utilizing SSE
2021-07-24 15:39:17 -04:00
Joel Linn
db56526f14
audiocvt: Replace divisions
...
Division is expensive and the compiler can not replace it themselves.
Though we now we will be ok in terms of floating point edge behaviour.
2021-07-24 15:39:17 -04:00
Sam Lantinga
e1c3a25034
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
2021-07-24 12:11:27 -07:00
Sam Lantinga
09d1cea733
Use the new controller type for the Luna and Stadia controllers
2021-07-24 11:15:09 -07:00
Sam Lantinga
2147e7bfea
Sorted the hints alphabetically
2021-07-24 11:01:58 -07:00
Sam Lantinga
808c3ae612
Allow mapping Android controllers that just have a D-PAD and face buttons
...
This fixes bug https://github.com/libsdl-org/SDL/issues/4327
2021-07-24 10:37:42 -07:00
SDL Wiki Bot
856c87fc2e
Sync wiki -> header
2021-07-24 17:32:05 +00:00
Sam Lantinga
d89f4b3ae4
Note that mouse warping doesn't work over Microsoft Remote Desktop
...
Fixes the documentation portion of bug https://github.com/libsdl-org/SDL/issues/4206
2021-07-24 10:29:34 -07:00
Sam Lantinga
94b7a87645
Added SDL_GameControllerType enumerations for the Amazon Luna and Google Stadia controllers
...
Fixes bug https://github.com/libsdl-org/SDL/issues/4019
2021-07-24 09:10:18 -07:00
Ryan C. Gordon
6956f4aa19
cmake: use CMAKE_INSTALL_LIBDIR instead of hardcoding "lib", etc.
...
These came from HaikuPorts, specifically this patchset:
462947dd4f/media-libs/libsdl2/patches/libsdl2-2.0.14.patchset
This is just the part that is _not_ Haiku-specific. I wanted this in a
separate commit though, since I'm not really a CMake expert; if this causes
problems and we need to bisect to it, we won't be confused about it being a
Haiku issue when we get here.
Fixes #4092 .
(and probably others.)
2021-07-24 11:06:40 -04:00
Ryan C. Gordon
403afdb558
cmake: Haiku fixes.
...
These came from HaikuPorts, specifically this patchset:
462947dd4f/media-libs/libsdl2/patches/libsdl2-2.0.14.patchset
This is just the Haiku-specific bits; the more general parts about install
dirs will be split into a different commit here.
Reference issue #4092 .
2021-07-24 11:02:27 -04:00
Sam Lantinga
7d8f34cb71
Updated .gitignore from @Zangetsu38 - thanks!
2021-07-24 01:19:58 -07:00
german77
e6e8fe6d4e
hidapi_switch: Implement analog rumble
2021-07-24 01:06:05 -07:00
Sam Lantinga
669714cafe
Added the ThrustMaster T.16000M as a flightstick
2021-07-23 23:51:35 -07:00
Sam Lantinga
384d86b584
Fixed compile warnings with Visual Studio
2021-07-23 23:48:23 -07:00
Sam Lantinga
adb75d642c
Fixed hotplug detection not working on UWP or when SDL isn't pumping Windows events
...
This fixes bugs:
https://github.com/libsdl-org/SDL/issues/4321
https://github.com/libsdl-org/SDL/issues/4147
Thanks to DJm00n for the suggestion!
2021-07-23 23:45:18 -07:00
Sebastian Krzyszkowiak
7b0092db6a
vita: touch: Mark the back panel as an indirect absolute touch device
...
It's not a touchscreen, but an additional touch panel on the back of
the device.
2021-07-23 16:40:34 -07:00
Sam Lantinga
422b053b96
Added support for the full line of current PowerA Xbox Series X controllers
2021-07-23 16:32:35 -07:00
SDL Wiki Bot
7edffc5798
Sync wiki -> header
2021-07-23 18:29:04 +00:00
Ryan C. Gordon
9632fb3369
README-dynapi.md: Cleaned up markdown formatting.
2021-07-23 12:48:28 -04:00
SDL Wiki Bot
c06448fe39
Sync wiki -> header
2021-07-23 16:39:05 +00:00
SDL Wiki Bot
48993a7f2a
Sync wiki -> header
2021-07-23 16:14:49 +00:00
Ozkan Sezer
15ed665363
Fixes to kmsdrm dynamic loading support.
...
Fixes: https://github.com/libsdl-org/SDL/issues/4520
2021-07-22 20:50:02 +03:00
Jaylon Gowie
48bbe31bc6
Add PreSwapCallback for updating SceCommonDialog
2021-07-21 09:41:10 -07:00
Jaylon Gowie
9c1306bc5e
Add elgext.h header
2021-07-21 09:41:10 -07:00
meyraud705
4ada14a267
Replace libc functions to SDL equivalent in wayland video subsystem
...
Wayland video subsystem uses a mix of libc and SDL function.
This patch switches libc functions to SDL ones and fixes a mismatch in memory
allocation/dealoccation of SDL_Cursor in SDL_waylandmouse.c (calloc on line 201
and SDL_free on line 313) which caused memory corruption if custom memory
allocator where provided to SDL.
2021-07-21 09:28:38 -07:00
Ivan Epifanov
f806064e7e
Remove 'support' for rgb/bgr textures, that was causing issues with them
2021-07-19 10:14:13 -04:00
Niklas Haas
d6641d7123
kmsdrm: Explicitly set the surface transform and alpha mode
...
This is required by the specification. Set these to sensible defaults.
Fixes a validation layer error that occurs otherwise.
2021-07-19 10:12:54 -04:00
Niklas Haas
760074270a
kmsdrm: Properly zero-initialize CreateInfo structs
...
As written, these contain undefined stack contents, which in practice
causes crashes/hangs and/or triggers the validation layers (they
complain about `pNext` and `flags` not being NULL).
2021-07-19 10:12:54 -04:00
Cameron Gutman
9170c0c7f8
CI: Add Windows ARM64 builds
2021-07-15 17:10:50 -07:00
Ryan C. Gordon
37d4f003b7
doxygen: Removed some cruft that accumulated during wiki migration.
2021-07-14 17:09:05 -04:00
Ryan C. Gordon
c07e5e99c8
wikiheaders.pl: Add --copy-to-header option.
...
...because I keep mistyping it without the 's' on the end. :/
2021-07-14 17:07:41 -04:00
Ryan C. Gordon
c88eb7a896
Sync wiki -> header.
2021-07-14 17:07:04 -04:00