PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
167 stars 86 forks source link

Joystick - USB enhance More Axis, Rumble, LEDS #14

Closed KurtE closed 6 years ago

KurtE commented 6 years ago

Added support for Joysticks, that on some of them we can not receive more of the Joysticks axis. So far mainly on PS3 and PS4. So you can now get the Gyro/accel stuff. You get feedback on the DS4 touch area, PS3 you can get the pressure values on several of the buttons. LIke the RT/LT ones.

In addition added some support for Rumble. So far it appears to be working somewhat on the PS3 and PS4 controllers. On the PS4 you can also set the RGB LED light values and on the PS3 you can set the 4 LEDS on the front., which are normally used to say which controller it is.

Notes: I added code to allow the PS3 to ask the HID parser class to send a control message. Also changed the hid parser to allow me allow the PS4 to set up it's own buffer to use with the message stuff as it still needs the HID descriptor to be intact. Also needed to be able to specify the size of the message to send as the PS4 does not send a full OUT endpoint sized message.

Let me know what you think

Kurt