pub enum GlobalInputEvent {
Keyboard {
key: Key,
state: KeyState,
modifiers: Modifiers,
},
Mouse {
button: MouseButton,
state: KeyState,
x: i32,
y: i32,
},
MouseMove {
x: i32,
y: i32,
},
}Expand description
A single global input event.
Variants§
Trait Implementations§
Source§impl Clone for GlobalInputEvent
impl Clone for GlobalInputEvent
Source§fn clone(&self) -> GlobalInputEvent
fn clone(&self) -> GlobalInputEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlobalInputEvent
Source§impl Debug for GlobalInputEvent
impl Debug for GlobalInputEvent
Source§impl<'de> Deserialize<'de> for GlobalInputEvent
impl<'de> Deserialize<'de> for GlobalInputEvent
Source§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
Auto Trait Implementations§
impl Freeze for GlobalInputEvent
impl RefUnwindSafe for GlobalInputEvent
impl Send for GlobalInputEvent
impl Sync for GlobalInputEvent
impl Unpin for GlobalInputEvent
impl UnsafeUnpin for GlobalInputEvent
impl UnwindSafe for GlobalInputEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more