Crate livesplit_hotkey

source ·
Expand description

livesplit-hotkey is a crate that allows listening to hotkeys even when the application is not in focus. The crate currently supports Windows, macOS, Linux and the web via wasm-bindgen. On unsupported platforms the crate still compiles but uses a stubbed out implementation instead that never receives any hotkeys.

Structs

A hook allows you to listen to hotkeys.
A hotkey is a combination of a key code and a set of modifiers.
The modifier keys that are currently pressed.

Enums

The error type for this crate.
A key code represents a physical key on a keyboard and is independent of the keyboard layout. The values are based on the UI Events KeyboardEvent code Values specification. There are some additional values for Gamepad support and some browser specific values.
Every KeyCode is grouped into one of these classes.

Type Definitions

The result type for this crate.