Enum piston::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<(), Error>

impl Eq for Button

impl PartialEq<Button> for Button

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

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

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

impl Copy for Button