Enum conrod::input::Button []

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

Models different kinds of buttons.

Variants

Keyboard(Key)

A keyboard button.

Mouse(MouseButton)

A mouse button.

Controller(ControllerButton)

A controller button.

Trait Implementations

impl Debug for Button

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Hash for Button

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Eq for Button

impl PartialEq<Button> for Button

fn eq(&self, __arg_0: &Button) -> bool

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

fn ne(&self, __arg_0: &Button) -> bool

This method tests for !=.

impl Encodable for Button

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder

impl Decodable for Button

fn decode<__D>(__arg_0: &mut __D) -> Result<Button, __D::Error> where __D: Decoder

impl Clone for Button

fn clone(&self) -> Button

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Button

impl From<Key> for Button

fn from(key: Key) -> Button

Performs the conversion.

impl From<MouseButton> for Button

fn from(btn: MouseButton) -> Button

Performs the conversion.

impl From<ControllerButton> for Button

fn from(btn: ControllerButton) -> Button

Performs the conversion.