Enum amethyst_input::Button [] [src]

pub enum Button {
    Key(VirtualKeyCode),
    Mouse(MouseButton),
}

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

Variants

Keyboard keys

Mouse buttons

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.

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.