Skip to content

Commit

Permalink
Added support for the Logitech Cordless Precision PS3 controller
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 1, 2022
1 parent 4f9c2b3 commit 36c5d5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/hidapi/SDL_hidapi_ps3.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ static SDL_bool HIDAPI_DriverPS3ThirdParty_UpdateDevice(SDL_HIDAPI_Device *devic
continue;
}

if (size == 27) {
if (size >= 19) {
HIDAPI_DriverPS3ThirdParty_HandleStatePacket(joystick, ctx, data, size);
} else {
#ifdef DEBUG_JOYSTICK
Expand Down
2 changes: 2 additions & 0 deletions src/joystick/usb_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define USB_VENDOR_GOOGLE 0x18d1
#define USB_VENDOR_HORI 0x0f0d
#define USB_VENDOR_HYPERKIN 0x2e24
#define USB_VENDOR_LOGITECH 0x046d
#define USB_VENDOR_MADCATZ 0x0738
#define USB_VENDOR_MICROSOFT 0x045e
#define USB_VENDOR_NACON 0x146b
Expand All @@ -51,6 +52,7 @@
#define SONY_THIRDPARTY_VENDOR(X) \
(X == USB_VENDOR_DRAGONRISE || \
X == USB_VENDOR_HORI || \
X == USB_VENDOR_LOGITECH || \
X == USB_VENDOR_MADCATZ || \
X == USB_VENDOR_NACON || \
X == USB_VENDOR_PDP || \
Expand Down

0 comments on commit 36c5d5c

Please sign in to comment.