Struct sdl2_sys::SDL_JoyBallEvent
source · #[repr(C)]pub struct SDL_JoyBallEvent {
pub type_: Uint32,
pub timestamp: Uint32,
pub which: SDL_JoystickID,
pub ball: Uint8,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
pub xrel: Sint16,
pub yrel: Sint16,
}
Expand description
\brief Joystick trackball motion event structure (event.jball.*)
Fields§
§type_: Uint32
< ::SDL_JOYBALLMOTION
timestamp: Uint32
< In milliseconds, populated using SDL_GetTicks()
which: SDL_JoystickID
< The joystick instance id
ball: Uint8
< The joystick trackball index
padding1: Uint8
§padding2: Uint8
§padding3: Uint8
§xrel: Sint16
< The relative motion in the X direction
yrel: Sint16
< The relative motion in the Y direction
Trait Implementations§
source§impl Clone for SDL_JoyBallEvent
impl Clone for SDL_JoyBallEvent
source§fn clone(&self) -> SDL_JoyBallEvent
fn clone(&self) -> SDL_JoyBallEvent
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_JoyBallEvent
Auto Trait Implementations§
impl Freeze for SDL_JoyBallEvent
impl RefUnwindSafe for SDL_JoyBallEvent
impl Send for SDL_JoyBallEvent
impl Sync for SDL_JoyBallEvent
impl Unpin for SDL_JoyBallEvent
impl UnwindSafe for SDL_JoyBallEvent
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