Crate amethyst_input

source ·
Expand description

A collection of abstractions for various input devices to be used with Amethyst.

Structs

Used for saving and loading input settings.
Bundle for adding the InputHandler.
This struct holds state information about input devices.
Input system

Enums

Represents any input represented by a float value from -1 to 1. Retrieve the value of this with axis_value.
A Button is any kind of digital input that the engine supports.
Controller axes matching SDL controller model
Controller buttons matching SDL controller model
Events generated by the input system
Indicates in what direction a mouse wheel scroll event was.

Functions

Gets the input axis value from the InputHandler. If the name is None, it will return the default value of the axis (0.0).
If this event was for manipulating a keyboard key then this will return the VirtualKeyCode and the new state.
Returns true if the event passed in is a request to close the game window.
Returns true if the event passed in is a key down event for the provided VirtualKeyCode.