From ebf0124c777d46867be33708fe15f9b0f58117d9 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 6 Jul 2021 05:16:13 +0800 Subject: [PATCH] input: correction for DS4/DS5. --- input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input.cpp b/input.cpp index 983f02b..88cca89 100644 --- a/input.cpp +++ b/input.cpp @@ -3698,10 +3698,10 @@ int input_test(int getchar) if (input[i].bind >= 0) edev = input[i].bind; // mouse to event if (input[edev].bind >= 0) dev = input[edev].bind; // event to base device - if (input[i].quirk == QUIRK_DS4TOUCH && input[dev].lightgun) + if ((input[i].quirk == QUIRK_DS4TOUCH || input[i].quirk == QUIRK_DS4)) { //disable DS4 mouse in lightgun mode - continue; + if (input[dev].lightgun) continue; } if (input[i].quirk == QUIRK_TOUCHGUN)