Mouse raw button event structure (event.mbutton.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_MouseRawButtonEvent
{/**< SDL_EVENT_MOUSE_RAW_BUTTON */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The mouse instance id, SDL_TOUCH_MOUSEID, or SDL_PEN_MOUSEID */
SDL_MouseID which; /**< The mouse button index */
Uint8 button; /**< SDL_PRESSED or SDL_RELEASED */
Uint8 state; } SDL_MouseRawButtonEvent;
This struct is available since SDL 3.0.0.