Documentation
¶
Rendered for windows/amd64
Overview ¶
Package windowsinput provides RobotGo's Pure-Go Windows 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, _ []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 ¶
View Source
var ( // ErrUnsupported reports an operation that Win32 cannot safely provide. ErrUnsupported = errors.New("Pure-Go Windows input operation is unsupported") // ErrOwnership reports an attempt to release or overwrite foreign input. ErrOwnership = errors.New("Pure-Go Windows 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 Win32 input transactions and tracks persistent holds.
func (*Backend) DragSmooth ¶
DragSmooth owns the left button for the complete drag transaction.
func (*Backend) KeyboardReady ¶
KeyboardReady verifies that the required Win32 keyboard entry points exist.
func (*Backend) MouseReady ¶
MouseReady verifies the pointer entry points and access to the input desktop.
func (*Backend) MoveAbsolute ¶
MoveAbsolute moves the pointer in virtual-screen coordinates.
func (*Backend) MoveRelative ¶
MoveRelative moves from the current pointer location without acceleration.
func (*Backend) MoveSmooth ¶
MoveSmooth performs a bounded eased movement.
Click to show internal directories.
Click to hide internal directories.