Enum nannou::ui::event::Button[][src]

pub enum Button {
    Keyboard(Key),
    Mouse(MouseButton[f64; 2]),
    Controller(ControllerButton),
}

The different kinds of Buttons that may be Pressed or Released.

Variants

A keyboard button.

A mouse button along with the location at which it was Pressed/Released.

A controller button.

Methods

impl Button
[src]

Returns a copy of the Button relative to the given xy

Trait Implementations

impl Clone for Button
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Button
[src]

Formats the value using the given formatter. Read more

impl Copy for Button
[src]

impl PartialEq<Button> for Button
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Button

impl Sync for Button