diff options
| author | Christian Arlt <[email protected]> | 2021-09-06 19:40:14 +0200 |
|---|---|---|
| committer | Christian Arlt <[email protected]> | 2021-09-06 19:40:14 +0200 |
| commit | a0646f20ba515185ec12d9da4ff5954f2db8bef2 (patch) | |
| tree | b3fb72c6c5619677623094b4c68a1e239ea566f3 /examples/host/hid_controller/src | |
| parent | c53ce53058fc4d2cd7928836cdc2a83615287f3e (diff) | |
Added Hori Fighting Commander 4 VID PID
Diffstat (limited to 'examples/host/hid_controller/src')
| -rw-r--r-- | examples/host/hid_controller/src/hid_app.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/host/hid_controller/src/hid_app.c b/examples/host/hid_controller/src/hid_app.c index ce084dc85..c9bd6a722 100644 --- a/examples/host/hid_controller/src/hid_app.c +++ b/examples/host/hid_controller/src/hid_app.c @@ -111,7 +111,9 @@ 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 || pid == 0x05c4)) ); // Sony DualShock4 + return ( (vid == 0x054c && (pid == 0x09cc || pid == 0x05c4)) // Sony DualShock4 + || (vid == 0x0f0d && pid == 0x005e) // Hori FC4 + ); } //--------------------------------------------------------------------+ |
