summaryrefslogtreecommitdiff
path: root/examples/host/hid_controller/src
diff options
context:
space:
mode:
authorChristian Arlt <[email protected]>2021-09-06 19:38:31 +0200
committerChristian Arlt <[email protected]>2021-09-06 19:38:31 +0200
commitc53ce53058fc4d2cd7928836cdc2a83615287f3e (patch)
tree28efac04d2e6e9b0d431ec381bd575a4d790650e /examples/host/hid_controller/src
parent831a45f14bcc833d536cab39bef61cc67533fa73 (diff)
Added Sony DualShock4 CUH-ZCT1E pid
Diffstat (limited to 'examples/host/hid_controller/src')
-rw-r--r--examples/host/hid_controller/src/hid_app.c2
1 files changed, 1 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..ce084dc85 100644
--- a/examples/host/hid_controller/src/hid_app.c
+++ b/examples/host/hid_controller/src/hid_app.c
@@ -111,7 +111,7 @@ 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
}
//--------------------------------------------------------------------+