From 19594babaf78e4067d34645ab64954737990d51d Mon Sep 17 00:00:00 2001 From: Sorgelig Date: Tue, 1 Nov 2022 02:05:27 +0800 Subject: [PATCH] input: permanent controller assignment now searches in Sysfs as well. --- input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/input.cpp b/input.cpp index 9646c7ab..4cbbb232 100644 --- a/input.cpp +++ b/input.cpp @@ -2392,6 +2392,12 @@ static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int assign_player(dev, i + 1); break; } + + if (strcasestr(input[dev].sysfs, cfg.player_controller[i])) + { + assign_player(dev, i + 1); + break; + } } }