#[repr(C)]pub struct EmscriptenGamepadEvent {
pub timestamp: f64,
pub numAxes: c_int,
pub numButtons: c_int,
pub axis: [f64; 64],
pub analogButton: [f64; 64],
pub digitalButton: [bool; 64],
pub connected: bool,
pub index: c_int,
pub id: [c_char; 64],
pub mapping: [c_char; 64],
}
Fields§
§timestamp: f64
§numAxes: c_int
§numButtons: c_int
§axis: [f64; 64]
§analogButton: [f64; 64]
§digitalButton: [bool; 64]
§connected: bool
§index: c_int
§id: [c_char; 64]
§mapping: [c_char; 64]
Trait Implementations§
Source§impl Clone for EmscriptenGamepadEvent
impl Clone for EmscriptenGamepadEvent
Source§fn clone(&self) -> EmscriptenGamepadEvent
fn clone(&self) -> EmscriptenGamepadEvent
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 EmscriptenGamepadEvent
impl Debug for EmscriptenGamepadEvent
impl Copy for EmscriptenGamepadEvent
Auto Trait Implementations§
impl Freeze for EmscriptenGamepadEvent
impl RefUnwindSafe for EmscriptenGamepadEvent
impl Send for EmscriptenGamepadEvent
impl Sync for EmscriptenGamepadEvent
impl Unpin for EmscriptenGamepadEvent
impl UnwindSafe for EmscriptenGamepadEvent
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