Struct orbclient::event::KeyEvent [] [src]

pub struct KeyEvent {
    pub character: char,
    pub scancode: u8,
    pub pressed: bool,
}

A key event (such as a pressed key)

Fields

The charecter of the key

The scancode of the key

Was it pressed?

Methods

impl KeyEvent
[src]

Convert to an Event

Convert from an Event

Trait Implementations

impl Copy for KeyEvent
[src]

impl Clone for KeyEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KeyEvent
[src]

Formats the value using the given formatter.