Nintorch
6e6dc500b5
Add blacklist words for gamepad names
2025-10-03 09:44:56 -07:00
Anonymous Maarten
f9f172cf60
gamepad: use SDL_PLATFORM_ANDROID macro instead of ANDROID
2025-09-26 21:39:06 +02:00
Sam Lantinga
33a74c7548
Fixed typo
2025-09-25 07:31:07 -07:00
Vicki Pfau
ed2cdceb66
switch2: Read user calibration data
2025-09-24 18:15:07 -07:00
Dan Andrus
6d0fdb627e
Update references to macOS 10.16 to macOS 11.0
...
Fixes api availability compiler warnings when building the joystick subsystem for macOS versions older than 11.0. The compiler expects the version number passed into @available and API_AVAILABLE macros to be greater than or equal to 11.0, which 10.16 is not. (Even though 10.16 and 11.0 are semantically equivalent, the compiler doesn't know this.)
2025-09-22 11:32:32 -07:00
Nintorch
ea8d8d725a
Add support for USB vendor/product IDs to Emscripten joysticks ( #14003 )
2025-09-22 11:30:53 -07:00
zuiki_inn
fc648e5546
Support ZUIKI MasconPro ( #13770 )
...
* Add ZUIKI controller
Support version:
MasconPro
Enable rumble
Disable sensors
2025-09-21 23:38:28 -07:00
Sam Lantinga
6a9ac1cacd
Always poll udev on supported platforms
...
Fixes https://github.com/libsdl-org/SDL/issues/13995
2025-09-20 11:13:39 -07:00
Sam Lantinga
f8a1ea021b
Fixed crashes when SDL_DISABLE_INVALID_PARAMS is enabled (thanks @AntTheAlchemist!)
2025-09-19 07:43:01 -07:00
Sam Lantinga
25b2d2c821
Use new parameter validation macro
2025-09-18 20:58:32 -07:00
Sora
964bedfdd9
fix: use productCategory instead of vendorName for joy name for apple driver
2025-09-15 11:51:06 -07:00
Sam Lantinga
30e2fdc5a2
Sort the blacklist entry for the HP Deluxe Webcam KQ246AA
2025-09-14 15:38:47 -07:00
Nintorch
556ee00fe3
Fix HP Deluxe Webcam KQ246AA detected as joystick
2025-09-14 15:27:03 -07:00
Sam Lantinga
1aba421bd3
Wait briefly after enabling effects on DualSense controller
...
The rumble motors apparently take a short time to power up after enabling enhanced mode.
Fixes https://github.com/libsdl-org/SDL/issues/13909
2025-09-14 09:59:01 -07:00
Sam Lantinga
78a29d1670
Disable Windows.Gaming.Input by default
...
The functionality is already covered by XInput and DirectInput, and Microsoft is recommending GameInput going forward.
Fixes https://github.com/libsdl-org/SDL/issues/13000
2025-09-14 08:47:52 -07:00
Sam Lantinga
c78e279d3c
Removed unneeded preprocessor guards
2025-09-13 07:22:30 -07:00
mitchellcairns
78e0ec7e0d
SInput: Version as a capabilities vehicle ( #13667 )
...
* SInput: version capabilities compression
This commit includes additions relating to SInput generic device reporting capabilities in a bit more detail, to automatically choose the best input map possible for the given device.
Thanks to Antheas Kapenekakis (git@antheas.dev ) for contributing the neat compression algorithm, this is pulled from the PR Draft here: https://github.com/libsdl-org/SDL/pull/13565
Co-authored-by: Antheas Kapenekakis <git@antheas.dev >
2025-09-13 07:21:39 -07:00
Ryan C. Gordon
614ae1b115
emscripten: Support analog gamepad triggers on both Firefox and Chrome.
...
Fixes #13051 .
2025-09-12 14:23:01 -04:00
Sam Lantinga
3ddc3f1146
Send events for mice and keyboards detected during initialization
...
Fixes https://github.com/libsdl-org/SDL/issues/12815
2025-09-11 20:07:55 -07:00
Sam Lantinga
df0cc6e98b
Make sure we always zero the buffer sent to Steam Controllers
...
This fixes bad initialization for Steam Controllers with the original firmware
2025-09-08 18:41:17 -07:00
nightmareci
2f5bc17ea6
Fix support for Windows XP and up ( #13904 )
2025-09-08 13:00:26 -07:00
Ryan C. Gordon
2a0e751ff5
gamepad: Fixed Emscripten guide button, after recent changes.
...
(buttons above 12 all shifted down by four, since the dpad buttons now look
like a hat...the only one above the dpad buttons on a standard layout is the
guide button, index 16. This change moves it to 12.)
2025-09-07 10:25:12 -04:00
Ryan C. Gordon
82a800e266
emscripten: Let joystick dpad-to-hat conversion allow impossible combinations.
...
This matches what other backends do.
2025-09-07 10:02:20 -04:00
Ryan C. Gordon
b58d0f8e4e
gamepad: Fixed Emscripten d-pad, after recent changes.
2025-09-07 10:00:41 -04:00
Sam Lantinga
25d9096d41
Fixed rumble strength on DualSense Edge and Bluetooth connected controllers
...
Fixes https://github.com/libsdl-org/SDL/issues/13771
2025-09-06 11:53:32 -07:00
Ryan C. Gordon
a6dc61ab32
joystick: Emscripten can often fake a hat from the d-pad buttons.
...
Fixes #13817 .
2025-09-05 14:46:59 -04:00
Sam Lantinga
3572be3998
Improved detection of FlyDigi controllers
2025-09-04 18:21:17 -07:00
Sam Lantinga
637a9b34ab
Added a comment explaining the initialization delay
2025-09-03 15:47:21 -07:00
Sam Lantinga
b6a55c2856
Wait a bit for initialization to complete before requesting calibration data
...
Fixes https://github.com/libsdl-org/SDL/issues/13856
2025-09-03 15:36:58 -07:00
Sam Lantinga
84af0bb53a
Updated the 8BitDo Ultimate 2 Wireless Controller dongle update rate
...
The latest dongle firmware appears to update at 1000Hz
2025-09-02 09:53:09 -07:00
Sam Lantinga
a562e40d2c
Revert "Disable rumble for the Ultimate 2 Wireless Controller in dongle mode"
...
This reverts commit 065fdca953 .
8BitDo has fixed the rumble issue with dongle firmware update V1.05
2025-09-02 09:53:09 -07:00
Sam Lantinga
1f007ad5cd
Added support for the player LED on Nintendo Switch 2 controllers
2025-09-01 21:11:16 -07:00
Sam Lantinga
4b93e7488f
Added support for the Switch 2 Joy-Cons with charging grip
2025-09-01 21:11:16 -07:00
Vicki Pfau
184f6fa231
switch2: Read calibration data
2025-08-29 05:46:19 -07:00
Sam Lantinga
ac5ccbe386
Moved Nintendo Switch 2 Controller initialization from hid.c to SDL_hidapi_switch2.c
2025-08-28 09:10:47 -07:00
Sam Lantinga
cdae0d10d1
Fixed button mapping for the Nintendo Switch 2 Pro Controller
2025-08-28 09:10:47 -07:00
Sam Lantinga
fb9fcfa37b
Fixed controller name when hotplugging the Nintendo Switch 2 Pro Controller
2025-08-28 09:10:47 -07:00
Ethan Lee
a798da2ec7
hidapi: Add support for NSO GameCube controller via libusb.
...
Thanks to Nohzockt for the initial libusb init and hidapi polling work!
2025-08-28 09:10:47 -07:00
Ethan Lee
efea62ed61
hidapi: Add a stub driver for Switch 2.
...
Thanks to kiddkaffeine for the Xcode updates!
2025-08-28 09:10:47 -07:00
wankey
6176235a90
fix wrong index in HandleStatePacket with flydigi controller ( #13819 )
2025-08-28 04:08:54 -07:00
Sam Lantinga
5291e9bbbd
Minor cleanup
2025-08-26 19:28:59 -07:00
Sam Lantinga
065fdca953
Disable rumble for the Ultimate 2 Wireless Controller in dongle mode
...
The dongle appears to stop sending input reports with some combination of rumble patterns, easily reproduced with Forza Horizon 5. We'll disable rumble temporarily until @8BitDo can investigate.
2025-08-26 08:39:00 -07:00
Nintorch
1fbed16cb0
Add Emscripten joystick rumble support
...
Adds support for Emscripten (Web) joystick rumble support via EM_ASM_INT macros and HTML5's Gamepad API.
2025-08-25 12:58:59 -07:00
Nintorch
1af7dfb0a7
Allow Android to ignore unnecessary joysticks
...
Previously, SDL_ShouldIgnoreJoystick wasn't being called for Android, and fingerprint sensors were recognized as joysticks.
2025-08-25 11:23:14 -07:00
Sam Lantinga
fe16c620d8
Fix crash when enumerating Steam Controllers
...
Closes https://github.com/libsdl-org/SDL/pull/13746
2025-08-14 14:49:04 -07:00
Sam Lantinga
2d855e12d2
Fixed style
2025-08-14 14:48:58 -07:00
Mitch Cairns
62b9ac3a09
SEWN Button Convention
2025-08-12 15:19:01 -07:00
Mitch Cairns
87543ba18c
SInput: Mapping updates for GCUltimate/ProGCC
...
- In previous firmwares for my gamepads, the buttons were sent in a static order for ABXY.
- To better be 'transparent' to the driver and save myself from future fragmentation, I am updating the mappings to be consistent, where the HID report should always expect to receive the button inputs based on cardinal button directions rather than button labels.
- This better aligns with the existing 'fallback' behavior of a generic device.
- Coincides with firmware library update: https://github.com/HandHeldLegend/HOJA-LIB-RP2040/pull/30
2025-08-12 15:19:01 -07:00
Petar Popovic
d9c20cfd0a
SDL_SendJoystickVirtualSensorDataInner(): Fix max_sensor_events increment
2025-08-08 12:48:06 -07:00
Sam Lantinga
7bb045ca22
Fixed Windows build
2025-08-04 13:04:17 -07:00