Enum input::Button [−] [src]

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

Models different kinds of buttons.

Variants

Keyboard

A keyboard button.

Mouse

A mouse button.

Trait Implementations

Derived Implementations

impl Debug for Button

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

impl Eq for Button

impl PartialEq for Button

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

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

impl Encodable for Button

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

impl Decodable for Button

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

impl Clone for Button

fn clone(&self) -> Button

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

impl Copy for Button