diff options
| author | David Shadoff <[email protected]> | 2021-09-07 21:13:34 -0400 |
|---|---|---|
| committer | David Shadoff <[email protected]> | 2021-09-07 21:13:34 -0400 |
| commit | 185bb21bdd1177b14415751fd0b626d0f9c79e15 (patch) | |
| tree | 20c178dc15e3d929eab0551d720f98fb98cc74ad /examples | |
| parent | 582e5dbac53aa2ac7c24249712081833986b3f27 (diff) | |
Add PS4-compatible controllers
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/hid_controller/src/hid_app.c | 1 | ||||
| -rw-r--r-- | examples/host/hid_controller/src/main.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/host/hid_controller/src/hid_app.c b/examples/host/hid_controller/src/hid_app.c index d88c74ac4..bbfea8182 100644 --- a/examples/host/hid_controller/src/hid_app.c +++ b/examples/host/hid_controller/src/hid_app.c @@ -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 ); } diff --git a/examples/host/hid_controller/src/main.c b/examples/host/hid_controller/src/main.c index e13fa818a..b9b37a4d2 100644 --- a/examples/host/hid_controller/src/main.c +++ b/examples/host/hid_controller/src/main.c @@ -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(); |
