Enum conrod::input::Button[][src]

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

Models different kinds of buttons.

Variants

A keyboard button.

A mouse button.

A controller button.

A controller hat (d-Pad)

Trait Implementations

impl Hash for Button
[src]

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
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Button
[src]

Formats the value using the given formatter. Read more

impl From<ControllerButton> for Button
[src]

Performs the conversion.

impl From<Key> for Button
[src]

Performs the conversion.

impl From<MouseButton> for Button
[src]

Performs the conversion.

impl Serialize for Button
[src]

Serialize this value into the given Serde serializer. Read more

impl Copy for Button
[src]

impl Eq for Button
[src]

impl PartialEq<Button> 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<'de> Deserialize<'de> for Button
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Button

impl Sync for Button