Documentation
¶
Overview ¶
Package darwininput provides RobotGo's Pure-Go macOS input backend.
Index ¶
- Variables
- type Backend
- func (backend *Backend) Click(name string, double bool) error
- func (backend *Backend) Close() error
- func (backend *Backend) DragSmooth(x, y int, lowDelay, highDelay float64) error
- func (backend *Backend) Key(event KeyEvent) error
- func (backend *Backend) KeyboardReady() error
- func (backend *Backend) Location() (int, int, error)
- func (backend *Backend) MouseReady() error
- func (backend *Backend) MoveAbsolute(x, y int) error
- func (backend *Backend) MoveRelative(x, y int) error
- func (backend *Backend) MoveSmooth(x, y int, relative bool, lowDelay, highDelay float64) error
- func (backend *Backend) Scroll(x, y int) error
- func (backend *Backend) Text(event TextEvent) error
- func (backend *Backend) Toggle(name string, down bool) error
- type KeyEvent
- type TextEvent
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnsupported reports an operation unavailable through the Quartz backend. ErrUnsupported = errors.New("Pure-Go macOS input operation is unsupported") // ErrPermission reports missing macOS Accessibility permission. ErrPermission = errors.New("Pure-Go macOS input requires Accessibility permission") // ErrOwnership reports an attempt to release or overwrite foreign input state. ErrOwnership = errors.New("Pure-Go macOS input state is not owned by RobotGo") )
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend serializes Quartz input transactions and tracks persistent holds.
func (*Backend) DragSmooth ¶
DragSmooth owns the left button for the complete drag transaction.
func (*Backend) KeyboardReady ¶
KeyboardReady checks the non-prompting Accessibility preflight and Quartz access.
func (*Backend) MouseReady ¶
MouseReady checks the non-prompting Accessibility preflight and Quartz access.
func (*Backend) MoveAbsolute ¶
MoveAbsolute moves the pointer in the CoreGraphics global coordinate space.
func (*Backend) MoveRelative ¶
MoveRelative moves from the current pointer location.
func (*Backend) MoveSmooth ¶
MoveSmooth performs a bounded eased movement.