move event

This commit is contained in:
vCaesar 2016-10-27 16:02:03 +08:00
parent 8eba397ddd
commit 9bdcfc4512
2 changed files with 13 additions and 13 deletions

View File

@ -14,8 +14,8 @@ package robotgo
#include "mouse/goMouse.h"
#include "key/goKey.h"
#include "bitmap/goBitmap.h"
//#include "window/goWindow.h"
//#include "event/goEvent.h"
//#include "window/goWindow.h"
*/
import "C"
@ -336,16 +336,6 @@ func GetPortion(bit C.MMBitmapRef, x, y, w, h C.size_t) C.MMBitmapRef {
return pos
}
/*
____ __ ____ __ .__ __. _______ ______ ____ __ ____
\ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /
\ \/ \/ / | | | \| | | .--. | | | | \ \/ \/ /
\ / | | | . ` | | | | | | | | \ /
\ /\ / | | | |\ | | '--' | `--' | \ /\ /
\__/ \__/ |__| |__| \__| |_______/ \______/ \__/ \__/
*/
/*
------------ --- --- ------------ ---- ---- ------------
************ *** *** ************ ***** **** ************
@ -357,3 +347,13 @@ ____ __ ____ __ .__ __. _______ ______ ____ __ ____
************ **** ************ **** **** ****
*/
/*
____ __ ____ __ .__ __. _______ ______ ____ __ ____
\ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /
\ \/ \/ / | | | \| | | .--. | | | | \ \/ \/ /
\ / | | | . ` | | | | | | | | \ /
\ /\ / | | | |\ | | '--' | `--' | \ /\ /
\__/ \__/ |__| |__| \__| |_______/ \______/ \__/ \__/
*/

View File

@ -6,7 +6,7 @@ import (
"github.com/go-vgo/robotgo"
)
func arobotgo() {
func aRobotgo() {
x, y := robotgo.GetMousePos()
Println("pos:", x, y)
@ -48,5 +48,5 @@ func arobotgo() {
}
func main() {
arobotgo()
aRobotgo()
}