Struct sdl2_sys::SDL_JoyBatteryEvent
source · #[repr(C)]pub struct SDL_JoyBatteryEvent {
pub type_: Uint32,
pub timestamp: Uint32,
pub which: SDL_JoystickID,
pub level: SDL_JoystickPowerLevel,
}
Expand description
\brief Joysick battery level change event structure (event.jbattery.*)
Fields§
§type_: Uint32
< ::SDL_JOYBATTERYUPDATED
timestamp: Uint32
< In milliseconds, populated using SDL_GetTicks()
which: SDL_JoystickID
< The joystick instance id
level: SDL_JoystickPowerLevel
< The joystick battery level
Trait Implementations§
source§impl Clone for SDL_JoyBatteryEvent
impl Clone for SDL_JoyBatteryEvent
source§fn clone(&self) -> SDL_JoyBatteryEvent
fn clone(&self) -> SDL_JoyBatteryEvent
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_JoyBatteryEvent
Auto Trait Implementations§
impl Freeze for SDL_JoyBatteryEvent
impl RefUnwindSafe for SDL_JoyBatteryEvent
impl Send for SDL_JoyBatteryEvent
impl Sync for SDL_JoyBatteryEvent
impl Unpin for SDL_JoyBatteryEvent
impl UnwindSafe for SDL_JoyBatteryEvent
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