#[repr(C)]pub struct RawEvent {
pub kind: u32,
pub code: u32,
pub x: f32,
pub y: f32,
pub mods: u32,
pub flags: u32,
}Expand description
One input event, as written by sg.input_poll (24 bytes, little endian).
Fields§
§kind: u32§code: u32key number, mouse button, text char, or 0/1 for focus and pointer lock
x: f32§y: f32§mods: u32modifier bits (MOD_*)
flags: u32FLAG_REPEAT for auto-repeated keys
Implementations§
Trait Implementations§
impl Copy for RawEvent
impl StructuralPartialEq for RawEvent
Auto Trait Implementations§
impl Freeze for RawEvent
impl RefUnwindSafe for RawEvent
impl Send for RawEvent
impl Sync for RawEvent
impl Unpin for RawEvent
impl UnsafeUnpin for RawEvent
impl UnwindSafe for RawEvent
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