From b64deae1ae87ae194c92d13a3de62a0bc56fd0f0 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sun, 1 Mar 2020 07:51:52 +0800 Subject: [PATCH] input: add Teensy quirk. --- input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input.cpp b/input.cpp index 6a8f3f7..3be92bb 100644 --- a/input.cpp +++ b/input.cpp @@ -2851,8 +2851,8 @@ int input_test(int getchar) // Includes other buttons and axes, works as a full featured gamepad. if (strstr(uniq, "MiSTer-A1")) input[n].quirk = QUIRK_PDSP_ARCADE; - //Arduino devices may share the same VID:PID, so additional field UNIQ is used to differentiate them - if (input[n].vid == 0x2341 && strlen(uniq)) + //Arduino and Teensy devices may share the same VID:PID, so additional field UNIQ is used to differentiate them + if ((input[n].vid == 0x2341 || (input[n].vid == 0x16C0 && (input[n].pid>>8) == 0x4)) && strlen(uniq)) { snprintf(input[n].idstr, sizeof(input[n].idstr), "%04x_%04x_%s", input[n].vid, input[n].pid, uniq); char *p;