Crate winput

Source

Modules§

message_loop
The message_loop module provides a way to retreive keyboard and mouse input messages directly from the system.

Structs§

Input
This structure is used by send_inputs to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.
Mouse
A zero-sized structure that wraps functions related to the mouse.
WindowsError
Represents a Windows error.

Enums§

Action
Represents an action that can be taken on a key or button.
Button
A mouse button.
MouseMotion
Describes a mouse motion.
Vk
A list of all available Virtual-Key Codes.
WheelDirection
Describes the direction of a mouse wheel.

Traits§

Keylike
A trait for objects that can be used as keys. For example a Vk or a char can be used as a key.

Functions§

press
Synthesize an event that presses the key.
release
Synthesizes an event that releases the key.
send
Synthesizes two events. One that presses the key, one that releases the key.
send_inputs
Synthesizes keystrokes, mouse motions, and button clicks.
send_keys
Synthesizes keystrokes according to the given iterator of keys.
send_str
Synthesizes keystrokes following the given string reference.