Enum nannou::ui::input::Button []

pub enum Button {
    Keyboard(Key),
    Mouse(MouseButton),
    Controller(ControllerButton),
}

Models different kinds of buttons.

Variants

A keyboard button.

A mouse button.

A controller button.

Trait Implementations

impl Copy for Button

impl Hash for Button

impl Clone for Button

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Key> for Button

Performs the conversion.

impl From<ControllerButton> for Button

Performs the conversion.

impl From<MouseButton> for Button

Performs the conversion.

impl PartialEq<Button> for Button

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

Formats the value using the given formatter.

impl Eq for Button

impl Serialize for Button

impl<'de> Deserialize<'de> for Button