Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a few function names on comments #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,15 +1122,15 @@ func KeyDownAction(key string) KeyAction {
}
}

// PointerPause builds a PointerAction which pauses for the supplied duration.
// PointerPauseAction builds a PointerAction which pauses for the supplied duration.
func PointerPauseAction(duration time.Duration) PointerAction {
return PointerAction{
"type": "pause",
"duration": uint(duration / time.Millisecond),
}
}

// PointerMove builds a PointerAction which moves the pointer.
// PointerMoveAction builds a PointerAction which moves the pointer.
func PointerMoveAction(duration time.Duration, offset Point, origin PointerMoveOrigin) PointerAction {
return PointerAction{
"type": "pointerMove",
Expand All @@ -1141,15 +1141,15 @@ func PointerMoveAction(duration time.Duration, offset Point, origin PointerMoveO
}
}

// PointerUp builds an action which releases the specified pointer key.
// PointerUpAction builds an action which releases the specified pointer key.
func PointerUpAction(button MouseButton) PointerAction {
return PointerAction{
"type": "pointerUp",
"button": button,
}
}

// PointerDown builds a PointerAction which presses
// PointerDownAction builds a PointerAction which presses
// and holds the specified pointer key.
func PointerDownAction(button MouseButton) PointerAction {
return PointerAction{
Expand Down