Enum amethyst_input::Button[][src]

pub enum Button {
    Key(VirtualKeyCode),
    ScanCode(u32),
    Mouse(MouseButton),
    Controller(u32ControllerButton),
}

A Button is any kind of digital input that the engine supports.

Variants

Virtual Keyboard keys, use this when the letter on the key matters more than the position of the key.

Scan code from keyboard, use this when the position of the key matters more than letter on the key.

Mouse buttons

Controller buttons matching SDL controller model. A tuple of sequential controller_id in order of connection and specific type of used controller button.

Trait Implementations

impl Eq for Button
[src]

impl PartialEq for Button
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Button
[src]

Formats the value using the given formatter. Read more

impl Copy for Button
[src]

impl Clone for Button
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<VirtualKeyCode> for Button
[src]

Performs the conversion.

impl From<MouseButton> for Button
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Button

impl Sync for Button