Struct sdl2_sys::SDL_ControllerDeviceEvent
source · [−]#[repr(C)]pub struct SDL_ControllerDeviceEvent {
pub type_: Uint32,
pub timestamp: Uint32,
pub which: Sint32,
}
Expand description
\brief Controller device event structure (event.cdevice.*)
Fields
type_: Uint32
< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED
timestamp: Uint32
< In milliseconds, populated using SDL_GetTicks()
which: Sint32
< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event
Trait Implementations
sourceimpl Clone for SDL_ControllerDeviceEvent
impl Clone for SDL_ControllerDeviceEvent
sourcefn clone(&self) -> SDL_ControllerDeviceEvent
fn clone(&self) -> SDL_ControllerDeviceEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SDL_ControllerDeviceEvent
Auto Trait Implementations
impl RefUnwindSafe for SDL_ControllerDeviceEvent
impl Send for SDL_ControllerDeviceEvent
impl Sync for SDL_ControllerDeviceEvent
impl Unpin for SDL_ControllerDeviceEvent
impl UnwindSafe for SDL_ControllerDeviceEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more