Sam Lantinga
8236e01a9f
Updated to version 2.30.12 for release
2025-02-01 15:56:51 -08:00
Sam Lantinga
de1616baee
Don't filter out controllers when launched by Steam under Proton
...
Fixes https://github.com/libsdl-org/SDL/issues/11579
Fixes https://github.com/libsdl-org/SDL/issues/12106
(cherry picked from commit 3060105cfa )
(cherry picked from commit 482d964733 )
2025-01-31 15:41:09 -08:00
Sam Lantinga
964b9da519
Fixed detecting Steam Deck controller on Proton 9.04
...
Newer versions of Proton properly pass through the Steam virtual gamepad VID/PID, but older Proton (9.x and older) don't, so we have to rely on Steam and Proton hiding controllers we shouldn't have access to.
Fixes https://github.com/libsdl-org/SDL/issues/12106
(cherry picked from commit da0cf3f634 )
2025-01-31 15:34:19 -08:00
Sam Lantinga
364abb8702
Improved XInput controller detection
...
Sometimes we'll get a Windows.Gaming.Input callback before the raw input device is even in the list, so try some other methods to better detect XInput devices.
(cherry picked from commit 55a75875f0 )
2025-01-31 08:46:09 -08:00
Sam Lantinga
97002d81a7
Skip IsRegularFileOrPipe() check on Emscripten
...
The sandbox guarantees that this will be true.
Fixes https://github.com/libsdl-org/SDL/issues/12108
(backported from from commit 1c7cc60286 )
(cherry picked from commit 0efe8892d6 )
2025-01-28 05:14:59 -08:00
Sam Lantinga
72a9e5edad
Added support for the 8BitDo Ultimate 2C Wireless in Bluetooth mode
...
Closes https://github.com/libsdl-org/SDL/pull/11415
(cherry picked from commit c7d1fd90ea )
(cherry picked from commit 4b19f7e012 )
2025-01-18 07:07:33 -08:00
Sam Lantinga
48f21f434f
Fixed detection of function keys on Emscripten
...
Fixes https://github.com/libsdl-org/SDL/issues/11973
(cherry picked from commit 67382e9c83 )
(cherry picked from commit 9f25821ffd )
2025-01-16 07:32:53 -08:00
Sam Lantinga
5d3a382eb7
Fixed potentially overlapping memcpy() to use memmove()
...
(cherry picked from commit 91b76f5c29 )
2025-01-14 14:34:52 -08:00
Sam Lantinga
fa24d868ac
Updated to version 2.30.11 for release
2025-01-01 09:09:38 -08:00
Sam Lantinga
c38a40eff9
Fixed N3DS_TOUCH_ID, 0 is an invalid touch ID
...
(cherry picked from commit adb51845af )
2025-01-01 09:07:08 -08:00
Sam Lantinga
439bb5377c
Revert "Backed out Vita touch ID change for SDL2"
...
This reverts commit a326ebce61 .
It turns out that 0 is an invalid touch ID for SDL2, per the documentation for SDL_GetTouchDevice()
(cherry picked from commit 5a25183b39 )
2025-01-01 09:07:08 -08:00
Sam Lantinga
e38ea9df0c
Backed out Vita touch ID change for SDL2
...
0 is still a valid touch ID in SDL2 and shouldn't be changed at this point
(cherry picked from commit a326ebce61 )
2025-01-01 08:25:25 -08:00
Sam Lantinga
6955c981bc
Updated copyright for 2025
2025-01-01 07:48:45 -08:00
Sam Lantinga
ea873d322a
Don't overwrite non-CRC gamepad mapping with a new mapping that specifies a CRC
...
Fixes https://github.com/libsdl-org/SDL/issues/11723
(cherry picked from commit 1413bfb185 )
(cherry picked from commit ddfdb0ca7b )
2024-12-26 20:21:00 -08:00
Sam Lantinga
1c3ad751de
Corrected CoreAudio surround sound channel layouts
...
Fixes https://github.com/libsdl-org/SDL/issues/11709
(cherry picked from commit b2178857dc )
(cherry picked from commit 348bb53cc1 )
2024-12-24 15:11:16 -08:00
Sam Lantinga
eccd76a6ac
Allow rendering during the modal resize loop on macOS
...
Fixes https://github.com/libsdl-org/SDL/issues/11508
(cherry picked from commit 9a43c08146 )
(cherry picked from commit 884c8b684a )
2024-12-23 11:56:15 -08:00
Sam Lantinga
e305da0baf
Enable high refresh rates on iOS
...
Fixes https://github.com/libsdl-org/SDL/issues/7518
(cherry picked from commit 835b6e0c1a )
(cherry picked from commit 974098464f )
2024-12-18 14:43:50 -08:00
Sam Lantinga
ca8e33375b
Fixed crash if the controller product name is NULL
...
This happens when the Razer Synapse software emulates a controller with a keyboard
(cherry picked from commit 7117d545a3 )
(cherry picked from commit 7f880c9121 )
2024-12-17 16:55:36 -08:00
Sam Lantinga
5b3ce972e0
Fixed Chinese locales on PSP (thanks @ccawley2011!)
...
(cherry picked from commit 962268ca21 )
(cherry picked from commit 9791069d78 )
2024-12-10 14:48:31 -08:00
Sam Lantinga
826c56b67c
Updated to version 2.30.10 for release
2024-12-06 14:35:53 -08:00
Sam Lantinga
6d9ab4c984
Fixed potential buffer overflow
...
(cherry picked from commit 6aab5a089d )
(cherry picked from commit e539135104 )
2024-12-03 08:34:49 -08:00
Sam Lantinga
1bb627514d
Fixed build
...
(cherry picked from commit a5da9be5e6 )
2024-11-25 05:01:04 +03:00
Sam Lantinga
ad602924a4
Support multiple joystick buttons bound to the same gamepad button
...
(cherry picked from commit ed943318e2 )
(cherry picked from commit 74ff82f4a2 )
2024-11-05 11:52:07 -08:00
Sam Lantinga
c98c4fbff6
Updated to version 2.30.9 for release
2024-11-01 14:24:51 -07:00
Sam Lantinga
4d4f004968
Fixed the PS5 controller face buttons on Amazon Fire TV, Android 11
...
(cherry picked from commit 09495059df )
(cherry picked from commit 3b7a45853c )
2024-10-30 05:24:08 -07:00
Sam Lantinga
5d7a023430
Revert "aaudio: Set low-latency audio mode."
...
This reverts commit 1e016fd5ea .
In order to use low latency mode, you need to set low latency callbacks. This has always been recommended and is apparently required on Android 15. SDL3 has these implemented correctly but SDL2 does not, so we should revert this for now.
Fixes https://github.com/libsdl-org/SDL/issues/11376
(cherry picked from commit d2b9ecd281 )
2024-10-29 22:36:54 -07:00
Sam Lantinga
7107e02315
Only use Steam Virtual Gamepads if we're running under Steam
...
Fixes https://github.com/libsdl-org/SDL/issues/11214
Fixes https://github.com/libsdl-org/SDL/issues/11215
(cherry picked from commit 8a30def5f2 )
(cherry picked from commit b6fa4dc794 )
2024-10-16 17:53:01 -07:00
Sam Lantinga
062a777240
Added support for the Steam Virtual Gamepad on macOS Sequoia
...
(cherry picked from commit d7b1ba1bfc )
(cherry picked from commit cfb3db01dc )
2024-10-16 17:53:01 -07:00
Sam Lantinga
2638809c50
Fixed typo in SDL_audio.h
...
(cherry picked from commit da4608ed03 )
2024-10-10 08:50:19 -07:00
Sam Lantinga
63aff8e3d0
Added support for wired XBox controllers on macOS 15.0 Sequoia
...
Fixes https://github.com/libsdl-org/SDL/issues/11002
(cherry picked from commit 7da728a642 )
(cherry picked from commit da19244f7f )
2024-10-07 16:41:47 -07:00
Sam Lantinga
7eebc2ad4d
Fixed detecting the Steam Virtual Gamepad on macOS
...
(cherry picked from commit bb33eb409e )
2024-10-07 16:22:03 -07:00
Sam Lantinga
e9f5f3ac1f
Updated to version 2.30.8 for release
2024-10-01 09:25:57 -07:00
Sam Lantinga
235c87dc92
Don't use BlitARGBto555PixelAlpha() for SDL_PIXELFORMAT_ARGB1555
...
This didn't properly take into account destination alpha.
Fixes https://github.com/libsdl-org/SDL/issues/8401
(cherry picked from commit 1aea43846e )
(cherry picked from commit c9f3cbe02f )
2024-09-25 21:58:42 -07:00
Sam Lantinga
00a7191f67
SDL_XINPUT_Enabled() returns false until XInput DLL is successfully loaded
...
We make sure we initialize XInput first, so that anything checking whether it's enabled gets a valid result based on whether we were able to load it or not.
(cherry picked from commit 8f46cb771c )
(cherry picked from commit f5ed158d1f )
2024-09-06 11:24:58 -07:00
Sam Lantinga
d53b22e8f0
Fixed race condition at startup that could cause a crash in the XInput driver
...
(cherry picked from commit 6d7c211faf )
(cherry picked from commit 5aadfd4eaf )
2024-09-06 10:38:16 -07:00
Sam Lantinga
e5bb4fa90f
Fixed memory leak in testthread
...
(cherry picked from commit dfe6efcd2d )
(cherry picked from commit 224a37faab )
2024-09-05 07:20:05 -07:00
Sam Lantinga
ba9b075eba
Use atomic variables for thread communication
...
Fixes https://github.com/libsdl-org/SDL/issues/10711
(cherry picked from commit a0f36fb85b )
(cherry picked from commit a75227aaeb )
2024-09-05 07:19:09 -07:00
Sam Lantinga
85b2733324
Make newer DRM and GBM functions optional
...
Fixes https://github.com/libsdl-org/SDL/issues/10675
(cherry picked from commit d501f6db07 )
(cherry picked from commit 10b4a79379 )
2024-09-02 13:08:47 -07:00
Sam Lantinga
9519b9916c
Updated to version 2.30.7 for release
2024-09-01 08:11:12 -07:00
Sam Lantinga
948196448f
Added support for the Retro-bit Controller in PS3 mode
...
Fixes https://github.com/libsdl-org/SDL/issues/10557
(cherry picked from commit e75175129f )
(cherry picked from commit 0de601dc64 )
2024-08-19 16:50:00 -07:00
Sam Lantinga
6f7aa1e755
Use drmModeAddFB() if drmModeAddFB2WithModifiers() fails
...
Fixes https://github.com/libsdl-org/SDL/issues/10276
(cherry picked from commit 8e99ec34bb )
(cherry picked from commit b360214950 )
2024-08-15 11:54:06 -07:00
Sam Lantinga
95aed34a69
Fixed build
...
(cherry picked from commit 70890b175e )
2024-08-13 09:36:36 -07:00
Sam Lantinga
f75b0aa814
kmsdrm: free the connector when looking for available devices
...
Fixes https://github.com/libsdl-org/SDL/issues/10499
(cherry picked from commit 1a57ea7fba )
(cherry picked from commit a5bff78d81 )
2024-08-08 09:30:33 -07:00
Sam Lantinga
403f87340f
Fixed crash when the current mouse capture window is destroyed
...
Fixes https://github.com/libsdl-org/SDL/issues/10494
(cherry picked from commit 91d97a367e )
(cherry picked from commit 5ca0639a42 )
2024-08-07 12:36:04 -07:00
Sam Lantinga
07cfc34a2e
Added detail about why a file couldn't be opened (thanks mgerhardy!)
...
Fixes https://github.com/libsdl-org/SDL/issues/10484
(cherry picked from commit 1512013320 )
2024-08-06 05:46:37 -07:00
Sam Lantinga
1e2aa2363b
Implemented left-justification in SDL_PrintString()
...
Fixes https://github.com/libsdl-org/SDL/issues/10310
(cherry picked from commit f59d66f4b1 )
(cherry picked from commit 2efbe7fa3f )
2024-08-04 20:07:06 -07:00
Sam Lantinga
ba2f78a006
Updated to version 2.30.6 for release
2024-08-01 14:16:41 -07:00
Sam Lantinga
dcbdf09709
Fixed macOS build
...
(cherry picked from commit 230f1debd0 )
2024-08-01 14:15:16 -07:00
Sam Lantinga
a9b11980d2
Fixed building on macOS with OpenGL disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/6226
(cherry picked from commit 0b6eff4167 )
2024-08-01 14:04:27 -07:00
Sam Lantinga
906d0e9c03
Fixed crash with joystick rumble after disconnection
...
This prevents continuing a rumble after the first one fails, and fixes a long standing crash issue if rumble is started immediately before the controller is disconnected.
Thanks to @AntTheAlchemist for the key bug report that showed what was happening here.
Fixes https://github.com/libsdl-org/SDL/issues/10422
(cherry picked from commit 0a924b185d )
(cherry picked from commit 7fdf794377 )
2024-07-29 13:51:22 -07:00
Sam Lantinga
0952ab1ab9
Fixed whitespace
...
(cherry picked from commit 67b973b5fa )
(cherry picked from commit 15c73f5bfe )
2024-07-29 12:52:54 -07:00
Sam Lantinga
2d1ebf4850
Make sure SDL subsystems are initialized before starting threads
...
(cherry picked from commit b057159db7 )
2024-07-12 09:11:38 -07:00
Sam Lantinga
44ec2027f3
Make sure timers are initialized before any threads start
...
This prevents race conditions and divide by zero if multiple threads start using the time functions simultaneously.
(cherry picked from commit b378bc5c83 )
2024-07-12 08:02:09 -07:00
Sam Lantinga
000da98663
Fixed OS/2 build
...
(cherry picked from commit b13dcf24d6 )
2024-07-11 13:56:11 -07:00
Sam Lantinga
87ba287f81
Added TLS initialization and shutdown functions
...
Fixes https://github.com/libsdl-org/SDL/issues/8576
(cherry picked from commit b517043936 )
(cherry picked from commit 551164812a )
2024-07-11 13:10:40 -07:00
Sam Lantinga
802351be25
Fixed build
...
(cherry picked from commit 026dfc6305 )
2024-07-08 11:39:25 -07:00
Sam Lantinga
d3765b27c2
Make sure we're actually running on Windows before using D3D renderers
...
(cherry picked from commit e22c89536a )
2024-07-08 11:29:29 -07:00
Sam Lantinga
de4573275a
Improved detection of Nintendo Switch Pro controller report mode
...
Fixes https://github.com/libsdl-org/SDL/issues/10182
(cherry picked from commit 4ba2e9f4f4 )
(cherry picked from commit 4c44450258 )
2024-07-06 05:30:41 -07:00
Sam Lantinga
2cdb419a21
Try to create an accelerated renderer for the window surface even if SDL_HINT_RENDER_DRIVER is "software"
...
This case is properly handled inside SDL_CreateWindowTexture()
Fixes https://github.com/libsdl-org/SDL/issues/10155
(cherry picked from commit c7ed78a9ef )
(cherry picked from commit a4cbba1276 )
2024-07-05 08:23:39 -07:00
Sam Lantinga
2eef7ca475
Updated to version 2.30.5 for release
2024-07-03 14:21:42 -07:00
Sam Lantinga
d126e7bbba
Added support for the ROG RAIKIRI
...
(cherry picked from commit a04596c9a7 )
(cherry picked from commit 845ebbbe96 )
2024-07-03 13:54:52 -07:00
Sam Lantinga
e5024fae3d
If a mapping specifies a crc, don't match for controllers that don't have that CRC
...
The CRC is used to distinguish between different controllers that have the same VID/PID, so if the CRC doesn't match, it's probably a different controller that we don't know about.
Fixes https://github.com/libsdl-org/SDL/issues/9265
(cherry picked from commit 30e93b40c2 )
(cherry picked from commit b8daf14fe5 )
2024-07-03 13:25:13 -07:00
Sam Lantinga
ed441c8289
Turn HIDAPI joystick support off by default on mobile platforms
...
On Android, HIDAPI prompts for permissions and acquires exclusive access to the device, and on Apple mobile platforms it doesn't do anything except for handling Bluetooth Steam Controllers.
Fixes https://github.com/libsdl-org/SDL/issues/9241
(cherry picked from commit e3cf2e4794 )
(cherry picked from commit 66054a6515 )
2024-07-03 13:23:04 -07:00
Sam Lantinga
80d36aba5b
Only use the default gamepad mapping if an automatic mapping isn't available
...
Fixes https://github.com/libsdl-org/SDL/issues/10162
(cherry picked from commit 0f8054cf87 )
(cherry picked from commit cd8ea5e3f1 )
2024-07-03 11:47:46 -07:00
Sam Lantinga
e1e36d213b
Fixed build
...
(cherry picked from commit 288aea3b40 )
2024-06-29 11:22:48 -07:00
Sam Lantinga
5c8d92e4d0
Respect SDL_HINT_RENDER_DRIVER when creating an accelerated window surface
...
Fixes https://github.com/libsdl-org/SDL/issues/10061
(cherry picked from commit 2a58e7b11c )
(cherry picked from commit 0d9e54237c )
2024-06-29 11:13:50 -07:00
Sam Lantinga
8a39054b54
Clean up any renderer in SDL_DestroyWindowSurface()
...
Also added an automated test to verify window surface functionality.
Fixes https://github.com/libsdl-org/SDL/issues/10133
(cherry picked from commit a522bfe3f1 )
(cherry picked from commit a3f0c373d3 )
2024-06-29 11:13:36 -07:00
Sam Lantinga
a9fdbf7f21
Make sure we don't try to use the XInput DLL after it's unloaded
...
Steam ran into a crash SDL_XINPUT_JoystickDetect() with XINPUTGETCAPABILITIES being NULL. I'm not sure how that happened, and there may still be a race condition if this is a multi-threaded issue, but at least this is more correct.
(cherry picked from commit 0ae4fd0ec9 )
(cherry picked from commit ee3b2b7de1 )
2024-06-26 15:56:21 -07:00
Sam Lantinga
ed86b02df8
Fixed building with older libdrm headers
...
(cherry picked from commit 8949de3978 )
(cherry picked from commit 88bbab275f )
2024-06-26 15:56:20 -07:00
Sam Lantinga
0811b4dc51
Fixed building with the steamrt/scout SDK
...
(cherry picked from commit 4b82bed259 )
(cherry picked from commit ecde0ca6b6 )
2024-06-26 15:56:20 -07:00
Sam Lantinga
d9901e0b85
Fix building with the steamrt/scout SDK
...
(cherry picked from commit b552f26e6a )
(cherry picked from commit 64d4baccb5 )
2024-06-26 15:56:20 -07:00
Sam Lantinga
630272eb55
Fixed requesting USB permission on Android 14 (thanks @ikhoeyZX!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9831
(cherry picked from commit 8ab1ffca8a )
(cherry picked from commit 5a26b26880 )
2024-06-17 15:12:05 -07:00
Sam Lantinga
92fe3b19c8
Updated to version 2.30.4 for release
2024-06-17 12:32:13 -07:00
Sam Lantinga
30e2b03a65
Pass through the original name used by the Steam Virtual Gamepad
...
Proton uses this on Linux to determine what the XInput slot is for the gamepad. Other applications will get the real controller name and VID/PID by virtue of the code in SDL_steam_virtual_gamepad.c
(cherry picked from commit 361cae0874 )
(cherry picked from commit a6fdd155fb )
2024-06-17 12:15:18 -07:00
Sam Lantinga
bd06e43b87
Re-enable full controller reports for Joy-Con controllers
...
When they are in simple report mode, the thumbstick gets turned into a digital hat, so let's use them in full report mode.
(cherry picked from commit bf27269952 )
(cherry picked from commit 169f77ed5e )
2024-06-13 00:02:52 -07:00
Sam Lantinga
72e5620202
Try to guess the type of a Nintendo Switch controller if we can't read the device info
...
(cherry picked from commit 6619de8f24 )
(cherry picked from commit 6b9bf71133 )
2024-06-13 00:02:52 -07:00
Sam Lantinga
fbb9646806
Ignore spurious reply packets when reading Nintendo Switch controller reports
...
(cherry picked from commit 5ee9a840b1 )
(cherry picked from commit f1b19aa744 )
2024-06-13 00:02:52 -07:00
Sam Lantinga
4b91f0793c
Fixed build
...
(cherry picked from commit 2e8bd8f1f3 )
2024-06-07 09:14:33 -07:00
Sam Lantinga
ab8659922d
Fixed PlayStation detection interrupting input for the Logitech K400 keyboard
...
Also added the Logitech Chillstream to the list of PS3 controllers and fixed the right shoulder axis.
(cherry picked from commit b6d7adfec1 )
(cherry picked from commit f520062ad1 )
2024-06-05 19:30:10 -07:00
Sam Lantinga
d48f9c4af4
Added support for the Saitek Cyborg V.3 Rumble Pad in PS3 mode
...
(cherry picked from commit b6ca360228 )
(cherry picked from commit e2f597de84 )
2024-06-05 19:30:07 -07:00
Sam Lantinga
5cc0644aa0
Added support for the Razer Kitsune in PS5 mode
...
(cherry picked from commit e3beaa1972 )
(cherry picked from commit 35d719ef25 )
2024-05-31 15:19:13 -07:00
Sam Lantinga
607f37dafd
Fixed compiling SDL_platform_defines.h on macOS with older compilers (thanks @sezero!)
...
Fixes #9632
(cherry picked from commit 36015ad5e5 )
(cherry picked from commit 8bc47dc3f1 )
2024-05-27 14:39:22 -07:00
Sam Lantinga
1e5db996ff
Added Linux bindings for the Qanba Drone 2 Arcade Joystick
...
(cherry picked from commit 98a9ca5e32 )
(cherry picked from commit 964e0c9b47 )
2024-05-23 15:35:17 -07:00
Sam Lantinga
c27219695a
Don't enable enhanced report mode for Bluetooth Nintendo Switch controllers by default
...
This breaks applications using them in DirectInput mode, which isn't worth just getting battery status. We'll turn on enhanced mode if the application enables sensors.
(cherry picked from commit a87fa020ac )
(cherry picked from commit efaa58732a )
2024-05-10 12:19:33 -07:00
Sam Lantinga
77b3a6afaf
Added a Windows mapping for the SPEEDLINK STRIKE Gamepad
...
Fixes https://github.com/libsdl-org/SDL/issues/9705
(cherry picked from commit 01d560df50 )
(cherry picked from commit 8c92af5e54 )
2024-05-06 10:11:58 -07:00
Sam Lantinga
fb1497566c
Updated to version 2.30.3 for release
2024-05-01 09:14:37 -07:00
Sam Lantinga
1c74a8b5ae
Fixed building with GDK (thanks @Romans-I-XVI!)
...
(cherry picked from commit 1caa427035 )
2024-04-30 10:21:38 -07:00
Sam Lantinga
f6f1b09b69
Fixed build error (thanks @sezero!)
...
(cherry picked from commit ac5a61cd60 )
(cherry picked from commit 67c60e0b9c )
2024-04-25 09:45:52 -07:00
Sam Lantinga
b5da8ad00d
Fixed Win+V handling (pasting from clipboard history) on Windows (thanks @ocornut!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9613
(cherry picked from commit 33af02ae68 )
2024-04-24 09:24:41 -07:00
Sam Lantinga
3f29d985fe
Fixed compilation with C89 (thanks @d-s-a!)
...
Closes https://github.com/libsdl-org/SDL/pull/9564
(cherry picked from commit 4e29be814e )
2024-04-17 07:50:28 -07:00
Sam Lantinga
f461d91cd2
Updated to version 2.30.2 for release
2024-04-01 16:56:15 -07:00
Sam Lantinga
d33b28c9fe
Don't fail joystick initialization if udev isn't available
...
(cherry picked from commit 5fff9bc1e3 )
2024-03-25 12:55:50 -07:00
Sam Lantinga
8fb82da226
Poll for the initial controller state when using DirectInput
...
This fixes getting a deflected axis as the first buffered input reading on a generic USB controller (G-Shark GS-GP702)
(cherry picked from commit 70b0d33106 )
(cherry picked from commit a9ac349846 )
2024-03-20 10:42:39 -07:00
Sam Lantinga
228a2954d7
Added a mapping for the Defender Joystick Cobra R4 (thanks @kotenok2000!)
...
(cherry picked from commit d972244d3a )
(cherry picked from commit 2d6c100058 )
2024-03-17 12:15:38 -07:00
Sam Lantinga
3d6d4ca2cd
Use the CRC as part of the unique key for mappings
...
(cherry picked from commit 4697153d1e )
(cherry picked from commit 07f04bb35e )
2024-03-17 12:15:31 -07:00
Sam Lantinga
5be47255ba
Removed incorrect mapping for a HORI controller
...
This broke support for the Hori Fighting Stick EX2, which gets a good mapping if the automatic mapping is allowed to create one.
If the original controller needs a mapping, it should be added with a crc, since that VID/PID combination is used by several HORI controllers.
(cherry picked from commit d79f865251 )
(cherry picked from commit e54774faca )
2024-03-11 17:14:26 -07:00
Sam Lantinga
8f860b3698
Fixed crash if joystick functions are passed a NULL joystick
...
In particular this affects the doomsday game engine if no joystick or
gamepad is attached.
(cherry picked from commit 0dfdf1f3f2 )
[smcv: Also included minor adjustment from https://github.com/libsdl-org/SDL/pull/9233 ]
(cherry picked from commit cd197be53b )
2024-03-09 08:41:16 -08:00
Sam Lantinga
35992597ae
Added support for the 6-button SEGA Mega Drive Control Pad for Nintendo Online
...
(cherry picked from commit 528b71284f )
2024-03-08 13:08:27 -08:00
Sam Lantinga
3f0d7a2937
Fixed mapping for the Sanwa Supply JY-P76USV controller
...
(cherry picked from commit 57a160c9ab )
(cherry picked from commit 26054d9934 )
2024-03-06 20:54:55 -08:00
Sam Lantinga
5adbf3765a
Updated to version 2.30.1 for release
2024-03-05 14:33:57 -08:00