From 54e8f5f3fcd3463facded4ab24e6985713b96472 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 21 Feb 2019 09:47:45 -0400 Subject: [PATCH] add hook start and end func --- robotgo.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/robotgo.go b/robotgo.go index 785d188..563f7ee 100644 --- a/robotgo.go +++ b/robotgo.go @@ -1231,6 +1231,17 @@ func StopEvent() { hook.StopEvent() } +// Start start global event hook +// return event channel +func Start() chan hook.Event { + return hook.Start() +} + +// End removes global event hook +func End() { + hook.End() +} + /* ____ __ ____ __ .__ __. _______ ______ ____ __ ____ \ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /