mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-30 04:20:26 +00:00
Merge pull request #1074 from unlimitedcodeworks/tusb_host_gamepad_add_additional_ps4_compatible_vid_pid_combos
Tusb host gamepad add additional ps4 compatible vid pid combos
This commit is contained in:
commit
78f88cf5c4
@ -111,7 +111,10 @@ static inline bool is_sony_ds4(uint8_t dev_addr)
|
||||
uint16_t vid, pid;
|
||||
tuh_vid_pid_get(dev_addr, &vid, &pid);
|
||||
|
||||
return (vid == 0x054c && pid == 0x09cc);
|
||||
return ( (vid == 0x054c && (pid == 0x09cc || pid == 0x05c4)) // Sony DualShock4
|
||||
|| (vid == 0x0f0d && pid == 0x005e) // Hori FC4
|
||||
|| (vid == 0x1f4f && pid == 0x1002) // ASW GG xrd controller
|
||||
);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
Loading…
x
Reference in New Issue
Block a user