Skip to content

Commit

Permalink
Moved SDL_JoyBallEvent together with the other joystick events
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 21, 2024
1 parent 888cc29 commit 917d683
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions include/SDL3/SDL_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,23 +337,6 @@ typedef struct SDL_MouseMotionEvent
float yrel; /**< The relative motion in the Y direction */
} SDL_MouseMotionEvent;

/**
* \brief Joystick trackball motion event structure (event.jball.*)
*/
typedef struct SDL_JoyBallEvent
{
Uint32 type; /**< ::SDL_JOYBALLMOTION */
Uint32 reserved;
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 ball; /**< The joystick trackball index */
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
Sint16 xrel; /**< The relative motion in the X direction */
Sint16 yrel; /**< The relative motion in the Y direction */
} SDL_JoyBallEvent;

/**
* Mouse button event structure (event.button.*)
*/
Expand Down Expand Up @@ -406,6 +389,23 @@ typedef struct SDL_JoyAxisEvent
Uint16 padding4;
} SDL_JoyAxisEvent;

/**
* \brief Joystick trackball motion event structure (event.jball.*)
*/
typedef struct SDL_JoyBallEvent
{
Uint32 type; /**< ::SDL_JOYBALLMOTION */
Uint32 reserved;
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 ball; /**< The joystick trackball index */
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
Sint16 xrel; /**< The relative motion in the X direction */
Sint16 yrel; /**< The relative motion in the Y direction */
} SDL_JoyBallEvent;

/**
* Joystick hat position change event structure (event.jhat.*)
*/
Expand Down

0 comments on commit 917d683

Please sign in to comment.