mirror of
https://github.com/robotn/gohook.git
synced 2024-11-25 05:46:52 +08:00
Update README.md and fixed clink
This commit is contained in:
parent
b0df75125b
commit
3dccbf0083
@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
hook.AsyncHook()
|
||||
// hook.AsyncHook()
|
||||
veve := hook.AddEvent("v")
|
||||
if veve == 0 {
|
||||
fmt.Println("v...")
|
||||
|
3
hook.go
3
hook.go
@ -4,7 +4,8 @@ package hook
|
||||
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations
|
||||
#cgo darwin LDFLAGS: -framework Cocoa
|
||||
#cgo linux CFLAGS:-I/usr/src
|
||||
#cgo linux LDFLAGS: -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11 -lm
|
||||
#cgo linux LDFLAGS: -L/usr/src -lX11 -lXtst
|
||||
#cgo linux LDFLAGS: -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11
|
||||
#cgo windows LDFLAGS: -lgdi32 -luser32
|
||||
|
||||
#include "event/goEvent.h"
|
||||
|
Loading…
Reference in New Issue
Block a user