Sam Lantinga
56b77177a9
Fixed building with -DSDL_HIDAPI=OFF
...
Fixes https://github.com/libsdl-org/SDL/issues/14975
2026-02-06 09:59:37 -08:00
Sam Lantinga
f60231759d
Fixed detecting Nintendo Switch Pro 2 controller on Steam Link hardware
...
In this case, it's available via both libusb and hidraw, but the hidraw device isn't usable. If a device needs to be opened via libusb, don't expose it via hidraw enumeration.
2026-02-03 10:44:16 -08:00
Sam Lantinga
bc68c1c920
Fixed conflict when linking both SDL and hidapi statically
...
Closes https://github.com/libsdl-org/SDL/pull/14772
2026-01-06 06:10:39 -08:00
Sam Lantinga
ce0da58755
Made udev hwdb functionality optional
2026-01-01 15:39:00 -08:00
Sam Lantinga
4984eb8c16
Use udev to get the manufacturer name if possible (thanks gdb!)
2026-01-01 15:39:00 -08:00
Sam Lantinga
5f086e7623
Updated copyright for 2026
2026-01-01 09:40:08 -08:00
Sam Lantinga
128b9260ec
Added SDL_HINT_HIDAPI_LIBUSB_GAMECUBE
...
Fixes https://github.com/libsdl-org/SDL/issues/14682
2025-12-30 14:14:51 -08:00
Sam Lantinga
d33642b710
Filter libusb devices early in enumeration
...
Some device drivers crash if you query things like manufacturer and product name, so make sure we only touch devices that we're really interested in.
2025-12-30 10:52:56 -08:00
Anonymous Maarten
9dd3e2305e
dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro
2025-12-24 23:45:50 +03: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
1998b65045
Added support for the new Steam Controller
2025-11-12 11:32:32 -08:00
Sam Lantinga
b695e5c24b
Fixed whitespace
2025-11-02 09:31:55 -08:00
Sam Lantinga
1502c2fd8b
Added support for the Flydigi Apex 5 controller ( #14218 )
2025-10-30 21:20:44 -07:00
Sam Lantinga
404ec13fbb
Fixed building with libusb on FreeBSD
2025-10-24 10:41:08 -07:00
Eddy Jansson
3b0347ac48
Don't do NULL-checks before free()
2025-10-20 00:13:09 -07:00
Eddy Jansson
aaee09d6ed
Don't do NULL-checks before SDL_free()
...
Replaces the pattern
if (ptr) {
SDL_free(ptr);
}
with
SDL_free(ptr);
2025-10-20 00:13:09 -07:00
Sam Lantinga
b2188b325d
Fixed HIDAPI controller disconnect reading on multiple threads
...
If multiple threads are calling SDL_UpdateJoysticks(), then an overlapped read can be initiated on one thread (read_pending set to true) and GetOverlappedResult() called on another thread. This results in ERROR_OPERATION_ABORTED. This is harmless so we shouldn't return an error in this case, we'll just retry the read on the next call.
Fixes https://github.com/libsdl-org/SDL/issues/14033
2025-09-25 10:36:14 -07:00
Sam Lantinga
5503fe1c1b
Fixed a memory leak in fill_device_info_usage() (thanks @digant73)
...
Fixes https://github.com/libsdl-org/SDL/issues/13998
2025-09-20 09:05:37 -07:00
Sam Lantinga
4b93e7488f
Added support for the Switch 2 Joy-Cons with charging grip
2025-09-01 21:11:16 -07:00
Sam Lantinga
7c8df4ea52
Fixed warnings building with Visual Studio
2025-08-30 10:15:58 -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
65c1fc1b42
Added SDL_hid_get_properties()
2025-08-28 09:10:47 -07:00
Sam Lantinga
09ca7e8f64
Move libusb support into a shared location
2025-08-28 09:10:47 -07:00
Sam Lantinga
2bb51e1340
Claim the interface before doing bulk transfers
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
Anonymous Maarten
0a6b80717c
Record dynamic dependencies in .note.dlopen elf section
2025-08-27 16:11:39 +00:00
Petar Popovic
ae5ce258cf
Fix double-free warning in src/hidapi/linux/hid.c
2025-08-02 07:08:35 -07:00
Brenton Bostick
f361034ac3
fix typos
2025-07-27 08:10:03 -07:00
Sam Lantinga
92e8224d32
Fixed build
2025-07-11 13:05:37 -07:00
Sam Lantinga
0b2e389ee3
Fixed long delay when enumerating the Razer Huntsman keyboard
...
Fixes https://github.com/libsdl-org/SDL/issues/13236
2025-07-11 12:34:14 -07:00
Sam Lantinga
f199aafaeb
Fixed long delay when enumerating the Razer Huntsman keyboard
...
Fixes https://github.com/libsdl-org/SDL/issues/13236
2025-07-11 11:55:46 -07:00
Ozkan Sezer
81e3066303
hidapi/libusb: disable C5287 warning in MSVC builds
...
A quick search implies that it is a bogus warning:
https://www.google.com/search?q=visual+studio+C5287
2025-06-21 07:15:53 -07:00
Sam Lantinga
d7939abf42
Use consistent style for pointer declarations and casts
2025-06-18 10:03:44 -07:00
Sam Lantinga
c9cf4c42e0
Improved HIDAPI support for Flydigi controllers
2025-05-22 15:36:38 -07:00
bakatrouble
354895d975
Add Flydigi VADER 4 Pro HIDAPI support ( #12874 )
2025-05-22 09:56:17 -07:00
RipleyTom
e90f7ac4a8
Add hid_version and hid_version_str to renamed LIBUSB impl symbols
2025-05-10 07:45:06 -07:00
Sam Lantinga
1e6a25324c
Added support for the PowerA Battle Dragon Advanced Wireless Controller
2025-05-02 10:01:13 -07:00
Vicki Pfau
00f3a82ada
Joystick: Add new GIP driver to replace old Xbox One wired driver
...
This new driver is based on official documentation released by Microsoft in
September, though it still lacks several important features, notably the
Security handshake for wireless dongles and audio support. It is, however, more
reliable and extensible than the old driver.
2025-05-01 11:04:33 -07:00
Sam Lantinga
fcdaff4110
Fixed compiler warning
2025-04-24 10:36:49 -07:00
Sam Lantinga
98e76d283f
Fixed conflict when linking both SDL and hidapi statically
...
Fixes https://github.com/libsdl-org/SDL/issues/12790
2025-04-10 09:57:37 -07:00
nightmareci
718034f5fa
Remove newlines from log messages
2025-01-22 20:25:04 -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
748f0b3201
Improved Steam Controller detection on iOS
2025-01-06 17:16:23 -08:00
Sam Lantinga
f2074d7af3
Updated copyright for 2025
2025-01-01 07:45:52 -08:00
Sam Lantinga
37b87f79fb
Fixed Bluetooth Steam Controller detection on iOS and Android
2024-12-23 12:55:25 -08:00
Ozkan Sezer
6fa6297441
fix typo from commit b84f150d06
2024-12-17 11:15:56 +03:00
Ozkan Sezer
b84f150d06
fix macOS builds with hidapi disabled
...
Fixes: https://github.com/libsdl-org/SDL/issues/11647 .
2024-12-17 11:11:56 +03:00
Sam Lantinga
6fab61b69d
hidapi: check each usage on a device before ignoring it completely
2024-11-25 10:49:05 -08:00
Cameron Gutman
e67ae274a5
hidapi: Fix bus type in HIDAPI_IGNORE_DEVICE() on Linux
...
This bug prevented the Steam Controller's keyboard and mouse
interfaces from being properly ignored by the HIDAPI joystick
driver on Linux.
2024-11-13 22:06:37 -06:00
Sam Lantinga
908bd84c5e
Fixed reopening a controller on Android
2024-11-07 15:36:32 -08:00