mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Merge pull request #1078 from dshadoff/more_ps4_controllers
Add PS4-compatible controllers
This commit is contained in:
commit
4a63326ed9
@ -113,6 +113,7 @@ static inline bool is_sony_ds4(uint8_t dev_addr)
|
||||
|
||||
return ( (vid == 0x054c && (pid == 0x09cc || pid == 0x05c4)) // Sony DualShock4
|
||||
|| (vid == 0x0f0d && pid == 0x005e) // Hori FC4
|
||||
|| (vid == 0x0f0d && pid == 0x00ee) // Hori PS4 Mini (PS4-099U)
|
||||
|| (vid == 0x1f4f && pid == 0x1002) // ASW GG xrd controller
|
||||
);
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ int main(void)
|
||||
board_init();
|
||||
|
||||
printf("TinyUSB Host HID Controller Example\r\n");
|
||||
printf("Note: Events only displayed for explictly supported controllers\r\n");
|
||||
|
||||
tusb_init();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user