diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aab9878..6224046 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,9 +1,6 @@ name: Go on: [push] jobs: - # build: - # name: Build - # runs-on: ubuntu-latest test: # name: build strategy: diff --git a/hook.go b/hook.go index 4f14c85..123c208 100644 --- a/hook.go +++ b/hook.go @@ -32,7 +32,7 @@ import ( const ( // Version get the gohook version - Version = "v0.31.2.113, Sierra Nevada!" + Version = "v0.40.0.123, Sierra Nevada!" // HookEnabled honk enable status HookEnabled = 1 // iota @@ -260,7 +260,7 @@ func End() { events = map[uint8][]int{} } -// AddEvent add event listener +// AddEvent add the block event listener func addEvent(key string) int { cs := C.CString(key) defer C.free(unsafe.Pointer(cs)) @@ -271,7 +271,7 @@ func addEvent(key string) int { return geve } -// StopEvent stop event listener +// StopEvent stop the block event listener func StopEvent() { C.stop_event() } diff --git a/keycode.go b/keycode.go index d1ccd2e..4224ad0 100644 --- a/keycode.go +++ b/keycode.go @@ -12,11 +12,11 @@ package hook import "github.com/vcaesar/keycode" -// MouseMap robotgo hook mouse's code map +// MouseMap defines the robotgo hook mouse's code map var MouseMap = keycode.MouseMap -// Keycode robotgo hook key's code map +// Keycode defines the robotgo hook key's code map var Keycode = keycode.Keycode -// Special is the special key map +// Special defines the special key map var Special = keycode.Special