Module bismuth::input [] [src]

This module provides an interface for querying user input devices like keyboards and mice.

Input devices track two stages of state: live state and snapshot state. Live state and snapshot state are updated via the React and Snapshot traits, respectively. This module provides access to the live state to query the current state of a device and also provides traits that compare live state to snapshot state.

Structs

Keyboard

Keyboard input device.

KeyboardState
Mouse

Mouse (pointer) input device.

MousePosition

Mouse position (pointer) element.

MouseProximity

Mouse proximity element. Indicates whether or not the mouse position (pointer) is within the bounds of the window.

MouseState

Enums

MouseButton
VirtualKeyCode

Traits

InputDifference

Determines the difference in state for an input element.

InputState

Provides a state for an input element.

InputTransition

Provides a transition state for an input element.

Snapshot

Provides snapshotting for an input device. Input devices maintain a live state and snapshot state, which are updated via React and this trait, respectively.