From 650ef586914513feabab7ac229d8267496e37807 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 28 Aug 2021 15:59:14 +0800 Subject: [PATCH] input: don't open motion sensor device of dualshock/dualsense. --- input.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/input.cpp b/input.cpp index a626ed3..46c302e 100644 --- a/input.cpp +++ b/input.cpp @@ -3662,6 +3662,14 @@ int input_test(int getchar) if (input[n].vid == 0x054c) { + if (strcasestr(input[n].name, "Motion")) + { + // don't use Accelerometer + close(pool[n].fd); + pool[n].fd = -1; + continue; + } + if (input[n].pid == 0x0268) input[n].quirk = QUIRK_DS3; else if (input[n].pid == 0x05c4 || input[n].pid == 0x09cc || input[n].pid == 0x0ba0 || input[n].pid == 0x0ce6) {