Enum joy::Event [] [src]

pub enum Event {
    Button(u8, bool),
    Axis(u8, i16),
}

Variants

Button(n, b) means button n if b { pressed } else { released }.

Axis(n, x) means axis n moved to position x.

Trait Implementations

impl Clone for Event
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Event
[src]

impl Debug for Event
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Event
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Event
[src]