Sam Lantinga
cd0db8d35e
Added Linux evdev mappings for the Wireless HORIPAD For Steam
2025-01-18 08:09:25 -08:00
Sam Lantinga
c7d1fd90ea
Added support for the 8BitDo Ultimate 2C Wireless in Bluetooth mode
...
Closes https://github.com/libsdl-org/SDL/pull/11415
2025-01-18 07:06:46 -08:00
Sam Lantinga
0eaa6197c5
Removed unnecessary __builtin_available check
2025-01-14 17:00:30 -08:00
Sam Lantinga
ffe194c52e
Fixed build when SDL_JOYSTICK_MFI isn't enabled
2025-01-14 17:00:30 -08:00
Sam Lantinga
49dd24e195
Fixed potentially overlapping memcpy() to use memmove()
2025-01-14 14:31:20 -08:00
Sam Lantinga
cdde6dd7bb
Bumped deployment requirements for Apple platforms
...
We require at least Xcode 12.2 and macOS SDK 11 to build. We support deploying to macOS 10.13, iOS 11.0, and tvOS 11.0.
This cleans up the code significantly
2025-01-14 12:03:07 -08:00
Sam Lantinga
e5a4f09363
Call SDL_UDEV_Quit() if we don't end up using it
2025-01-13 10:22:10 -08:00
Sam Lantinga
21cc1878f1
Reset enhanced mode state when closing a controller
...
Fixes https://github.com/libsdl-org/SDL/issues/11912
2025-01-12 10:45:54 -08:00
Sam Lantinga
2c0a8363a5
Added SDL_HINT_JOYSTICK_ENHANCED_REPORTS
...
This hint defaults on, enabling advanced controller features.
This replaces SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE and SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, and is supported by PlayStation and Nintendo Switch controllers.
Fixes https://github.com/libsdl-org/SDL/issues/10086
2025-01-02 17:18:09 -08:00
Sam Lantinga
4797970bfa
Enable SDL_HINT_JOYSTICK_THREAD by default
...
If you're not using SDL for video you won't get raw input messages without this hint, and this is tripping up enough people it makes sense to have this enabled by default. There isn't much downside to this, other than having another thread processing Xbox controller input.
Fixes https://github.com/libsdl-org/SDL/issues/10576
2025-01-02 10:25:18 -08:00
Sam Lantinga
6b4b9b5f2b
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.
2025-01-02 10:25:18 -08:00
Sam Lantinga
0281071243
Lock joysticks when they are connected/disconnected on emscripten
...
Fixes https://github.com/libsdl-org/SDL/issues/11499
2025-01-01 13:51:47 -08:00
Sam Lantinga
f2074d7af3
Updated copyright for 2025
2025-01-01 07:45:52 -08:00
Sam Lantinga
9a4d29699d
Don't use connection state from the Nintendo Switch Pro report
...
This isn't reliable for third party controllers like the 8BitDo Pro 2.
Fixes https://github.com/libsdl-org/SDL/issues/10862
2024-12-27 13:58:49 -08:00
Sam Lantinga
22f6eed1d9
Use the NVIDIA Shield home button as the guide button
2024-12-27 12:42:06 -08:00
Sam Lantinga
c148837546
Added a Bluetooth mapping for the NVIDIA Shield Controller on Linux
2024-12-27 12:18:08 -08:00
Sam Lantinga
82a1e9f6df
Fixed the guide button for the NVIDIA Shield Controller on Linux
...
This works with firmware v1.25 and v1.35
2024-12-27 12:17:51 -08:00
Sam Lantinga
1413bfb185
Don't overwrite non-CRC gamepad mapping with a new mapping that specifies a CRC
...
Fixes https://github.com/libsdl-org/SDL/issues/11723
2024-12-26 20:18:26 -08:00
L zard
c2508d5d99
Fix various #if defined
s
2024-12-24 07:19:38 -08:00
Sam Lantinga
3a1810f9a9
Fixed the Linux mapping for the NVIDIA Controller v1.03
2024-12-23 15:43:17 -08:00
Sam Lantinga
37b87f79fb
Fixed Bluetooth Steam Controller detection on iOS and Android
2024-12-23 12:55:25 -08:00
Sam Lantinga
61511c48a4
SDL_HashTable is now optionally thread-safe
...
Fixes https://github.com/libsdl-org/SDL/issues/11635
2024-12-12 14:39:53 -08:00
Sam Lantinga
3060105cfa
Don't filter out controllers when launched by Steam under Proton
...
Fixes https://github.com/libsdl-org/SDL/issues/11579
2024-12-05 19:50:15 -08:00
Sam Lantinga
235e5c6a6c
Fixed crash if a device doesn't have a USB product or manufacturer string
...
This happens with the Razer Huntsman V3 Pro Tenkeyless keyboard
2024-12-05 10:42:02 -08:00
Sam Lantinga
5ee4d176f1
Added support for the Razer Wolverine V3 Pro
2024-11-21 05:51:57 -08:00
Sam Lantinga
35e6c92c3c
Added the ROG Ally X to the list of Xbox controllers
...
This prevents Steam from opening the DirectInput versions of this controller that are added by installing Zenless Zone Zero.
2024-11-20 12:09:30 -08:00
Sam Lantinga
7a074f582e
Steam Controller handling improvements
...
* Only handle the controller interfaces on a Steam Controller and wireless dongle
* Wait until we get the connected status when initializing a wireless dongle
2024-11-18 21:36:23 -08:00
Sam Lantinga
0c53d9a1ee
Implemented SendEffect for Steam Controllers
2024-11-18 18:26:07 -08:00
Sam Lantinga
d8f8cf3e99
Added SDL_HINT_JOYSTICK_HIDAPI_STEAM_HOME_LED
2024-11-18 14:50:37 -08:00
Sam Lantinga
184da780f5
Fixed a crash when unplugging a Steam Controller dongle
2024-11-18 12:13:42 -08:00
Ozkan Sezer
0f9e551d71
joystick/gdk/SDL_gameinputjoystick.c: fix build errors due to -Wformat
2024-11-17 00:45:02 +03:00
Sam Lantinga
af6ce629c4
Make sure pairing remains enabled for the entire time dongle pairing is active
2024-11-16 13:42:12 -08:00
Sam Lantinga
2b10a040ff
Fixed rare case of wireless Steam Controller not being detected at startup
2024-11-16 13:10:02 -08:00
Cameron Gutman
e0166256ff
joystick: Fix connection type for Steam Controller and Xbox 360 dongles
2024-11-15 17:54:14 -06:00
Sam Lantinga
8657fa8b3b
Improved reliability of the Steam Controller driver
2024-11-15 15:55:13 -08:00
Sam Lantinga
b54f6044a5
Removed Linux Steam Controller support
...
The HIDAPI driver has all the functionality we need on Linux
2024-11-15 08:53:40 -08:00
Sam Lantinga
b71151a697
Added support for pairing controllers to the Steam Controller dongle
2024-11-14 20:04:31 -08:00
Sam Lantinga
f0b61c69e7
Fixed duplicate controllers showing up on the Steam Controller wireless dongle
2024-11-14 14:19:16 -08:00
Sam Lantinga
fe3566ca46
Ignore Steam Controllers in the Linux driver if HIDAPI is handling them
2024-11-14 11:20:52 -08:00
Sam Lantinga
7959b08a4d
Fixed spacing
2024-11-14 09:25:57 -08:00
Sam Lantinga
0f9505256d
Steam Controller support defaults off on mobile platforms
...
These platforms require prompting for Bluetooth permissions, so don't enable this by default.
2024-11-14 09:05:16 -08:00
Sam Lantinga
140aba9e5d
Enable Steam Controller support by default
...
It now handles both wired and wireless controllers and Steam will set SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES for Steam Controllers if it's handling them.
2024-11-14 08:18:03 -08:00
Cameron Gutman
68c2cf84f6
hidapi: Add support for the Steam Controller wireless dongle
2024-11-14 06:57:22 -08:00
Cameron Gutman
1a311bc638
hidapi: Add support for Steam controllers connected via USB
2024-11-14 06:57:22 -08:00
Sam Lantinga
908b42f2b9
Fixed 8BitDo M30 mapping to match fighting game conventions and the layout in XInput mode
2024-11-05 11:43:28 -08:00
Sam Lantinga
028194286c
Added mappings for the various firmware versions of the 8BitDo SN30 Pro controller
...
Fixes https://github.com/libsdl-org/SDL/issues/9460
2024-11-05 11:43:28 -08:00
Sam Lantinga
ed943318e2
Support multiple joystick buttons bound to the same gamepad button
2024-11-05 11:43:28 -08:00
Sam Lantinga
27b828754a
Use HIDAPI to provide better names for DirectInput controllers
...
Fixes https://github.com/libsdl-org/SDL/issues/10207
2024-11-05 11:43:28 -08:00
Sam Lantinga
c1246e31a4
Added support for the PowerA OPS v1 and v3 Pro wireless controllers
2024-11-04 12:05:57 -08:00
Sam Lantinga
d3b882b4f9
Added support for the PowerA Fusion Pro 4 and Fusion Pro Wireless controllers
2024-11-04 10:48:50 -08:00