add drag smooth function support

This commit is contained in:
vcaesar 2019-06-05 12:59:50 -04:00
parent 332a0deb6f
commit cb549ee939

View File

@ -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 {