#[repr(C)]pub struct SDL_JoyDeviceEvent {
pub type_: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub which: SDL_JoystickID,
}Expand description
Joystick device event structure (event.jdevice.*)
SDL will send JOYSTICK_ADDED events for devices that are already plugged in during SDL_Init.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_GamepadDeviceEvent
Fields§
§type_: SDL_EventType< SDL_EVENT_JOYSTICK_ADDED or SDL_EVENT_JOYSTICK_REMOVED or SDL_EVENT_JOYSTICK_UPDATE_COMPLETE
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
which: SDL_JoystickID< The joystick instance id
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 duplicate 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 SDL_JoyDeviceEvent
impl Debug for SDL_JoyDeviceEvent
Source§impl Default for SDL_JoyDeviceEvent
impl Default for SDL_JoyDeviceEvent
Source§impl Hash for SDL_JoyDeviceEvent
impl Hash for SDL_JoyDeviceEvent
impl 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 UnsafeUnpin 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