Struct conrod::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 Copy for KeyPress
[src]

impl Clone for KeyPress
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.