Skip to content

Commit

Permalink
input: permanent controller assignment now searches in Sysfs as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorgelig committed Oct 31, 2022
1 parent 631276d commit 19594ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 19594ba

Please sign in to comment.