mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13: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)
|
||||
#####[MouseToggle](#MouseToggle)
|
||||
#####[DragMouse](#DragMouse)
|
||||
#####[Drag](#DragMouse)(Equivalent to DragMouse)
|
||||
#####[GetMousePos](#GetMousePos)
|
||||
#####[ScrollMouse](#ScrollMouse)
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include "../base/os.h"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user