Struct lighthouse_client::InputEvent
source · [−]pub struct InputEvent {
pub source: i32,
pub key: Option<i32>,
pub button: Option<i32>,
pub is_down: bool,
}Expand description
A key/controller input event.
Fields
source: i32key: Option<i32>is_down: boolTrait Implementations
sourceimpl Clone for InputEvent
impl Clone for InputEvent
sourcefn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for InputEvent
impl Debug for InputEvent
sourceimpl<'de> Deserialize<'de> for InputEvent
impl<'de> Deserialize<'de> for InputEvent
sourcefn 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
sourceimpl PartialEq<InputEvent> for InputEvent
impl PartialEq<InputEvent> for InputEvent
sourcefn eq(&self, other: &InputEvent) -> bool
fn eq(&self, other: &InputEvent) -> bool
sourceimpl Serialize for InputEvent
impl Serialize for InputEvent
impl Copy for InputEvent
impl Eq for InputEvent
impl StructuralEq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more