Struct fermium::events::SDL_JoyDeviceEvent
source · #[repr(C)]pub struct SDL_JoyDeviceEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub which: i32,
}
Expand description
Joystick device event structure (event.jdevice.*)
Fields§
§type_: SDL_EventType
Should always be SDL_JOYDEVICEADDED
or SDL_JOYDEVICEREMOVED
timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
which: i32
The joystick device index for the ADDED
event, or 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 moresource§impl Debug for SDL_JoyDeviceEvent
impl Debug for SDL_JoyDeviceEvent
source§impl Default for SDL_JoyDeviceEvent
impl Default for SDL_JoyDeviceEvent
source§fn default() -> SDL_JoyDeviceEvent
fn default() -> SDL_JoyDeviceEvent
Returns the “default value” for a type. Read more
source§impl Hash for SDL_JoyDeviceEvent
impl Hash for SDL_JoyDeviceEvent
source§impl Ord for SDL_JoyDeviceEvent
impl Ord for SDL_JoyDeviceEvent
source§fn cmp(&self, other: &SDL_JoyDeviceEvent) -> Ordering
fn cmp(&self, other: &SDL_JoyDeviceEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_JoyDeviceEvent> for SDL_JoyDeviceEvent
impl PartialEq<SDL_JoyDeviceEvent> for SDL_JoyDeviceEvent
source§fn eq(&self, other: &SDL_JoyDeviceEvent) -> bool
fn eq(&self, other: &SDL_JoyDeviceEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_JoyDeviceEvent> for SDL_JoyDeviceEvent
impl PartialOrd<SDL_JoyDeviceEvent> for SDL_JoyDeviceEvent
source§fn partial_cmp(&self, other: &SDL_JoyDeviceEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_JoyDeviceEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more