mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
update godoc and clearer parameter name
This commit is contained in:
parent
0b29899150
commit
3d2ef162e6
@ -468,15 +468,16 @@ func SetMouseDelay(delay int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ScrollMouse scroll the mouse
|
// ScrollMouse scroll the mouse
|
||||||
func ScrollMouse(x int, y string) {
|
func ScrollMouse(x int, direction string) {
|
||||||
cx := C.size_t(x)
|
cx := C.size_t(x)
|
||||||
cy := C.CString(y)
|
cy := C.CString(direction)
|
||||||
C.scroll_mouse(cx, cy)
|
C.scroll_mouse(cx, cy)
|
||||||
|
|
||||||
defer C.free(unsafe.Pointer(cy))
|
defer C.free(unsafe.Pointer(cy))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scroll scroll the mouse with x, y
|
// Scroll scroll the mouse with x, y
|
||||||
|
// robotgo.Scroll(x, y, msDelay int)
|
||||||
func Scroll(x, y int, args ...int) {
|
func Scroll(x, y int, args ...int) {
|
||||||
var msDelay = 10
|
var msDelay = 10
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user