Versions in this module Expand all Collapse all v0 v0.3.7 Mar 1, 2026 v0.3.5 Feb 27, 2026 v0.3.4 Feb 27, 2026 v0.3.3 Feb 27, 2026 v0.3.2 Feb 23, 2026 v0.3.1 Feb 22, 2026 v0.3.0 Feb 21, 2026 Changes in this version + const CommandCancelDragging + const CommandDispatchDragEvent + const CommandDispatchKeyEvent + const CommandDispatchMouseEvent + const CommandDispatchTouchEvent + const CommandEmulateTouchFromMouseEvent + const CommandImeSetComposition + const CommandInsertText + const CommandSetIgnoreInputEvents + const CommandSetInterceptDrags + const CommandSynthesizePinchGesture + const CommandSynthesizeScrollGesture + const CommandSynthesizeTapGesture + type CancelDraggingParams struct + func CancelDragging() *CancelDraggingParams + func (p *CancelDraggingParams) Do(ctx context.Context) (err error) + type DispatchDragEventParams struct + Data *DragData + Modifiers Modifier + Type DispatchDragEventType + X float64 + Y float64 + func DispatchDragEvent(typeVal DispatchDragEventType, x float64, y float64, data *DragData) *DispatchDragEventParams + func (p *DispatchDragEventParams) Do(ctx context.Context) (err error) + func (p DispatchDragEventParams) WithModifiers(modifiers Modifier) *DispatchDragEventParams + type DispatchDragEventType string + const DragCancel + const DragEnter + const DragOver + const Drop + func (t *DispatchDragEventType) UnmarshalJSON(buf []byte) error + func (t DispatchDragEventType) MarshalJSON() ([]byte, error) + func (t DispatchDragEventType) String() string + type DispatchKeyEventParams struct + AutoRepeat bool + Code string + Commands []string + IsKeypad bool + IsSystemKey bool + Key string + KeyIdentifier string + Location int64 + Modifiers Modifier + NativeVirtualKeyCode int64 + Text string + Timestamp *TimeSinceEpoch + Type KeyType + UnmodifiedText string + WindowsVirtualKeyCode int64 + func DispatchKeyEvent(typeVal KeyType) *DispatchKeyEventParams + func (p *DispatchKeyEventParams) Do(ctx context.Context) (err error) + func (p DispatchKeyEventParams) WithAutoRepeat(autoRepeat bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithCode(code string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithCommands(commands []string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithIsKeypad(isKeypad bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithIsSystemKey(isSystemKey bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithKey(key string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithKeyIdentifier(keyIdentifier string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithLocation(location int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithModifiers(modifiers Modifier) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithNativeVirtualKeyCode(nativeVirtualKeyCode int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithText(text string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithUnmodifiedText(unmodifiedText string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithWindowsVirtualKeyCode(windowsVirtualKeyCode int64) *DispatchKeyEventParams + type DispatchMouseEventParams struct + Button MouseButton + Buttons int64 + ClickCount int64 + DeltaX float64 + DeltaY float64 + Force float64 + Modifiers Modifier + PointerType DispatchMouseEventPointerType + TangentialPressure float64 + TiltX float64 + TiltY float64 + Timestamp *TimeSinceEpoch + Twist int64 + Type MouseType + X float64 + Y float64 + func DispatchMouseEvent(typeVal MouseType, x float64, y float64) *DispatchMouseEventParams + func (p *DispatchMouseEventParams) Do(ctx context.Context) (err error) + func (p DispatchMouseEventParams) WithButton(button MouseButton) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithButtons(buttons int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithClickCount(clickCount int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithDeltaX(deltaX float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithDeltaY(deltaY float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithForce(force float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithModifiers(modifiers Modifier) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithPointerType(pointerType DispatchMouseEventPointerType) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTangentialPressure(tangentialPressure float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTiltX(tiltX float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTiltY(tiltY float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTwist(twist int64) *DispatchMouseEventParams + type DispatchMouseEventPointerType string + const Mouse + const Pen + func (t *DispatchMouseEventPointerType) UnmarshalJSON(buf []byte) error + func (t DispatchMouseEventPointerType) MarshalJSON() ([]byte, error) + func (t DispatchMouseEventPointerType) String() string + type DispatchTouchEventParams struct + Modifiers Modifier + Timestamp *TimeSinceEpoch + TouchPoints []*TouchPoint + Type TouchType + func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams + func (p *DispatchTouchEventParams) Do(ctx context.Context) (err error) + func (p DispatchTouchEventParams) WithModifiers(modifiers Modifier) *DispatchTouchEventParams + func (p DispatchTouchEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchTouchEventParams + type DragData struct + DragOperationsMask int64 + Files []string + Items []*DragDataItem + type DragDataItem struct + BaseURL string + Data string + MimeType string + Title string + type EmulateTouchFromMouseEventParams struct + Button MouseButton + ClickCount int64 + DeltaX float64 + DeltaY float64 + Modifiers Modifier + Timestamp *TimeSinceEpoch + Type MouseType + X int64 + Y int64 + func EmulateTouchFromMouseEvent(typeVal MouseType, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams + func (p *EmulateTouchFromMouseEventParams) Do(ctx context.Context) (err error) + func (p EmulateTouchFromMouseEventParams) WithClickCount(clickCount int64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithDeltaX(deltaX float64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithDeltaY(deltaY float64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithModifiers(modifiers Modifier) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *EmulateTouchFromMouseEventParams + type EventDragIntercepted struct + Data *DragData + type GestureSourceType string + const GestureDefault + const GestureMouse + const GestureTouch + func (t *GestureSourceType) UnmarshalJSON(buf []byte) error + func (t GestureSourceType) MarshalJSON() ([]byte, error) + func (t GestureSourceType) String() string + type ImeSetCompositionParams struct + ReplacementEnd int64 + ReplacementStart int64 + SelectionEnd int64 + SelectionStart int64 + Text string + func ImeSetComposition(text string, selectionStart int64, selectionEnd int64) *ImeSetCompositionParams + func (p *ImeSetCompositionParams) Do(ctx context.Context) (err error) + func (p ImeSetCompositionParams) WithReplacementEnd(replacementEnd int64) *ImeSetCompositionParams + func (p ImeSetCompositionParams) WithReplacementStart(replacementStart int64) *ImeSetCompositionParams + type InsertTextParams struct + Text string + func InsertText(text string) *InsertTextParams + func (p *InsertTextParams) Do(ctx context.Context) (err error) + type KeyType string + const KeyChar + const KeyDown + const KeyRawDown + const KeyUp + func (t *KeyType) UnmarshalJSON(buf []byte) error + func (t KeyType) MarshalJSON() ([]byte, error) + func (t KeyType) String() string + type Modifier int64 + const ModifierAlt + const ModifierCommand + const ModifierCtrl + const ModifierMeta + const ModifierNone + const ModifierShift + func (t *Modifier) UnmarshalJSON(buf []byte) error + func (t Modifier) Int64() int64 + func (t Modifier) MarshalJSON() ([]byte, error) + func (t Modifier) String() string + type MouseButton string + const Back + const Forward + const Left + const Middle + const None + const Right + func (t *MouseButton) UnmarshalJSON(buf []byte) error + func (t MouseButton) MarshalJSON() ([]byte, error) + func (t MouseButton) String() string + type MouseType string + const MouseMoved + const MousePressed + const MouseReleased + const MouseWheel + func (t *MouseType) UnmarshalJSON(buf []byte) error + func (t MouseType) MarshalJSON() ([]byte, error) + func (t MouseType) String() string + type SetIgnoreInputEventsParams struct + Ignore bool + func SetIgnoreInputEvents(ignore bool) *SetIgnoreInputEventsParams + func (p *SetIgnoreInputEventsParams) Do(ctx context.Context) (err error) + type SetInterceptDragsParams struct + Enabled bool + func SetInterceptDrags(enabled bool) *SetInterceptDragsParams + func (p *SetInterceptDragsParams) Do(ctx context.Context) (err error) + type SynthesizePinchGestureParams struct + GestureSourceType GestureSourceType + RelativeSpeed int64 + ScaleFactor float64 + X float64 + Y float64 + func SynthesizePinchGesture(x float64, y float64, scaleFactor float64) *SynthesizePinchGestureParams + func (p *SynthesizePinchGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizePinchGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizePinchGestureParams + func (p SynthesizePinchGestureParams) WithRelativeSpeed(relativeSpeed int64) *SynthesizePinchGestureParams + type SynthesizeScrollGestureParams struct + GestureSourceType GestureSourceType + InteractionMarkerName string + PreventFling bool + RepeatCount int64 + RepeatDelayMs int64 + Speed int64 + X float64 + XDistance float64 + XOverscroll float64 + Y float64 + YDistance float64 + YOverscroll float64 + func SynthesizeScrollGesture(x float64, y float64) *SynthesizeScrollGestureParams + func (p *SynthesizeScrollGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizeScrollGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithInteractionMarkerName(interactionMarkerName string) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithPreventFling(preventFling bool) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithRepeatCount(repeatCount int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithRepeatDelayMs(repeatDelayMs int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithSpeed(speed int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithXDistance(xDistance float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithYDistance(yDistance float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams + type SynthesizeTapGestureParams struct + Duration int64 + GestureSourceType GestureSourceType + TapCount int64 + X float64 + Y float64 + func SynthesizeTapGesture(x float64, y float64) *SynthesizeTapGestureParams + func (p *SynthesizeTapGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizeTapGestureParams) WithDuration(duration int64) *SynthesizeTapGestureParams + func (p SynthesizeTapGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeTapGestureParams + func (p SynthesizeTapGestureParams) WithTapCount(tapCount int64) *SynthesizeTapGestureParams + type TimeSinceEpoch time.Time + func (t *TimeSinceEpoch) UnmarshalJSON(buf []byte) error + func (t TimeSinceEpoch) MarshalJSON() ([]byte, error) + func (t TimeSinceEpoch) Time() time.Time + type TouchPoint struct + Force float64 + ID float64 + RadiusX float64 + RadiusY float64 + RotationAngle float64 + TangentialPressure float64 + TiltX float64 + TiltY float64 + Twist int64 + X float64 + Y float64 + type TouchType string + const TouchCancel + const TouchEnd + const TouchMove + const TouchStart + func (t *TouchType) UnmarshalJSON(buf []byte) error + func (t TouchType) MarshalJSON() ([]byte, error) + func (t TouchType) String() string