@blinry@chaos.social
I always had a good time writing games in the LΓVE engine! <3 So I forked LΓVE, and found an easy way to return the mouse device ID when users receive a "mousemoved" callback in Lua!
Butβ¦ the ID was always 0 β for both devices! :(
LΓVE is built on top of the graphics library SDL, which I knew had introduced some multi-seat features on Wayland recently. So maybe SDL was the culprit?
@blinry@chaos.social
So I tried it in pure #SDL3! I thought I'd never have to code something in C again, but here we are.
And indeed: The device IDs are always 0 there, as well β making it impossible to differentiate my two mice.
I haven't figured out why yet; might need some deep-dive into the SDL code to find out? Or maybe I'm not passing the events in properly from "above" (my hacked niri compositor). But given that the other approaches worked, it's maybe something in the SDL pipelineβ¦