From 9d92e0f852cae768a8aefc92e15db21f5999cc8f Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 21 Mar 2019 11:03:32 -0400 Subject: [PATCH] update godoc --- robotgo.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/robotgo.go b/robotgo.go index f03a9fd..7e86b7f 100644 --- a/robotgo.go +++ b/robotgo.go @@ -1256,6 +1256,10 @@ func End() { } // AddEvents add global event hook +// +// robotgo.AddEvents("q") +// robotgo.AddEvents("q", "ctrl") +// robotgo.AddEvents("q", "ctrl", "shift") func AddEvents(key string, arr ...string) bool { s := hook.Start() // defer hook.End() @@ -1299,6 +1303,12 @@ func AddEvents(key string, arr ...string) bool { } // AddMouse add mouse event hook +// +// mouse arguments: left, center, right, wheelDown, wheelUp, +// wheelLeft, wheelRight. +// +// robotgo.AddMouse("left") +// robotgo.AddMouse("left", 100, 100) func AddMouse(btn string, x ...int16) bool { s := hook.Start() ukey := mouseMap[btn]