mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
update godoc and clearer parameter name
This commit is contained in:
parent
0b29899150
commit
3d2ef162e6
1 changed files with 3 additions and 2 deletions
|
|
@ -468,15 +468,16 @@ func SetMouseDelay(delay int) {
|
|||
}
|
||||
|
||||
// ScrollMouse scroll the mouse
|
||||
func ScrollMouse(x int, y string) {
|
||||
func ScrollMouse(x int, direction string) {
|
||||
cx := C.size_t(x)
|
||||
cy := C.CString(y)
|
||||
cy := C.CString(direction)
|
||||
C.scroll_mouse(cx, cy)
|
||||
|
||||
defer C.free(unsafe.Pointer(cy))
|
||||
}
|
||||
|
||||
// Scroll scroll the mouse with x, y
|
||||
// robotgo.Scroll(x, y, msDelay int)
|
||||
func Scroll(x, y int, args ...int) {
|
||||
var msDelay = 10
|
||||
if len(args) > 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue