Struct tao::event::RawKeyEvent [−][src]
pub struct RawKeyEvent { pub physical_key: KeyCode, pub state: ElementState, }
Expand description
Describes a keyboard input as a raw device event.
Note that holding down a key may produce repeated RawKeyEvent
s. The
operating system doesn’t provide information whether such an event is a
repeat or the initial keypress. An application may emulate this by, for
example keeping a Map/Set of pressed keys and determining whether a keypress
corresponds to an already pressed key.
Fields
physical_key: KeyCode
state: ElementState
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RawKeyEvent
impl Send for RawKeyEvent
impl Sync for RawKeyEvent
impl Unpin for RawKeyEvent
impl UnwindSafe for RawKeyEvent
Blanket Implementations
Mutably borrows from an owned value. Read more