kc3-lang/SDL/src/hidapi/SDL_hidapi.c

Branch :


Log

Author Commit Date CI Message
f14c7bb4 2022-01-09 20:33:32 added missing hidapi stuff for os/2 with libusb
120c76c8 2022-01-03 09:40:00 Updated copyright for 2022
67c4b996 2021-12-15 10:39:42 Fixed enabling udev hotplug detection on Linux
8f17af5e 2021-11-27 20:56:56 hidapi: mark libusb function pointers with LIBUSB_CALL.
d5813776 2021-11-25 09:56:15 Release UDEV ressources
b6796597 2021-11-19 11:55:50 SDL_hidapi.c: fix SDL_udev.h include path fixes https://github.com/libsdl-org/SDL/issues/4981
5fc7a90a 2021-11-12 10:00:41 Fix refcounting in SDL_hid_exit
9c3bcf8e 2021-11-11 17:31:14 Added SDL_hid_ble_scan() for pairing Steam Controllers on iOS and tvOS
b9b0df40 2021-11-11 12:52:31 Fixed Linux build
c9ada1c1 2021-11-11 12:45:38 Made HIDAPI device change notifications available via SDL_hid_device_change_count()
6c4b4ee7 2021-11-10 09:41:43 Don't assert on API parameters This causes lots of spam in test automation and it's not clear it's useful to developers. If we need this level of validation, we should add a log category for it.
0f2bf629 2021-11-09 06:20:46 Fixed building hidapi when libusb is available
b8327a4a 2021-11-08 07:19:45 Added SDL_HIDAPI_DISABLED so it can be disabled like other SDL subsystems
f61b10dc 2021-11-08 06:34:32 Do more robust validation of devices passed to the SDL HIDAPI functions
dd8c3548 2021-11-08 17:00:56 SDL_hidapi.c: avoid possible NULL pointer dereferences.
5b646cd1 2021-11-07 22:58:44 Build hidapi code into SDL as a new public API This prevents conflicts with hidapi linked with applications, as well as allowing applications to make use of HIDAPI on Android and other platforms that might not normally have an implementation available.
d4794028 2021-01-22 08:45:38 Fixed build
9e45372a 2021-01-21 22:47:37 Fixed build on Android and iOS
bf53651d 2021-01-21 22:32:17 Make sure we only do GameCube adapter initialization if we were able to load libusb
3527b494 2021-01-21 22:30:34 Fixed initializing the Nyko and EVORETRO GameCube adaptors This requires root on most Linux distributions, as we have to directly send USB messages to the devices to enable input reports.
c8a64ad9 2021-01-07 10:23:55 Fixed building when SDL_LIBUSB_DYNAMIC is defined
9130f7c3 2021-01-02 10:25:38 Updated copyright for 2021
ff913a22 2020-12-23 16:16:55 Fixed compile warnings on platforms without hidapi support
047b20e3 2020-12-23 16:11:16 Fixed compile warnings on platforms without hidapi support
706f6375 2020-12-13 01:58:05 Fixed build for platforms with only libusb hidapi implementations
43aad966 2020-12-08 19:03:50 Fixed bug 5222 - Crash when running with -DHIDAPI=ON Mathieu Eyraud SDL dynamically loads libusb but does not check the return value of 'SDL_LoadFunction'. Also libusb is loaded and initialized several time because 'SDL_hidapi_wasinit' is never set to true. I made a patch if you want to test: - check that 'hid_init' is called once and only once, - check return value of 'hid_init', - check return value of 'SDL_LoadFunction', - check return value of 'SDL_malloc', - add some debug logging.
59f28b7f 2020-12-03 18:17:01 Fixed whitespace
9fc4a4c9 2020-11-24 22:25:26 Revamped Xbox One HIDAPI init sequence Added support for querying the controller serial number on newer firmware
5b3616c3 2020-11-23 18:24:05 Generalized the raw input controller driver and moved XInput/WGI detection into it for XInput devices This fixes bad report parsing for various newer Xbox controllers, and this driver is now preferred over XInput, since it handles more than 4 controllers.
69a8c846 2020-03-04 09:42:08 Fixed using more than one Xbox Bluetooth controller Don't prevent duplicate devices using hidraw, instead libusb takes precedence and all hidraw devices that aren't handled by libusb are available
bebc4867 2020-03-01 17:53:30 We already have a hidapi implementation for Windows, we don't need libusb
43aa1fa9 2020-01-18 11:21:14 Added support for detecting previously unknown Xbox 360 and Xbox One controllers using the HIDAPI driver with libusb and Android
4e682461 2020-01-17 10:43:14 Reattach the kernel driver after closing USB controllers
a8780c6a 2020-01-16 20:49:25 Updated copyright date for 2020
4e1cc124 2020-01-16 15:32:39 Improved Xbox One controller initialization
a9482a1d 2019-12-30 09:44:32 Added support for the Nintendo GameCube adapter, tested on Steam Link hardware
868551b1 2019-12-20 21:00:16 Fixed duplicate controller entries on Mac OS X when using libusb, due to the HID interface number not being available in the Mac OS X HID code.
c5024a18 2019-12-19 15:21:44 Backed out debug code
e22e77da 2019-12-19 15:01:35 Added an untested driver for the Nintendo GameCube adapter, based on code contributed by Ethan Lee
4237b183 2019-12-19 04:31:00 Fixed compiler warning
52b6ab21 2019-12-16 17:11:23 Added support for the SteelSeries Stratus Duo
f7d82e56 2019-07-31 12:20:55 hidapi: Add SDL_hidapi.c, allows support for multiple hidapi backends. This is currently supported on Linux and macOS. iOS and Android are not supported at all, Windows support could be added with some changes to the libusb backend. The Visual Studio and Xcode projects do not use this feature. Based on Valve Software's hid.cpp, written in collaboration with Andrew Eikum.