#[repr(C)]pub struct EmscriptenKeyboardEvent {Show 14 fields
pub timestamp: f64,
pub location: c_uint,
pub ctrlKey: bool,
pub shiftKey: bool,
pub altKey: bool,
pub metaKey: bool,
pub repeat: bool,
pub charCode: c_uint,
pub keyCode: c_uint,
pub which: c_uint,
pub key: [c_char; 32],
pub code: [c_char; 32],
pub charValue: [c_char; 32],
pub locale: [c_char; 32],
}
Fields§
§timestamp: f64
§location: c_uint
§ctrlKey: bool
§shiftKey: bool
§altKey: bool
§metaKey: bool
§repeat: bool
§charCode: c_uint
§keyCode: c_uint
§which: c_uint
§key: [c_char; 32]
§code: [c_char; 32]
§charValue: [c_char; 32]
§locale: [c_char; 32]
Trait Implementations§
Source§impl Clone for EmscriptenKeyboardEvent
impl Clone for EmscriptenKeyboardEvent
Source§fn clone(&self) -> EmscriptenKeyboardEvent
fn clone(&self) -> EmscriptenKeyboardEvent
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 EmscriptenKeyboardEvent
impl Debug for EmscriptenKeyboardEvent
impl Copy for EmscriptenKeyboardEvent
Auto Trait Implementations§
impl Freeze for EmscriptenKeyboardEvent
impl RefUnwindSafe for EmscriptenKeyboardEvent
impl Send for EmscriptenKeyboardEvent
impl Sync for EmscriptenKeyboardEvent
impl Unpin for EmscriptenKeyboardEvent
impl UnwindSafe for EmscriptenKeyboardEvent
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