Struct trellis::core::ButtonEvent [] [src]

pub struct ButtonEvent {
    pub buttons_pressed: Vec<LedButton>,
}

Describes a button event that occurred. At the moment only button press is implemented.

Since the buttons on the trellis can be pressed simultaneouly a list of buttons is supplied. The order in this list is undefined.

Fields

buttons_pressed: Vec<LedButton>

Methods

impl ButtonEvent
[src]

fn empty() -> ButtonEvent

Returns a empty event (nothing happend).

Trait Implementations

impl Debug for ButtonEvent
[src]

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

Formats the value using the given formatter.