Update: update godoc and clean go.yml

This commit is contained in:
vcaesar 2023-03-02 17:37:06 -08:00
parent 64c6b8bf80
commit 885d45d4bd
3 changed files with 6 additions and 9 deletions

View File

@ -1,9 +1,6 @@
name: Go
on: [push]
jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
test:
# name: build
strategy:

View File

@ -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()
}

View File

@ -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