How to code an application in Python/Wayland/Linux that uses multiple mice as distinct inputs?
1
vote
1
answer
484
views
I'd like to write an application that emulates jeopardy buzzers. There would be one host computer connected to N mice, which act as each player's buzzers.
What would be the _simplest_ way to write this application in Python? An ideal solution would avoid tampering or creating new physical hardware.
Options I'm considering:
- I've heard USB devices are read by the OS as a plaintext stream somewhere. But where?
- I could also bind each button to a different key, and just listen for keyboard events. Is it possible to bind right-click on mouse-0 to key-0, but right-click on mouse-1 to key-1? or do all right-clicks get bound to the same key?
There are so many options, I am wondering what is the easiest? Also a lot of the reading I've done is specific to X11 (
xinput this
or xev that
). How should one do the equivalent in Wayland?
Asked by charmoniumQ
(255 rep)
Aug 4, 2023, 07:08 PM
Last activity: Aug 6, 2023, 05:29 PM
Last activity: Aug 6, 2023, 05:29 PM