S0raWasTaken / XKeyClicker

A Keyboard autoclicker
GNU General Public License v3.0
5 stars 1 forks source link

Wayland support #6

Open S0raWasTaken opened 2 years ago

S0raWasTaken commented 2 years ago

rdev does not work on wayland, and it's basically this program's core

Jocadbz commented 1 year 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.