From a1d52030699b179f7c6f1b2f08d47193689c76da Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 6 May 2019 04:00:50 +0800 Subject: [PATCH] input: prevent merging of Raphnet ports. --- input.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/input.cpp b/input.cpp index b307c19..9ddb0d9 100644 --- a/input.cpp +++ b/input.cpp @@ -2346,6 +2346,12 @@ int input_test(int getchar) } } + // Raphnet devices: clear uniq to prevent merging the ports + if (input[n].vid == 0x289b) + { + memset(input[n].uniq, 0, sizeof(input[n].uniq)); + } + n++; if (n >= NUMDEV) break; } @@ -2353,6 +2359,7 @@ int input_test(int getchar) } closedir(d); + // merge multifunctional devices using uniq field for (int i = 0; i < n; i++) { input[i].bind = i;