#[repr(C)]pub struct SDL_JoyBallEvent {
pub type_: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub which: SDL_JoystickID,
pub ball: Uint8,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
pub xrel: Sint16,
pub yrel: Sint16,
}Expand description
Joystick trackball motion event structure (event.jball.*)
Available Since: This struct is available since SDL 3.2.0.
Fields§
§type_: SDL_EventType< SDL_EVENT_JOYSTICK_BALL_MOTION
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
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 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_JoyBallEvent
impl Debug for SDL_JoyBallEvent
Source§impl Default for SDL_JoyBallEvent
impl Default for SDL_JoyBallEvent
Source§impl Hash for SDL_JoyBallEvent
impl Hash for SDL_JoyBallEvent
impl 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 UnsafeUnpin 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