Mouse wheel event structure (event.wheel.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_MouseWheelEvent
{/**< SDL_EVENT_MOUSE_WHEEL */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The window with mouse focus, if any */
SDL_WindowID windowID; /**< The mouse instance id */
SDL_MouseID which; float x; /**< The amount scrolled horizontally, positive to the right and negative to the left */
float y; /**< The amount scrolled vertically, positive away from the user and negative toward the user */
/**< Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back */
SDL_MouseWheelDirection direction; float mouse_x; /**< X coordinate, relative to window */
float mouse_y; /**< Y coordinate, relative to window */
} SDL_MouseWheelEvent;
This struct is available since SDL 3.1.3.