Sam Lantinga
f47a08ab84
Fixed typo in previous cherry-pick
2023-03-01 16:47:48 -08:00
Sam Lantinga
660fc89967
Don't clobber an existing entry with a different version when adding a gamepad mapping
...
(cherry picked from commit 727c7d4e2f44102bb571180929bfbb5d527f4f27)
2023-03-01 16:41:44 -08:00
Sam Lantinga
6ff3e49b6f
Follow the same pattern for releasing the window data in the UIKit driver
...
Possible fix for https://github.com/libsdl-org/SDL/issues/7361
(cherry picked from commit ebdb32065163b8ee1ef9c1a0dfa601335b4ad83d)
2023-02-28 16:15:01 -08:00
Ryan C. Gordon
e58a8639e3
docs: Removed bogus file from wiki bridge.
...
That was fixed to not do that again by 7e429a13d3
2023-02-28 13:40:35 -05:00
Ryan C. Gordon
5b7b3da701
Sync wiki -> headers.
2023-02-28 12:56:01 -05:00
Ryan C. Gordon
0a0dfdb2f9
wikiheaders: Sort pages before listing them in README/FrontPage.md.
...
(cherry picked from commit 99c38268cd1325bb64739217adbeebaae7ae6a84)
2023-02-28 12:29:21 -05:00
Ryan C. Gordon
8572e19327
wikiheaders: Use Windows endlines in the source, Unix in the wiki.
...
(cherry picked from commit 7745c9b3ae3f2f47e2b3e55399afc5e7b86c0102)
2023-02-28 12:29:16 -05:00
Sam Lantinga
031348d377
Fixed SDL windows getting the maximized state after leaving fullscreen on macOS
...
(cherry picked from commit 2df08fb1b27b721998a1380a2acdbe1494b5591e)
2023-02-28 09:03:10 -08:00
Ryan C. Gordon
462d95ab4d
wikiheaders: ignore wiki's README/FrontPage.md
...
(cherry picked from commit 6d1e14b7924e45937941a64bcaf751e17b41a8e9)
2023-02-28 11:56:20 -05:00
Ryan C. Gordon
a48bb80ea0
wikiheaders: Bridge README files in the docs directory to wiki.
...
Fixes #6026 .
(cherry picked from commit 2506676f34dc9d3e64ab7bbd9c947b8c13364913)
2023-02-28 11:46:46 -05:00
Sam Lantinga
c0fb092425
Fixed locking up the Logitech F310 with the PlayStation controller detection
...
(cherry picked from commit da134a30396e12786c14fe8d1190ab05c67d9dba)
2023-02-28 08:37:18 -08:00
Ryan C. Gordon
37de5d4849
wikiheaders: fixed wikilinks in Markdown code sections.
...
(cherry picked from commit a4796334550da0963ed957829f41b9499a472d73)
2023-02-27 23:08:55 -05:00
Sam Lantinga
715749f578
Added mapping for DualSense Edge Wireless Controller on Linux
...
This is a mapping when using evdev, not the more advanced HIDAPI support.
(cherry picked from commit 206fa4dafb633ed074b930cbb3440a9925c532f2)
2023-02-27 15:21:04 -08:00
David Carlier
0c7346ec3e
USE_DEV_RANDOM close the file descriptor even in the rare case it can't read it
2023-02-26 14:00:32 +03:00
Torge Matthies
711a458be5
x11: Fix duplicate Xinput2 event reception
...
Passing True for owner_events in the XGrabPointer call makes all
XI_RawMotion events appear in the queue twice, with the only difference
between them being the value of XGenericEventCookie::cookie. These have
always been filtered out by a check in the XI_RawMotion handler,
however with a mouse that polls at more than 1 kHz frequency, there
also exist legitimate events that appear indistinguishable from these
duplicated events. These must not be filtered out, otherwise the
pointer may move at an inconsistent speed, appearing like a bad pointer
acceleration implementation.
Change owner_events to False in the XGrabPointer and remove the
duplicate event detection code to fix this.
Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
(cherry picked from commit f18b5656f6f859e4d4e096d290afd9fae884a5b8)
2023-02-25 10:05:43 -08:00
Ryan C. Gordon
171fba320f
wikiheaders: Fix wikilinks inside code sections a little. Not perfect yet.
...
(cherry picked from commit 5b0351a672701e28c3bfb17d44a458b82e8a4175)
2023-02-24 14:30:34 -05:00
Sam Lantinga
ad09976eca
Fixed relative mouse motion over remote desktop
...
Setting the cursor clip area to a single pixel prevents the relative mouse motion remote desktop warping from working, so the mouse is never recentered.
(cherry picked from commit daffe02b117ccd484763eadc716e4d4453c89868)
2023-02-24 09:23:23 -08:00
Ryan C. Gordon
7abb748134
Sync wiki -> headers.
2023-02-24 11:47:13 -05:00
Ryan C. Gordon
858ae9900e
wikiheaders: fixed see-also conversion
...
(cherry picked from commit d748a454a86d6250b724fe94066eb98fbf4eea05)
2023-02-24 11:46:41 -05:00
Ryan C. Gordon
f87f0fe781
wikibridge: Fixes for manpage generation from Markdown format.
...
(cherry picked from commit 5ff49955ab71121ffbc49eb6a7be69707cbd90f3)
2023-02-24 10:22:28 -05:00
Ryan C. Gordon
b3ea81b33f
wikiheaders: Work to make the wiki exist primarily in Markdown format.
...
This adds a means to mass-convert the whole wiki to Markdown as a one-time
operation, and then some fixes to make --copy-to-headers correctly deal with
Markdown-formatted wiki pages.
(cherry picked from commit 936a51d5cc50afd76e291acd36bcb95513ce8919)
2023-02-24 09:48:37 -05:00
Sam Lantinga
3bf9c70a7c
Changed the VID/PID used for the Backbone One controller on iOS
...
(cherry picked from commit 516e48515e32f74aa98a3df4cbdb23b9c477f2f0)
2023-02-23 12:24:49 -08:00
Sam Lantinga
ea7103088f
Added support for the Backbone One PlayStation Edition
...
(cherry picked from commit 59bf1c2853d5b06295c939099f6cf5f1611f70b5)
2023-02-23 11:59:10 -08:00
Sam Lantinga
a3a45f6709
Fixed view frame from flipping back and forth between landscape and portrait on iOS
...
(cherry picked from commit b2d913883c39e0a53e55eb9286d7e442d565554e)
2023-02-23 11:59:00 -08:00
Ozkan Sezer
5a7ea76ed3
fix MSVC build failures in CI after commit 1e5e8e2f
...
(cherry picked from commit a2f8cf8fc0c6f4fe8a904284060f61f19f129efa)
2023-02-22 13:31:44 -05:00
Ryan C. Gordon
9403c9e95a
resampler: Work at double precision on x86-64 machines.
...
We get audio artifacts if we don't work at the higher precision, but
this is painful on CPUs that have to use a software fallback for this,
so for now (that is, until we have a better solution), get better output
on amd64 chips, where the cost is less painful.
(cherry picked from commit 1e5e8e2fda3796e76e6f7b1c39683925a3e9fed9)
2023-02-22 13:29:31 -05:00
Sam Lantinga
13969f8567
De-duplicate Google Stadia controllers on macOS
...
(cherry picked from commit 87a83787a3a0a9922b02b35ba809d9da86930fc8)
2023-02-21 15:35:25 -08:00
Sam Lantinga
9be85b846b
Rumbling the Google Stadia Controller over Bluetooth works on Linux and macOS
...
(cherry picked from commit 4aeec9d8c2ad2fa0465999ecb4fd5c20734f1b27)
2023-02-21 15:07:24 -08:00
Sam Lantinga
35c9b1042f
Fixed the packet size for Xbox One controllers
...
(cherry picked from commit 021a7cfa13c20d518ebfb6e96c3305150256983b)
2023-02-21 12:48:10 -08:00
Sam Lantinga
31a57c05dc
Fixed the share button on the ThrustMaster eSwap PRO Controller Xbox
...
(cherry picked from commit e4face7c1d41698067b9afdd8c7f0a8f76774da2)
2023-02-21 12:43:20 -08:00
Sam Lantinga
3dff5d3cbe
Added support for the Turtle Beach REACT-R and Recon Xbox controllers
...
(cherry picked from commit 5fded632d6fa532ac25e76ad9a676c9ea726dd02)
2023-02-21 11:29:45 -08:00
Sam Lantinga
4c9a79dddb
Removed duplicated conditional
...
(cherry picked from commit 1a15d506a69d5d73a53728c569ef84a69db51833)
2023-02-20 18:26:07 -08:00
Sam Lantinga
7c4f5e1def
Fixed rumble caps for the Nintendo Joy-Con controllers
...
(cherry picked from commit 02cea5fca107991774792c431efc96319ef2d060)
2023-02-20 18:25:57 -08:00
Sam Lantinga
abe8dbbf1c
Added support for the Razer Wolverine V2 controllers
...
(cherry picked from commit 4994654d4f2d5c96a0faa972ebbb6c653f939d56)
2023-02-20 18:25:38 -08:00
Sam Lantinga
0efb31ef32
cocoa/gles: do not unload EGL when context is destroyed
...
(cherry picked from commit e8091b89830c3b9bb19eff76463a6e2525f05fa5)
2023-02-20 10:43:15 -08:00
Marc-André Lureau
eb22fbc894
windows/gles: do not unload EGL when context is destroyed
...
It's legitimate to have multiple contexts.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
(cherry picked from commit 93861e1de00a76080fa6ed756a6bd9c764b3ec07)
2023-02-20 10:42:18 -08:00
Marc-André Lureau
479bc2d5ed
windows/gles: correct indentation
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
(cherry picked from commit 654965a6286ccb3ef861310d0cff578788641091)
2023-02-20 10:41:45 -08:00
Ryan C. Gordon
e6e654e25c
include: Fix symbols in public headers that start with an underscore.
...
Fixes #7352 .
2023-02-20 11:38:26 -05:00
Sam Lantinga
7b06007266
Fixed typo (thanks @Iniquitatis!)
...
(cherry picked from commit ced02319a6bd001c1c2ce85a48887efe3a7b79d8)
2023-02-19 09:58:07 -08:00
Lauri Kasanen
7d55ccb8b0
Fix GetGlobalMouseState when xi2 is not available at runtime
...
(cherry picked from commit 0123d6311d5c0059d617324426ef7eef8d577d9b)
2023-02-19 09:56:39 -08:00
Ozkan Sezer
da6bce4f76
SDL_x11dyn.h: include XInput2.h also for Xfixes
...
Fixes https://github.com/libsdl-org/SDL/issues/7343
2023-02-11 23:51:28 +03:00
Le Philousophe
74e8a6451b
Fix window size in X11 when window manager refuses to resize
...
(cherry picked from commit a67ae8eed57f4545c739e6eb3a4b8c1169d3afbc)
2023-02-18 12:33:18 -08:00
Sam Lantinga
f741adc86c
Added other names for the DragonRise Inc. Wired Wheel (thanks @felimwhiteley!)
...
(cherry picked from commit eede2066fbcc342e96592fbbbfe94b2420feb524)
2023-02-17 11:30:49 -08:00
Anonymous Maarten
817141c162
ci: install pkg-config on Macos runner
...
(cherry picked from commit 86f0c694653eb1f1e91213c7faf3080a96c6375b)
2023-02-17 01:05:00 +03:00
Sam Lantinga
e86f494317
Hold the joystick lock while opening the HID device on non-Android platforms
...
On Windows the main thread can be enumerating DirectInput devices while the Windows.Gaming.Input thread is calling back with a new controller available, and in this case HIDAPI_IsDevicePresent() returned false since the controller initialization hadn't completed yet, creating a duplicate controller.
Fixes https://github.com/libsdl-org/SDL/issues/7304
(cherry picked from commit ece8a7bb8e2dae9cb53115980cea9ef1213a0160)
2023-02-16 09:53:33 -08:00
Sylvain
d948e6c3c5
Fix potential de-referencing null pointer in SDL_EVDEV_kbd_keycode()
2023-02-16 08:23:22 +01:00
Sam Lantinga
e7376b7b74
Fixed Steam Runtime sandbox detection
...
Fixes hotplug issues on Steam Deck for Proton and native games
(cherry picked from commit bcd97b36d23d08226e98a995eafd3d6aa35401b4)
2023-02-15 13:54:50 -08:00
Sam Lantinga
69b2baec5c
Map the Android MENU button back to the SDL MENU key
...
Thanks to @AntTheAlchemist for the investigation!
Fixes https://github.com/libsdl-org/SDL/issues/7318
(cherry picked from commit beb6a2afdc74a00f07ec230297c2675920a7bf79)
2023-02-14 18:04:30 -08:00
Sam Lantinga
2c6995778e
Fixed handling simple mode PS4 reports
...
Fixes https://github.com/libsdl-org/SDL/issues/7270
(cherry picked from commit 5925cd4ef377a2211fd057ef6fa9f41141999cb7)
2023-02-14 17:53:37 -08:00
Ozkan Sezer
22df572979
look for clock_gettime() in libc first, then in librt if not found.
2023-02-13 22:28:02 +03:00