Sam Lantinga
54fdeb9e79
Added support for the Razer Raiju V5 Pro in wireless mode
2026-01-13 16:23:05 -08:00
Sam Lantinga
015d0fc2e4
Added support for the Razer Raiju V5 Pro
2026-01-13 15:48:12 -08:00
Frank Praznik
55acc0b829
joystick/win32: Fix function return type mismatch
...
Fixes #14804
2026-01-11 10:56:06 -05:00
Sam Lantinga
f369e804e2
Fixed crash when the broken EZFRD64.DLL is present
...
Fixes https://github.com/ppy/osu/issues/13634
2026-01-07 17:11:57 -08:00
Katharine Chui
6c2f9bc41e
hidapi: Disable hidapi LG4FF on windows ( #14762 )
...
hid.dll simply cannot send 7 bytes reports unlike other platforms
It enforces full length repots of 17 from the device's descriptor,
which does not work on the device.
This breaks ffb and led control, so we disable this by default on
windows.
2026-01-05 08:14:26 -08:00
Sam Lantinga
ce6a6d1b39
Fixed handling status changes in the FlyDigi controller driver
2026-01-05 08:00:03 -08:00
Sam Lantinga
5f086e7623
Updated copyright for 2026
2026-01-01 09:40:08 -08:00
Sam Lantinga
0ac6f972f9
Added enhanced support for the Flydigi Vader 5 Pro controller
2025-12-31 07:46:56 -08:00
Eddy Jansson
3d354eeaad
Prefer SDL_arraysize()
...
Replace uses of (sizeof(arr)/sizeof(arr[0]), and similar,
with the SDL_arraysize() macro.
2025-12-30 12:22:03 -08:00
MAJigsaw77
cb04dcd6f8
android: Add RGB LED support for joysticks.
2025-12-29 10:32:02 -08:00
Sam Lantinga
d10fe8bf2f
Added a Linux mapping for the Nacon GC100 controller (thanks @elkabyliano!)
2025-12-29 09:43:47 -08:00
Nintorch
5c03796ac7
Fix Emscripten joysticks having the same name
2025-12-24 07:19:10 -08:00
Nintorch
0f1a705fda
Fix Emscripten joystick rumble being swapped
2025-12-24 07:18:07 -08:00
Sam Lantinga
0b9946d7bf
Fixed crash when using the NVIDIA Shield controller
2025-12-22 11:29:47 -08:00
Kaleb Reid
341f60555f
Fix building joystick for OpenBSD
2025-12-21 07:58:41 -08:00
Sam Lantinga
c7508ca2e9
Fixed warning: no previous prototype for function 'ParseDescriptor'
2025-12-16 14:51:19 -08:00
Susko3
765a2e9118
Fix using wrong variable by mistake
2025-12-15 13:57:40 -08:00
Sam Lantinga
517a3d20e8
Support calling SteamAPI_InitEx() before SDL_Init(SDL_INIT_GAMEPAD)
...
Calling SteamAPI_InitEx() will set environment variables that SDL uses to properly support the Steam virtual gamepad. Make sure that we fall back to the real environment for the variables that Steam sets.
2025-12-13 23:46:27 -08:00
Sam Lantinga
ec19f1e12f
Use Uint32 instead of unsigned int for descriptor values
2025-12-12 13:02:39 -08:00
Sam Lantinga
71be323973
Updated Xbox HIDAPI descriptor handling for alternate layout
...
Fixes https://github.com/libsdl-org/SDL/issues/14597
2025-12-12 13:02:39 -08:00
Sam Lantinga
450a2cb5e4
Added support for parsing the Xbox report descriptor
...
This gives us more robust handling of Bluetooth Xbox controllers which may vary the report format between firmware versions.
Firmware versions tested:
Xbox One S: 3.1.1, 4.8.1923, 5.13.3143
Xbox One S/X: 5.11.3118, 5.23.6
Xbox Elite Series 2: 5.22.16, 5.23.6
Fixes https://github.com/libsdl-org/SDL/issues/14597
2025-12-10 10:49:39 -08:00
Sam Lantinga
ef416e84a1
Use SDL_LogDebug() for dumping HID packets
2025-12-10 10:49:39 -08:00
Sam Lantinga
e047aeeb7c
Added a Linux mapping for the ZhiXu GuliKit Controller D
2025-12-05 11:22:38 -08:00
Sam Lantinga
f38d31a811
Removed mappings for Xbox controllers supported by the Linux kernel
...
The mappings may vary between kernel versions, so we'll use the automatic mapping code to get the right one for the running system.
2025-12-05 11:22:38 -08:00
Sam Lantinga
71147216dc
Removed entries for controllers that aren't Xbox controllers
2025-12-05 11:22:38 -08:00
Vicki Pfau
8e644111c2
gamepad_db: Remove obsolete entry
...
This autodetects properly with modern SDL as-is
2025-12-04 21:35:59 -08:00
Toast
1dea7c801b
Added Keychron V5 System Control to the controller blacklist
2025-12-03 07:08:42 -08:00
Toast
adb0013470
Added the Keychron Link reciever to the controller blacklist
2025-12-03 07:08:42 -08:00
Sam Lantinga
22decf4783
Fixed some clang thread-safety warnings
2025-12-02 01:11:38 -08:00
Sam Lantinga
5e9163592f
Correct the sensor axis ordering with the Linux Nintendo driver
...
Fixes https://github.com/libsdl-org/SDL/issues/14552
2025-11-30 11:35:36 -08:00
Sam Lantinga
74653b3cd5
Send the normal sensor data for the right Joy-Con controller in combined mode
2025-11-25 10:38:42 -08:00
Sam Lantinga
55a566a6b4
Steam expects the gyro data to come before the accelerometer data
2025-11-24 18:04:46 -08:00
Sam Lantinga
a9a24ac000
Fixed the KingKong2 PRO Controller failing to initialize over Bluetooth
2025-11-20 09:24:07 -08:00
Sam Lantinga
61bf7087f5
Fixed build warnings with Visual Studio
2025-11-19 17:02:33 -08:00
Sam Lantinga
9f444b3981
Fixed initializing EVORETRO GameCube adapters
...
The HID device needs to be closed while enabling input reports over USB
2025-11-19 16:11:18 -08:00
Sam Lantinga
d50cda3247
Added mappings for PlayStation VR2 Sense Controllers
2025-11-19 11:48:09 -08:00
Sam Lantinga
fa3467a94d
Use the product category if the vendorName isn't available
2025-11-19 11:39:20 -08:00
Sam Lantinga
ef0ae4c903
Revert "fix: use productCategory instead of vendorName for joy name for apple driver"
...
This reverts commit 964bedfdd9 .
The vendorName is more expressive and lets the user distinguish between different controllers of the same type, e.g. "PlayStation VR2 Sense Controller (R)" and "PlayStation VR2 Sense Controller (L)" vs "Spatial Controller"
If the product category is necessary, we can add a property to store that as additional information on the controller.
2025-11-19 11:35:38 -08:00
Sam Lantinga
1209abf9dc
Fixed macOS build
2025-11-19 10:47:31 -08:00
Sam Lantinga
a1ade13f1e
Enable gamepad events on visionOS
...
Normally the gamepad is used for navigation on visionOS, but when the controller subsystem is enabled we want to receive gamepad input as gamepad events instead.
2025-11-19 10:37:33 -08:00
Sam Lantinga
4931c675ab
Fixed warning C4127 (conditional expression is constant) in Visual Studio
2025-11-17 16:06:58 -08:00
Sam Lantinga
c68254927f
Fixed the SI GameCube dual stage trigger button mapping
...
Also moved the second touchpad button to the end of the misc buttons
2025-11-17 09:28:06 -08:00
Sam Lantinga
dccf486a0a
Fixed potential infinite recursion opening a Steam Controller
...
This can happen if the controller is opened from an event watcher when the controller is connected.
2025-11-14 13:44:02 -08:00
Sam Lantinga
919254cdd1
Fixed comment for the new Steam Controller mapping
...
Fixes https://github.com/libsdl-org/SDL/issues/14465
2025-11-14 07:09:36 -08:00
Vicki Pfau
9fd3dbfc42
switch2: Remove some unneeded init commands
...
These commands seem to be queries the console sends, not setup
2025-11-13 20:46:46 -08:00
Vicki Pfau
f0d4aca03d
switch2: Bring up IMU support
2025-11-13 20:46:46 -08:00
Vicki Pfau
ae6cdea0fa
switch2: Refactor and clean up rumble code a bit
2025-11-13 20:46:46 -08:00
Sam Lantinga
e2e8f86076
Check for wine_get_version() to detect Wine/Proton
...
If this application is being run under Wine but Steam doesn't know that, Steam won't set STEAM_COMPAT_PROTON. So we'll use wine_get_version() to detect that we're running under Wine instead.
2025-11-12 22:29:42 -08:00
Sam Lantinga
493bc621e4
Don't check SteamVirtualGamepadInfo when running as Wine
...
Wine will ignore the Steam Virtual Gamepad if it looks like it has the original (blocked) controller VID/PID.
Fixes https://github.com/libsdl-org/SDL/issues/14410
2025-11-12 22:29:42 -08:00
Sam Lantinga
dafca86123
Cleanup SDL_UDEV_GetProductSerial()
2025-11-12 22:23:27 -08:00