input: permanent controller assignment now searches in Sysfs as well.

This commit is contained in:
Sorgelig
2022-11-01 02:05:27 +08:00
parent 631276d59d
commit 19594babaf

View File

@@ -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;
}
}
}