Struct sdl2_sys::SDL_JoyDeviceEvent
source · #[repr(C)]pub struct SDL_JoyDeviceEvent {
pub type_: Uint32,
pub timestamp: Uint32,
pub which: Sint32,
}
Expand description
\brief Joystick device event structure (event.jdevice.*)
Fields§
§type_: Uint32
< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED
timestamp: Uint32
< In milliseconds, populated using SDL_GetTicks()
which: Sint32
< The joystick device index for the ADDED event, instance id for the REMOVED event
Trait Implementations§
source§impl Clone for SDL_JoyDeviceEvent
impl Clone for SDL_JoyDeviceEvent
source§fn clone(&self) -> SDL_JoyDeviceEvent
fn clone(&self) -> SDL_JoyDeviceEvent
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 moreimpl Copy for SDL_JoyDeviceEvent
Auto Trait Implementations§
impl Freeze for SDL_JoyDeviceEvent
impl RefUnwindSafe for SDL_JoyDeviceEvent
impl Send for SDL_JoyDeviceEvent
impl Sync for SDL_JoyDeviceEvent
impl Unpin for SDL_JoyDeviceEvent
impl UnwindSafe for SDL_JoyDeviceEvent
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