Update README.md and fixed clink

This commit is contained in:
vcaesar 2018-09-16 19:43:30 -04:00
parent b0df75125b
commit 3dccbf0083
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
) )
func main() { func main() {
hook.AsyncHook() // hook.AsyncHook()
veve := hook.AddEvent("v") veve := hook.AddEvent("v")
if veve == 0 { if veve == 0 {
fmt.Println("v...") fmt.Println("v...")

View File

@ -4,7 +4,8 @@ package hook
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations #cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations
#cgo darwin LDFLAGS: -framework Cocoa #cgo darwin LDFLAGS: -framework Cocoa
#cgo linux CFLAGS:-I/usr/src #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 #cgo windows LDFLAGS: -lgdi32 -luser32
#include "event/goEvent.h" #include "event/goEvent.h"