Struct freya::prelude::events::KeyboardData
pub struct KeyboardData {
pub key: Key,
pub code: Code,
pub modifiers: Modifiers,
}
Expand description
Data of a Keyboard event.
Fields§
§key: Key
§code: Code
§modifiers: Modifiers
Implementations§
§impl KeyboardData
impl KeyboardData
pub fn new(key: Key, code: Code, modifiers: Modifiers) -> KeyboardData
§impl KeyboardData
impl KeyboardData
Trait Implementations§
§impl Clone for KeyboardData
impl Clone for KeyboardData
§fn clone(&self) -> KeyboardData
fn clone(&self) -> KeyboardData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more