Capture mouse and keyboard events or control them on Linux
- Only Linux based
- Need root privilages
sudo apt-get install xdotool
go get github.com/kiki0805/goinput
- You can find a example script in
example/main.go
sudo -E go run main.go
- The controller depends on
xdotool
. Check https://www.linux.org/threads/xdotool-keyboard.10528/ for its supported keysequence.
This library is under the MIT License