pub struct LegacyInputEvent {
pub source: i32,
pub key: Option<i32>,
pub button: Option<i32>,
pub is_down: bool,
}
Expand description
A keyboard/controller input event, as generated by the new frontend (LUNA) in “Legacy Mode” (or the old website).
Fields§
§source: i32
§key: Option<i32>
§is_down: bool
Trait Implementations§
Source§impl Clone for LegacyInputEvent
impl Clone for LegacyInputEvent
Source§fn clone(&self) -> LegacyInputEvent
fn clone(&self) -> LegacyInputEvent
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 moreSource§impl Debug for LegacyInputEvent
impl Debug for LegacyInputEvent
Source§impl<'de> Deserialize<'de> for LegacyInputEvent
impl<'de> Deserialize<'de> for LegacyInputEvent
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
Source§impl PartialEq for LegacyInputEvent
impl PartialEq for LegacyInputEvent
Source§impl Serialize for LegacyInputEvent
impl Serialize for LegacyInputEvent
impl Copy for LegacyInputEvent
impl Eq for LegacyInputEvent
impl StructuralPartialEq for LegacyInputEvent
Auto Trait Implementations§
impl Freeze for LegacyInputEvent
impl RefUnwindSafe for LegacyInputEvent
impl Send for LegacyInputEvent
impl Sync for LegacyInputEvent
impl Unpin for LegacyInputEvent
impl UnwindSafe for LegacyInputEvent
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