Enum joy::Event
[−]
[src]
pub enum Event { Button(u8, bool), Axis(u8, i16), }
Variants
Button(u8, bool)
Button(n, b)
means button n if b { pressed } else { released }.
Axis(u8, i16)
Axis(n, x)
means axis n moved to position x.
Trait Implementations
impl Clone for Event
[src]
fn clone(&self) -> Event
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Event
[src]
impl Debug for Event
[src]
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
[src]
This method tests for !=
.