You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dummy-pointer/dummy-pointer.go

20 lines
324 B

package main
import (
"os"
"os/signal"
"syscall"
"github.com/bendahl/uinput"
)
func main() {
mouse, err := uinput.CreateMouse("/dev/uinput", []byte("dummy-pointer"))
if err != nil {
os.Exit(1)
}
sc := make(chan os.Signal, 1)
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM)
<-sc
mouse.Close()
os.Exit(0)
}