Open S0raWasTaken opened 2 years ago
May I suggest using input-linux crate? It uses the evdev interface directly and therefore does not relies on Wayland and X11 APIs at all. (I guess you can even use it on a TTY, if you are brave enough)
Of course it has some downsides, the current user must be part of the input
group, and you can absolutely forget the Mac support. (This could be mitigated if the Auto clicker could check the current OS thought)
A simple implementation already exists if you want to see how it would affect the code directly.
rdev does not work on wayland, and it's basically this program's core