mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-04 16:03:54 +00:00
add hook start and end func
This commit is contained in:
parent
5ef1a4ee70
commit
54e8f5f3fc
11
robotgo.go
11
robotgo.go
@ -1231,6 +1231,17 @@ func StopEvent() {
|
|||||||
hook.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 New Issue
Block a user