mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 07:33:55 +00:00
change in robotgo
This commit is contained in:
parent
a17477c7cc
commit
a720603fe9
@ -15,7 +15,7 @@ package robotgo
|
||||
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations -I/usr/local/opt/libpng/include -I/usr/local/opt/zlib/include
|
||||
#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL -framework IOKit -framework Carbon -framework CoreFoundation -L/usr/local/opt/libpng/lib -lpng -L/usr/local/opt/zlib/lib -lz
|
||||
//#elif defined(USE_X11)
|
||||
#cgo linux CFLAGS:-std=c99 -I/usr/src
|
||||
#cgo linux CFLAGS: -I/usr/src
|
||||
#cgo linux LDFLAGS:-L/usr/src -lpng -lz -lX11 -lXtst -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11 -lm -std=gnu99
|
||||
//#endif
|
||||
#cgo windows LDFLAGS: -lgdi32 -luser32 -lpng -lz
|
||||
@ -447,8 +447,8 @@ func KeyToggle(args ...string) {
|
||||
camkey := C.CString(amkey)
|
||||
camkeyt := C.CString(amkeyt)
|
||||
// defer func() {
|
||||
str := C.aKeyToggle(ckey, cadown, camkey, camkeyt)
|
||||
fmt.Println(str)
|
||||
_ = C.aKeyToggle(ckey, cadown, camkey, camkeyt)
|
||||
//fmt.Println(str)
|
||||
// }()
|
||||
defer C.free(unsafe.Pointer(ckey))
|
||||
defer C.free(unsafe.Pointer(cadown))
|
||||
|
Loading…
Reference in New Issue
Block a user