mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Simplify api
This commit is contained in:
parent
62a37bb9e2
commit
96ebcf6920
1
doc.md
1
doc.md
@ -21,6 +21,7 @@
|
|||||||
#####[Click](#MouseClick)(Equivalent to MouseClick)
|
#####[Click](#MouseClick)(Equivalent to MouseClick)
|
||||||
#####[MouseToggle](#MouseToggle)
|
#####[MouseToggle](#MouseToggle)
|
||||||
#####[DragMouse](#DragMouse)
|
#####[DragMouse](#DragMouse)
|
||||||
|
#####[Drag](#DragMouse)(Equivalent to DragMouse)
|
||||||
#####[GetMousePos](#GetMousePos)
|
#####[GetMousePos](#GetMousePos)
|
||||||
#####[ScrollMouse](#ScrollMouse)
|
#####[ScrollMouse](#ScrollMouse)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../base/os.h"
|
#include "../base/os.h"
|
||||||
|
@ -196,6 +196,13 @@ func DragMouse(x, y int) {
|
|||||||
C.aDragMouse(cx, cy)
|
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
|
//MoveMouseSmooth Move the Mouse Smooth
|
||||||
func MoveMouseSmooth(x, y int, args ...float64) {
|
func MoveMouseSmooth(x, y int, args ...float64) {
|
||||||
cx := C.size_t(x)
|
cx := C.size_t(x)
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#####[Click](#MouseClick)(相当于MouseClick)
|
#####[Click](#MouseClick)(相当于MouseClick)
|
||||||
#####[MouseToggle](#MouseToggle)
|
#####[MouseToggle](#MouseToggle)
|
||||||
#####[DragMouse](#DragMouse)
|
#####[DragMouse](#DragMouse)
|
||||||
|
#####[Drag](#DragMouse)(相当于DragMouse)
|
||||||
#####[GetMousePos](#GetMousePos)
|
#####[GetMousePos](#GetMousePos)
|
||||||
#####[ScrollMouse](#ScrollMouse)
|
#####[ScrollMouse](#ScrollMouse)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user