My Project
Public Attributes | List of all members
SDL_JoyBallEvent Struct Reference

Joystick trackball motion event structure (event.jball.*) More...

#include <SDL_events.h>

Public Attributes

Uint32 type
 
Uint32 timestamp
 
SDL_JoystickID which
 
Uint8 ball
 
Uint8 padding1
 
Uint8 padding2
 
Uint8 padding3
 
Sint16 xrel
 
Sint16 yrel
 

Detailed Description

Joystick trackball motion event structure (event.jball.*)

Member Data Documentation

◆ ball

Uint8 SDL_JoyBallEvent::ball

The joystick trackball index

◆ timestamp

Uint32 SDL_JoyBallEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

Uint32 SDL_JoyBallEvent::type

◆ which

SDL_JoystickID SDL_JoyBallEvent::which

The joystick instance id

◆ xrel

Sint16 SDL_JoyBallEvent::xrel

The relative motion in the X direction

◆ yrel

Sint16 SDL_JoyBallEvent::yrel

The relative motion in the Y direction


The documentation for this struct was generated from the following file: