mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
add drag smooth function support
This commit is contained in:
parent
332a0deb6f
commit
cb549ee939
1 changed files with 7 additions and 0 deletions
|
|
@ -382,6 +382,13 @@ func Drag(x, y int, args ...string) {
|
|||
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,
|
||||
// moves mouse to x, y human like, with the mouse button up.
|
||||
func MoveMouseSmooth(x, y int, args ...interface{}) bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue