On Tue Jan 6 10:47:42 2026 +0000, Rémi Bernon wrote:
Could we just fill button_map sequentially if EV_BTN/EVIOCGBTNCNT are there? I think this would make the ev_btn flag unnecessary and allow to squash the set_report_from_event cases together. We could/should probably make sure we're not considering the device as a gamepad at the same time, though this might be guaranteed with the next change, which should be reordered first maybe. Thing is, we don't need the button map at all. Ideally, it would be removed some time down the line. The notion of named usages for generic buttons was wrong that 20 or so years ago and we're still paying the price.
That's why I made it so the button map is completely circumvented. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9853#note_126446