[][src]Crate simulate

Structs

EventBuffer

The event buffer is a simple wrapper around a Vec<simulate::Event>.

Enums

Action

An action for a key.

Error
Event

An event that can be sent to a Simulate.

Key

A key that can be pressed.

ScrollDirection

The direction of a Scroll event.

Traits

Keylike

A trait for structures which can be turned into an event, given an action.

Simulate

A trait to handle the input simulation.

Functions

move_mouse_absolute

Moves the mouse, coordinates are normalized to the desktop: (0, 0) map to the top-left of the main monitor and (1, 1) maps to the bottom-right of the main monitor.

move_mouse_relative

Moves the mouse dx pixels to the right and dy pixels down.

press

Sends a Press event for the given keylike.

release

Sends a Release event for the given keylike.

scroll

Uses the mouse wheel vertically.

scroll_horizontal

Uses the mouse wheel horizontally.

send

Sends an event for the given keylike.

send_event

Sends a single event.

send_events

Sends the given events to the default simulator.

send_multiple

Sends Press and Release events for the given keylikes.

send_scroll_event

Sends a scroll event to rotate the mouse wheel in the given direction.

type_str

Types the given string.

Type Definitions

Result

The result type of the crate.