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 Hash for Button

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Button

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Button

Formats the value using the given formatter. Read more

impl From<MouseButton> for Button

Performs the conversion.

impl From<ControllerButton> for Button

Performs the conversion.

impl From<Key> for Button

Performs the conversion.

impl Serialize for Button

Serialize this value into the given Serde serializer. Read more

impl Copy for Button

impl Eq for Button

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<'de> Deserialize<'de> for Button

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Button

impl Sync for Button