Struct nannou::ui::event::KeyPress[][src]

pub struct KeyPress {
    pub key: Key,
    pub modifiers: ModifierKey,
}

Contains all relevant information for the event where a keyboard button was pressed.

Fields

The key that was pressed.

The modifier keys that were down at the time.

Trait Implementations

impl Clone for KeyPress
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KeyPress
[src]

Formats the value using the given formatter. Read more

impl Copy for KeyPress
[src]

impl PartialEq<KeyPress> for KeyPress
[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 KeyPress

impl Sync for KeyPress