Struct orbtk::event::KeyEvent
[−]
[src]
pub struct KeyEvent { pub character: Option<char>, pub scancode: u8, }
A key event (such as a pressed key)
Fields
character: Option<char>
The charecter of the key
scancode: u8
The scancode of the key
Methods
impl KeyEvent
[src]
fn from_orbital_key_event(key_event: KeyEvent) -> Self
[src]
Trait Implementations
impl Copy for KeyEvent
[src]
impl Clone for KeyEvent
[src]
fn clone(&self) -> KeyEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more