mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add hook start and end func
This commit is contained in:
parent
5ef1a4ee70
commit
54e8f5f3fc
1 changed files with 11 additions and 0 deletions
11
robotgo.go
11
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()
|
||||
}
|
||||
|
||||
/*
|
||||
____ __ ____ __ .__ __. _______ ______ ____ __ ____
|
||||
\ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /
|
||||
|
|
|
|||
Loading…
Reference in a new issue