On Tue Jan 6 14:47:25 2026 +0000, Tomasz Pakuła wrote:
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. I don't want the code to still rely on EV_KEY at all if EV_BTN is fired plus the usages could run out and the map, again, would be useless. It IS possible to create a device with, say, 1024 buttons and KEY_MAX is lower than that (0x2ff = 767). Possible but I don't see it being removed anytime soon, it would require every device to switch to the new EV_BTN, and we would lose compatibility with older kernels.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9853#note_126910