Struct tcod::input::Key [] [src]

pub struct Key {
    pub code: KeyCode,
    pub printable: char,
    pub pressed: bool,
    pub left_alt: bool,
    pub left_ctrl: bool,
    pub right_alt: bool,
    pub right_ctrl: bool,
    pub shift: bool,
    pub alt: bool,
    pub ctrl: bool,
}

Fields

Trait Implementations

impl Copy for Key
[src]

impl Clone for Key
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl PartialEq for Key
[src]

[]

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

[]

This method tests for !=.

impl Debug for Key
[src]

[]

Formats the value using the given formatter.

impl Default for Key
[src]

[]

Returns the "default value" for a type. Read more

impl From<TCOD_key_t> for Key
[src]

[]

Performs the conversion.