summaryrefslogtreecommitdiff
path: root/examples/host/hid_controller/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-09-07 11:39:47 +0700
committerGitHub <[email protected]>2021-09-07 11:39:47 +0700
commit78f88cf5c4380f5a6c7a86397c48a7302ee36b47 (patch)
tree281aaa7dd20c7f9ab86f3bc6e0956211a9720c30 /examples/host/hid_controller/src
parentcbb6dfd6a5fac9e88c4ba976bc9e2db9d79ae474 (diff)
parentcc08bb6f994f9d5d004d786835809cc1d998205d (diff)
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
Diffstat (limited to 'examples/host/hid_controller/src')
-rw-r--r--examples/host/hid_controller/src/hid_app.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/host/hid_controller/src/hid_app.c b/examples/host/hid_controller/src/hid_app.c
index c61ce70f3..d88c74ac4 100644
--- a/examples/host/hid_controller/src/hid_app.c
+++ b/examples/host/hid_controller/src/hid_app.c
@@ -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
+ );
}
//--------------------------------------------------------------------+