mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-05 16:23:55 +00:00
update parameter name and version
This commit is contained in:
parent
39d2014c54
commit
fdaa440f26
8
hook.go
8
hook.go
@ -53,13 +53,13 @@ func StopEvent() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// EventProcess return go hook process
|
// EventProcess return go hook process
|
||||||
func EventProcess(Events chan hook.Event) chan bool {
|
func EventProcess(events chan hook.Event) chan bool {
|
||||||
return hook.Process(Events)
|
return hook.Process(events)
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventHook register gohook event
|
// EventHook register gohook event
|
||||||
func EventHook(When uint8, keysPressed []string, Callback func(hook.Event)) {
|
func EventHook(when uint8, keysPressed []string, callback func(hook.Event)) {
|
||||||
hook.Register(When, keysPressed, Callback)
|
hook.Register(when, keysPressed, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddEvent add event listener,
|
// AddEvent add event listener,
|
||||||
|
@ -70,7 +70,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Version get the robotgo version
|
// Version get the robotgo version
|
||||||
Version = "v0.90.3.1072, MT. Rainier!"
|
Version = "v0.91.0.1089, MT. Rainier!"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetVersion get the robotgo version
|
// GetVersion get the robotgo version
|
||||||
|
Loading…
Reference in New Issue
Block a user