Module prelude

Source
Expand description

The input prelude.

This includes the most common types in this crate, re-exported for your convenience.

Structs§

Axis
Stores the position data of the input devices of type T.
ButtonInput
A “press-able” input of type T.
Gamepad
Stores a connected gamepad’s metadata such as the name and its GamepadButton and GamepadAxis.
GamepadSettings
Gamepad settings component.
TouchInput
A touch input event.
Touches
A collection of Touches.

Enums§

GamepadAxis
Represents gamepad input types that are mapped in the range [-1.0, 1.0]
GamepadButton
Represents gamepad input types that are mapped in the range [0.0, 1.0].
KeyCode
The key code of a KeyboardInput.
MouseButton
A button on a mouse device.