Commit graph

12 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
b62528d813 Just get the endpoint address directly from the epInfo struct 2019-08-31 13:13:18 +02:00
Kristian Sloth Lauszus
e7a01565cd Use descriptor length in order to advance the buffer when parsing the descriptors
This caused an issue with the PS4 Slim controller, as the endpoint descriptor was two bytes longer on the PS4 slim controller when reading the audio interface

I suspect this is due to the fact that the audio interface (USB descriptor type 0x24) it is currently not supported by the library

This is similar to what is done in the example as well: cbea36f76f/examples/USB_desc/USB_desc.ino (L241)

Fixes issue #273
2017-01-31 00:07:13 +01:00
Pavel Fatin
969eabb8d7 Compatibility with Arduino's core HID / Mouse / Keyboard libraries
The following collisions resolved:

hid.h -> usbhid.h
hid.cpp -> usbhid.cpp
HID -> USBHID
HID_BOOT_PROTOCOL -> USB_HID_BOOT_PROTOCOL
HID_PROTOCOL_NONE -> USB_HID_PROTOCOL_NONE
HID_PROTOCOL_KEYBOARD -> USB_HID_PROTOCOL_KEYBOARD
HID_PROTOCOL_MOUSE -> USB_HID_PROTOCOL_MOUSE

As a result, it's possible to use the library together with Arduino's bundled HID / Mouse / Keyboard libraries (Leonardo, Micro, or Due).

https://www.arduino.cc/en/Reference/MouseKeyboard
2016-01-16 20:34:16 +01:00
Andrew J. Kroll
586ed62467 CRLF -> LF 2015-03-12 17:27:21 -04:00
Andrew J. Kroll
bd8c8e7404 Fix use of "bool" so ARM compiles correctly 2015-02-19 03:14:39 -05:00
Kristian Lauszus
4a44c8f039 Implemented VIDPIDOK in PS4USB 2014-07-01 13:17:56 +02:00
Kristian Lauszus
37d59a63b2 bigRumble and smallRumble values were swapped 2014-02-17 17:39:15 +01:00
Kristian Lauszus
a21d1e7258 Cleanup
No new code
2014-02-17 00:50:02 +01:00
Kristian Lauszus
6373ebe6ce Can now set the rumble and light on the PS4 controller
Still need to test it via USB
2014-02-17 00:21:21 +01:00
Kristian Lauszus
7806212132 Removed some unnecessary functions and some other cleanup 2014-02-03 23:06:27 +01:00
Kristian Lauszus
e781d6c554 Updated some comments and some other minor things 2014-01-19 16:58:29 +01:00
Kristian Lauszus
da2ee95445 Added support for the PS4 controller via USB
Also improved the PS4BT library
2014-01-18 22:36:01 +01:00