Crate input

source · []
Expand description

Git Interactive Rebase Tool - Input Module

Description

This module is used to handle working with input events.

Test Utilities

To facilitate testing the usages of this crate, a set of testing utilities are provided. Since these utilities are not tested, and often are optimized for developer experience than performance should only be used in test code.

Modules

Utilities for writing tests that interact with input events.

Structs

A handler for reading and processing events.

Represents options for parsing input events.

Represents a mapping between an input event and an action.

Represents a key event.

Represents key modifiers (shift, control, alt).

Represents a mouse event.

Represents a message sender and receiver for passing actions between threads.

Enums

An event, either from an input device, system change or action event.

Represents a key.

A mouse event kind.

Represents an event that is not tied directly to a user input device.

Traits

A custom event compatible enum.

A custom keybindings compatible struct.

Functions

Map a keybinding to a list of events.

Spawn a thead for handling events.