Struct redox::orbital::event::KeyEvent [] [src]

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

A key event (such as a pressed key)

Fields

character

The charecter of the key

scancode

The scancode of the key

pressed

Was it pressed?

Methods

impl KeyEvent

fn to_event(&self) -> Event

Convert to an Event

fn from_event(event: Event) -> KeyEvent

Convert from an Event

Trait Implementations

Derived Implementations

impl Clone for KeyEvent

fn clone(&self) -> KeyEvent

fn clone_from(&mut self, source: &Self)

impl Copy for KeyEvent