Simplify api

This commit is contained in:
vCaesar 2016-12-17 16:50:57 +08:00
parent 62a37bb9e2
commit 96ebcf6920
4 changed files with 10 additions and 1 deletions

1
doc.md
View File

@ -21,6 +21,7 @@
#####[Click](#MouseClick)(Equivalent to MouseClick)
#####[MouseToggle](#MouseToggle)
#####[DragMouse](#DragMouse)
#####[Drag](#DragMouse)(Equivalent to DragMouse)
#####[GetMousePos](#GetMousePos)
#####[ScrollMouse](#ScrollMouse)

View File

@ -9,7 +9,7 @@
// except according to those terms.
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
#endif
#include "../base/os.h"

View File

@ -196,6 +196,13 @@ func DragMouse(x, y int) {
C.aDragMouse(cx, cy)
}
//Drag Drag the Mouse
func Drag(x, y int) {
cx := C.size_t(x)
cy := C.size_t(y)
C.aDragMouse(cx, cy)
}
//MoveMouseSmooth Move the Mouse Smooth
func MoveMouseSmooth(x, y int, args ...float64) {
cx := C.size_t(x)

View File

@ -21,6 +21,7 @@
#####[Click](#MouseClick)(相当于MouseClick)
#####[MouseToggle](#MouseToggle)
#####[DragMouse](#DragMouse)
#####[Drag](#DragMouse)(相当于DragMouse)
#####[GetMousePos](#GetMousePos)
#####[ScrollMouse](#ScrollMouse)