mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-19 14:23:55 +00:00
add drag smooth function support
This commit is contained in:
parent
332a0deb6f
commit
cb549ee939
@ -382,6 +382,13 @@ func Drag(x, y int, args ...string) {
|
|||||||
C.drag_mouse(cx, cy, button)
|
C.drag_mouse(cx, cy, button)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DragSmooth drag the mouse smooth
|
||||||
|
func DragSmooth(x, y int, args ...interface{}) {
|
||||||
|
MouseToggle("down")
|
||||||
|
MoveSmooth(x, y, args...)
|
||||||
|
MouseToggle("up")
|
||||||
|
}
|
||||||
|
|
||||||
// MoveMouseSmooth move the mouse smooth,
|
// MoveMouseSmooth move the mouse smooth,
|
||||||
// moves mouse to x, y human like, with the mouse button up.
|
// moves mouse to x, y human like, with the mouse button up.
|
||||||
func MoveMouseSmooth(x, y int, args ...interface{}) bool {
|
func MoveMouseSmooth(x, y int, args ...interface{}) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user