src/joystick


Log

Author Commit Date CI Message
Sam Lantinga a614d8f8 2023-07-08T18:18:22 Fixed mapping BTN_TR2 to right trigger (cherry picked from commit ea60da5b94ed8ec69aad69ca46e81567ab99ed2a) (cherry picked from commit 4b1dd54a56236a41e647f129c6018c78499975b3)
Sam Lantinga bb3997d8 2023-07-08T10:24:00 Added WGI gamepad added/removed listeners for RAWINPUT This fixes WGI correlation on startup when the WGI gamepad list isn't populated yet (cherry picked from commit f047e178b610c6888212c3096c10eb3f64f31a15) (cherry picked from commit f8a0135edfb07ebe7201b764fd0aba42d600b99c)
Sam Lantinga f2d016e3 2023-07-07T14:43:57 Lazily initialize the WGI gamepad support Initializing "Windows.Gaming.Input.Gamepad" will put Bluetooth PS4 controllers into enhanced report mode, which breaks any game using DirectInput. Let's wait to do this until absolutely necessary. (cherry picked from commit 785f57eb9102206e74ac7f9b363a37cbf037cf9d) (cherry picked from commit de849d5e6f23a7621471befb69f1b036bc346f5e)
Sam Lantinga 03512104 2023-07-07T15:55:40 Don't tickle Bluetooth PS4 controllers in simple mode with an effects packet That will put the PS4 controller into enhanced mode, which breaks DirectInput games (cherry picked from commit efed24850af2994802c28f7a257ea17c9ec97d0a) (cherry picked from commit 1f7bc08884f93ede9775cdec5ae1582796fb947c)
Sam Lantinga b8582428 2023-07-08T09:32:24 Added the hint SDL_HINT_JOYSTICK_WGI to control whether to use Windows.Gaming.Input for controllers (cherry picked from commit a6228e7aafb66075fe8f4aaf411314fc92340499)
Sam Lantinga 46927b13 2023-07-07T09:47:03 Prefer using XInput for rumble over WGI, as it allows rumble in the background (cherry picked from commit e16a83d393ae1784040519f42c482e2641b971a2)
Sam Lantinga 3bee5cf5 2023-07-07T09:33:53 Continue running XInput detection while RAWINPUT is active This allows us to re-enable XInput correlation for RAWINPUT devices without reintroducing the controller shutdown bug for controllers using the wireless adapter in https://github.com/libsdl-org/SDL/issues/3468. Fixes https://github.com/libsdl-org/SDL/issues/7940 (cherry picked from commit a0a3957eb65e22721a124476072af0f6f5a7ca18)
Sam Lantinga 7207f515 2023-06-29T16:10:55 Added Linux mapping for the Logitech Chillstream Fixes https://github.com/libsdl-org/SDL/issues/7829 (cherry picked from commit 675fc8c38f3f5685d177f0ecf7f43d57a109992e) (cherry picked from commit fc0854651becb207de28f926e0b84aedbfff8b7b)
Sam Lantinga 4af1f6ed 2023-06-29T11:25:54 Fixed build (cherry picked from commit 099e53f3a51d17155063977d5f4b40d0f07f73a2)
Sam Lantinga 446fb302 2023-06-28T19:15:11 Added support for the Nintendo Online Famicom controllers (cherry picked from commit baa9c57581490bd9cdefabb213e7cb6d0c30b296) (cherry picked from commit 0f940cb6ce350631b53c77360adffe276cad4660)
Sam Lantinga 7fa2ddb0 2023-06-27T07:48:42 Fixed Nintendo Switch Pro controllers that don't have readable user calibration (cherry picked from commit 9ee1200e6f8fecd394d9355781af40ac90851546) (cherry picked from commit 170428b107bdc004eb44fa9818eb14c2aa8798d1)
Narr the Reg 9aca2a43 2023-06-26T10:54:52 hidapi: switch: Handle MCU input reports (cherry picked from commit 425062c123f88b6890277905714e02c9375f5b5e) (cherry picked from commit 950ff0056a74a2cb6f6ff0b5ebaa9c16c305234a)
Sam Lantinga 491fba1d 2023-06-24T15:38:38 SDL_FindFreePlayerIndex() will always return the next available player index Fixes https://github.com/libsdl-org/SDL/issues/7868 (cherry picked from commit 87e916dd214866af9cfd67eb4618918bc8b0f1b4) (cherry picked from commit 38619bb28db83bc5844d13d99b3072496adcd498)
Sam Lantinga c27f3ead 2023-06-21T14:11:41 Removed 100 ms hitch when querying third party Nintendo Switch controllers that don't respond to request for info (cherry picked from commit 8acf72965031a5101f478eccd69d092001134184)
Sam Lantinga 1429e525 2023-06-21T10:28:45 Use default sensor calibration if we can't read it from the Nintendo Switch controller Fixes https://github.com/libsdl-org/SDL/issues/7830 (cherry picked from commit 3694dabe7c16bb8e76f6f4820a1987ce16c4a3c9) (cherry picked from commit dfbdaca2b8a2bc4c7e1871698066b62b42806a46)
Sam Lantinga 333a03f1 2023-06-17T13:15:07 We don't know in advance whether a device is connected over Bluetooth in SDL2
Sam Lantinga 5b8fc907 2023-06-17T12:42:55 Added support for the GameSir G4 Pro We can't read device info or IMU calibration from this controller, and it has no gyro or accelerometer, but is otherwise perfectly functional. (cherry picked from commit f168f9c81326ad374aade49d1dc46f245b20d07a)
Sam Lantinga 3a5abee5 2023-06-14T15:16:21 Removed unused function (cherry picked from commit 73927b09480fd5d664f7077a70a8b6df318cdd2d)
Sam Lantinga e7ee375f 2023-06-14T10:15:06 Fixed third-party Nintendo Switch Pro controllers shutting down when we try to set the home LED. This fixes the PDP Afterglow Wireless Deluxe Controller. (cherry picked from commit 0c16f4faf00eb573d051cac7d60ed8dd22e5596a)
Sam Lantinga 4aec5498 2023-06-13T22:40:51 Allow switching licensed Nintendo Switch Pro controllers into gyro input mode (cherry picked from commit 8c95bd814bf1cf0ea1f12aa724938176a7dfd780)
Sam Lantinga 271e03f0 2023-06-13T22:20:58 Added support for the PowerA Fusion Pro Wireless Controller in Bluetooth mode This controller shows up with a VID/PID of 0, but has full functionality over Bluetooth (cherry picked from commit cdfc0c5a3314e4e0cd5152feddd8950c7eb797f1)
Sam Lantinga 1f5b21ea 2023-06-13T16:53:10 Removed more Linux Xbox mappings in favor of the automatic mapping This fixes the Xbox Series X share button on Linux 5.x kernels. (cherry picked from commit 0f4b15e16b7f07a46db6dc8e651f8c1849d658c5)
Sam Lantinga 35c78849 2023-06-13T16:41:52 Use the automatic mapping instead of a hardcoded one for Xbox controllers on Linux This is much more robust and able to dynamically create a mapping for Xbox One S, Xbox Series X, and Xbox Elite 2 controllers. (cherry picked from commit 9567989eb3ce9c858f0fe76806c5ccad69da89ba)
Sam Lantinga 3f6c4ec6 2023-06-13T16:49:33 Cleanup for previous change, fixing typos, etc. (cherry picked from commit 883b0f4071687f2e5c8329963f97504e9679394b)
Sam Lantinga fc72f12e 2023-06-13T16:40:30 Added automatic mapping support for Xbox controllers on the 6.x Linux kernels This automatically adds support for the share button and paddles when present. (cherry picked from commit db1d4d3d76f5e21b2547463710b513fe0ebd7fad)
Ozkan Sezer 681f67d3 2023-06-14T00:25:50 fixed build after commit d2372c853843def01b7adb9872cbb89b0d6079ec.
Sam Lantinga d2372c85 2023-06-13T10:06:36 Added automatic mapping for Xbox Elite paddles using the xpadneo driver We can't actually tell yet whether a controller has paddles, so this code isn't effective, but I'll file an upstream issue and see if we can get that resolved. (cherry picked from commit b0677f476fa43f4a113b04a959228fd38f95d740)
Sam Lantinga 7db23f4e 2023-06-13T10:05:19 Fixed joystick vendor detection in Linux automatic gamepad mapping (cherry picked from commit 071d1e29dd4f80605932f320aa2e05fda383944c)
Simon McVittie 36ff6327 2023-06-09T13:24:21 linux: Improve gamepad mapping heuristic to accept Android conventions This heuristic for gamepads without a more specific mapping already tried two incompatible conventions for handling triggers: the Linux Gamepad Specification uses hat switch 2 for the triggers (for whatever reason), but the de facto standard set by the drivers for older Xbox and Playstation controllers represents each trigger as the Z-axis of the nearest analog stick. Android documentation encourages Bluetooth gamepad manufacturers to use a third incompatible convention where the left and right triggers are represented as the brake and gas pedals of a driving simulator controller. The Android convention also changes the representation of the right stick: instead of using X and Y rotation as a second pair of axes, Android uses Z position as a second horizontal axis, and Z rotation as a second vertical axis. Try to cope gracefully with all of these. This will hopefully resolve the issue described in #5406 (when using unpatched kernels). Signed-off-by: Simon McVittie <smcv@collabora.com> (cherry picked from commit cf1dc66e2cfc7a65374c5fea681dd31c50363a2c)
Simon McVittie 26a38a0b 2023-06-09T13:06:30 linux: Reduce magic numbers when mapping gamepad axes The bitfield `mapped` has two different sets of meanings, depending whether we're setting up the triggers or the d-pad. Represent them as symbolic constants rather than opaque integers. Signed-off-by: Simon McVittie <smcv@collabora.com> (cherry picked from commit c4d49fadd4500cb522b2a98e5a42d024c566d8bf)
Sam Lantinga c77aaa5d 2023-06-12T15:39:57 Fixed n3ds build (cherry picked from commit d95dbe78bb7a5087ecfb8d301417b1108d868738)
Sam Lantinga e4e0a129 2023-06-12T15:26:34 Reduce the chance of destroying the joystick mutex while it's in use Fixes https://github.com/libsdl-org/SDL/issues/7811 (cherry picked from commit 6390165fd4c193631d6780758a4aeec0d02b90eb)
Sam Lantinga 320f3fff 2023-06-09T18:41:21 Fixed querying device info on the MOBAPAD M073 The query packet needs to contain valid rumble data in order to be accepted by the controller. Fixes https://github.com/libsdl-org/SDL/issues/7788 (cherry picked from commit 5490873daa12a57ff4b36090f25f04530323c6e4)
Sam Lantinga 30b4d90f 2023-06-09T17:34:12 Only update the serial number if it hasn't already been set This fixes the serial number for Nintendo Switch Pro, which is queried from the hardware in device initialization, and was later clobbered by the USB string which isn't correct. (cherry picked from commit 2042e9c4e3cba6ffa9c34abac14828e31365f98b)
Sam Lantinga 1cdd6dc8 2023-06-09T14:34:59 Fixed reading input from the Razer Atrox Arcade Stick using Windows Gaming Input (cherry picked from commit 172cfca51332a845abf9c141ae56aa121fe4ada5)
Sam Lantinga dc94cca8 2023-06-03T11:57:08 Fixed typo in cherry-pick (thanks @HadesD!)
Sam Lantinga 97fe777a 2023-06-03T11:39:03 Steam uses a different VID/PID for the Steam Virtual Gamepad on Windows (cherry picked from commit 6815e75cafee8e7caaacf1f428b6539c8bbc7f7d)
Sam Lantinga f1bad83a 2023-06-03T11:36:38 Revert "Fixed detection of the Steam Virtual Gamepad on macOS" This reverts commit 7aa28ce279045884653c8153a5cee99f4622af10. Steam has been updated to send a version of 1 to avoid conflicts with controllers that report a version of 0.
Sam Lantinga 7aa28ce2 2023-06-02T18:37:45 Fixed detection of the Steam Virtual Gamepad on macOS (cherry picked from commit 5fcd70578bdde3eaaa51aa4ab6c24ed08bd49db3)
Sam Lantinga c89a4606 2023-06-02T11:20:31 Fixed build if SDL_JOYSTICK_RAWINPUT_MATCHING isn't enabled (cherry picked from commit 7c55845c804e2272df8bc111dea5d3e9d11670a0)
Sam Lantinga e3bfacde 2023-06-02T11:16:07 Don't use raw input while Remote Desktop is active Raw input will not send game controller events while Remote Desktop is active, so dynamically switch between XInput and raw input when Remote Desktop state changes. Fixes https://github.com/libsdl-org/SDL/issues/7759 (cherry picked from commit 767507fcf6f4607edb413acb53a6c029863701ed)
Sam Lantinga 9c05098e 2023-06-02T09:38:18 Fixed WGI immediately being correlated with raw input devices with no input The at rest match state is 0x0000008800000000, not 0 (cherry picked from commit e8b5b4881c8eb31bb7de5adef3479305a73fb0bf)
Sam Lantinga 5007b963 2023-05-28T19:23:56 Fixed build warning
Sam Lantinga b2e88ecf 2023-05-28T18:41:21 Disable SDL_JOYSTICK_RAWINPUT_XINPUT Apparently when using the Xbox One Wireless Adapter, using XInput at the same time as raw input will cause the controller to turn off immediately after connecting. This appears to be a bug in the Windows 11 driver stack, but since WGI provides all the extended functionality we need, this can be turned off for now. Fixes https://github.com/libsdl-org/SDL/issues/3468
Sam Lantinga 3f1fd5ab 2023-05-23T10:59:03 Updated source to match SDL function prototype style
Sam Lantinga 78a92b4f 2023-05-22T13:54:15 Fixed duplicate Joy-Con controllers on macOS If both Apple and HIDAPI drivers see the controller, HIDAPI will be preferred. Fixes https://github.com/libsdl-org/SDL/issues/7479 (cherry picked from commit 61ef4efdfae7e384b0d24b1b171a9ee6203a3f0d)
Sam Lantinga 7b2b99a9 2023-05-22T12:41:03 Fixed handling the Saitek P3600, which doesn't use the Xbox 360 controller protocol (cherry picked from commit cf0abf99118f1ea5ba423ce62950e5840db2c649)
Sam Lantinga beca4148 2023-05-19T14:26:37 Undo name change for the controller list (cherry picked from commit f60622c5103e37f221aa8252acfa9073cfbafbc7)
Sam Lantinga 43b12fd9 2023-05-19T14:22:35 Moved the controller list out so it can be included elsewhere (cherry picked from commit 24007b00b2a5e9d09d953db79a24dd51b78e598b)
Sam Lantinga e8ec8ba1 2023-04-27T17:10:44 Added support for the Astro C40 in Xbox 360 mode (cherry picked from commit a4b4dff4a2998699757f12d29fdd4c632db884fe)
Sam Lantinga d42c303b 2023-05-15T21:43:16 Check to make sure the Windows joystick device has buttons and axes This fixes incorrectly detecting the ROG CHAKRAM X mouse as a game controller on Windows 10 (cherry picked from commit 642504bc5993a6acd4d9c1d4c1314c6b1cf6e4e1)
Sam Lantinga f72213c4 2023-04-29T17:09:17 By default, OpenBSD uses Linux controller mappings Fixes https://github.com/libsdl-org/SDL/issues/7609 (cherry picked from commit 255c3b7c82968def667da860cbda01f267b4edf1)
Sam Lantinga 120bc77e 2023-04-19T13:10:39 Report PS3 accelerometer values in m/s2 instead of Gs (cherry picked from commit 0467301baf57389d96fafbe169fb07f4c10169bc)
Sam Lantinga 7ec9a438 2023-04-06T11:33:27 More defensive coding against dangling device pointers (cherry picked from commit acadb6f873acaa0de094ad10a88f877d540ce0ec)
Sam Lantinga cb0cf141 2023-04-06T09:54:04 The latest Armor-X Pro firmware update fixes the sign on the Z axis of the sensors (cherry picked from commit 558bbbb07ae0afa0108c1560915351cfa13442b7)
Sam Lantinga f6363fde 2023-04-05T11:23:28 Fixed crash if joystick->hwdata != NULL && device->driver == NULL This should never happen, but we're seeing it in the wild, so make sure that we can never call into a NULL device driver. (cherry picked from commit e13b74ccf0b20a20bd4baf1617bdc4f84c13feb7)
Ozkan Sezer f6339154 2023-04-05T02:10:56 fix build after commit 22685556e5d9fc2e2a7023075e51b69fe770e64a.
Sam Lantinga 22685556 2023-03-30T07:36:40 Don't probe for PlayStation controllers when we already know the controller type Fixes https://github.com/libsdl-org/SDL/issues/7556 (cherry picked from commit 655a07bdd88d6bd19fe97c3abd39a2e2eef252ec)
Sam Lantinga f444eac5 2023-03-30T07:25:49 Fixed analog triggers on the DualSense controller (cherry picked from commit a67d41050164e447048fa55179cc31b23be9d9b7)
Sam Lantinga c2ee45f5 2023-03-28T15:14:00 The Xinmotek Controller is used in multiple products with different mappings The mapping included here is for the Ultimate Atari Fight Stick (cherry picked from commit f1099f8e70a1284c2ee3031f2ea0cfc84f22110c)
Sam Lantinga 0bf63175 2023-03-28T14:44:28 Fixed gyro values for the Armor-X Pro controller (cherry picked from commit 8df7b4d8539338121b1e34e29f331b28f1f4ff05)
Sam Lantinga d043c853 2023-03-28T12:28:15 Fixed the accelerometer and gyro axes for the Armor-X Pro controller (cherry picked from commit 37517557ae076cd94acd9ca3b739e1f32c150a43)
Anonymous Maarten 1402d135 2023-03-18T20:34:38 video/blit: fix -Wimplicit-fallthrough warnings (cherry picked from commit f7961b7c9ad598b031cd033f19e93c6d882e8e41)
Sam Lantinga 8bfbda1e 2023-03-27T14:27:22 Fixed the accelerometer sensitivity for the Armor-X Pro controller (cherry picked from commit 8029a767eef4147c07cde965bd5a2d2e11e237ee)
Sam Lantinga 93c289b4 2023-03-27T14:21:05 Increased precision for PS4 sensor data conversion (cherry picked from commit 3340864786314d77e04a0dd2bf1ebffbc43bfc31)
Pierre Wendling ed5a343d 2023-03-27T11:51:19 SDL_hidapi_steam.c: Fix compilation under c2x. When N2935 is implemented, the enum breaks compilation. Use a #define of the SDL booleans instead. (cherry picked from commit 975039ce0d3587c42e11f2922240957fc8f74166)
Sam Lantinga b57a6a1a 2023-03-16T20:01:45 Added gamepad mapping for Flydigi Vader 2 with the latest firmware (6.0.4.9) (cherry picked from commit ed0937598e0a637a1033c90a1b31886537bb288c)
Sam Lantinga 57ae9f46 2023-03-13T19:56:42 Ignore the PS4 packet CRC if it's not being set correctly This fixes handling the 8BitDo SN30 Pro with the 2.00 firmware in PS4 mode Fixes https://github.com/libsdl-org/SDL/issues/7270 (cherry picked from commit 3951cae4a56fddcb42ce4141a6518c97fa9125cd)
Rudolf Polzer dca3fd83 2023-03-11T12:02:17 Android: indicate gamepaddb entries where axis order changed. Axis order was changed in 6f1f586086a18ab32ddccc05e4616aac02774a1b to improve default mappings. (cherry picked from commit de3909a190f6e1a3f11776ce42927f99b0381675)
Sam Lantinga ab167038 2023-03-10T15:28:22 Added support for the trigger buttons on the Victrix Pro FS for PS5 (cherry picked from commit 8d7e61ea42364c256b76e7f6f2b6d6f90742bcb7)
Sam Lantinga 71dc7169 2023-03-09T17:18:40 Added header for SDL_Delay()
Sam Lantinga 1e6ffc62 2023-03-09T16:11:53 Removed a duplicate delay accidentally added during code refactor (cherry picked from commit 926db1bd544364a9e4ab61e60bcfbe75e05adf56)
Sam Lantinga 3f00fa16 2023-03-09T16:10:04 Wait for the GCController framework to see IOKit devices It occasionally takes a few millseconds for the GCController framework to handle the device notification and set up the device Fixes the duplicate controller issue in https://github.com/libsdl-org/SDL/issues/6686 (cherry picked from commit 645823fc901c98b688512d3b3e70cc8922e8140c)
Sam Lantinga 0d763800 2023-03-09T15:10:00 Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!) (cherry picked from commit c6443d86c92e962683a1efe5f123a144988875b5)
Lokathor cfd6b34b 2023-03-08T17:18:50 Make mappings for "Retrolink SNES Controller" with `SDL_GAMECONTROLLER_USE_BUTTON_LABELS` both on and off I've only tested this on windows, but I went ahead and made the same changes for linux and mac because I assumed it's the same there and that we'd want to keep the three platforms in sync. (cherry picked from commit b8bc4a234b93efa7a28c7fd7d524d905d9b76e6d)
Ozkan Sezer a70964aa 2023-03-08T20:00:50 fix SDL_FindFreePlayerIndex so it can really return -1.
Sam Lantinga 35c13196 2023-03-08T08:40:38 Fixed uninitialized variable
Sam Lantinga 8fc10ac9 2023-03-06T15:36:49 Added mapping for the Xbox Elite Core controller connected via Bluetooth on Android (cherry picked from commit d08338ddc5bb3cae1e4ce06201a2cd3c53215aa0)
divVerent 91ad208d 2023-03-06T18:33:18 Fix Xbox One gamepad axis assignment on SDL_JOYSTICK_ANDROID API (#7405) (cherry picked from commit 6f1f586086a18ab32ddccc05e4616aac02774a1b)
Sam Lantinga f47a08ab 2023-03-01T16:47:48 Fixed typo in previous cherry-pick
Sam Lantinga 660fc899 2023-03-01T16:38:48 Don't clobber an existing entry with a different version when adding a gamepad mapping (cherry picked from commit 727c7d4e2f44102bb571180929bfbb5d527f4f27)
Sam Lantinga c0fb0924 2023-02-28T08:36:31 Fixed locking up the Logitech F310 with the PlayStation controller detection (cherry picked from commit da134a30396e12786c14fe8d1190ab05c67d9dba)
Sam Lantinga 715749f5 2023-02-27T15:19:34 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)
Sam Lantinga 3bf9c70a 2023-02-23T12:24:15 Changed the VID/PID used for the Backbone One controller on iOS (cherry picked from commit 516e48515e32f74aa98a3df4cbdb23b9c477f2f0)
Sam Lantinga ea710308 2023-02-23T11:57:48 Added support for the Backbone One PlayStation Edition (cherry picked from commit 59bf1c2853d5b06295c939099f6cf5f1611f70b5)
Sam Lantinga 13969f85 2023-02-21T15:31:32 De-duplicate Google Stadia controllers on macOS (cherry picked from commit 87a83787a3a0a9922b02b35ba809d9da86930fc8)
Sam Lantinga 9be85b84 2023-02-21T15:05:57 Rumbling the Google Stadia Controller over Bluetooth works on Linux and macOS (cherry picked from commit 4aeec9d8c2ad2fa0465999ecb4fd5c20734f1b27)
Sam Lantinga 35c9b104 2023-02-21T12:47:33 Fixed the packet size for Xbox One controllers (cherry picked from commit 021a7cfa13c20d518ebfb6e96c3305150256983b)
Sam Lantinga 31a57c05 2023-02-10T16:46:21 Fixed the share button on the ThrustMaster eSwap PRO Controller Xbox (cherry picked from commit e4face7c1d41698067b9afdd8c7f0a8f76774da2)
Sam Lantinga 3dff5d3c 2023-02-06T20:14:12 Added support for the Turtle Beach REACT-R and Recon Xbox controllers (cherry picked from commit 5fded632d6fa532ac25e76ad9a676c9ea726dd02)
Sam Lantinga 4c9a79dd 2023-02-20T18:24:52 Removed duplicated conditional (cherry picked from commit 1a15d506a69d5d73a53728c569ef84a69db51833)
Sam Lantinga 7c4f5e1d 2023-02-20T17:14:18 Fixed rumble caps for the Nintendo Joy-Con controllers (cherry picked from commit 02cea5fca107991774792c431efc96319ef2d060)
Sam Lantinga abe8dbbf 2023-02-20T15:14:20 Added support for the Razer Wolverine V2 controllers (cherry picked from commit 4994654d4f2d5c96a0faa972ebbb6c653f939d56)
Sam Lantinga f741adc8 2023-02-17T11:29:27 Added other names for the DragonRise Inc. Wired Wheel (thanks @felimwhiteley!) (cherry picked from commit eede2066fbcc342e96592fbbbfe94b2420feb524)
Sam Lantinga e86f4943 2023-02-16T09:50:04 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)
Sam Lantinga 69b2baec 2023-02-14T18:02:12 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)
Sam Lantinga 2c699577 2023-02-14T17:51:16 Fixed handling simple mode PS4 reports Fixes https://github.com/libsdl-org/SDL/issues/7270 (cherry picked from commit 5925cd4ef377a2211fd057ef6fa9f41141999cb7)
Sam Lantinga 7285f0d4 2023-02-10T17:18:02 Sorted controller list (cherry picked from commit 68e2f230662a0b3f2ce7c0085f781f1652901af3)
Alfredo Escobar ca3468cb 2023-01-30T16:08:52 Add Hori Pokken Tournament DX Pro Pad (cherry picked from commit 76552e4780a57f24ec1cd77fb942b7cabe1219d8)
Sylvain 17515f4a 2023-02-04T15:51:37 Backport simplify flags PR #7220