From b3a746d8c4e98f3b233b7a08c726cae3062c6808 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 8 Oct 2020 11:09:37 -0400 Subject: [PATCH] update parameter name and version --- hook.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hook.go b/hook.go index 189f41c..420afa1 100644 --- a/hook.go +++ b/hook.go @@ -32,7 +32,7 @@ import ( const ( // Version get the gohook version - Version = "v0.30.2.88, Sierra Nevada!" + Version = "v0.30.4.100, Sierra Nevada!" // HookEnabled honk enable status HookEnabled = 1 // iota @@ -50,6 +50,7 @@ const ( MouseWheel = 11 FakeEvent = 12 + // Keychar could be v CharUndefined = 0xFFFF WheelUp = -1 @@ -127,10 +128,10 @@ func Register(when uint8, cmds []string, cb func(Event)) { } // Process return go hook process -func Process(EvChan <-chan Event) (out chan bool) { +func Process(evChan <-chan Event) (out chan bool) { out = make(chan bool) go func() { - for ev := range EvChan { + for ev := range evChan { if ev.Kind == KeyDown || ev.Kind == KeyHold { pressed[ev.Keycode] = true } else if ev.Kind == KeyUp {