logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_MouseWheelEvent - Mouse wheel event structure (event.wheel.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                         SDL_MouseWheelEvent(3type)

Name

       SDL_MouseWheelEvent - Mouse wheel event structure (event.wheel.*)

Synopsis

#include<SDL3/SDL_events.h>typedefstructSDL_MouseWheelEvent{SDL_EventTypetype;/**<SDL_EVENT_MOUSE_WHEEL*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_WindowIDwindowID;/**<Thewindowwithmousefocus,ifany*/SDL_MouseIDwhich;/**<Themouseinstanceidinrelativemodeor0*/floatx;/**<Theamountscrolledhorizontally,positivetotherightandnegativetotheleft*/floaty;/**<Theamountscrolledvertically,positiveawayfromtheuserandnegativetowardtheuser*/SDL_MouseWheelDirectiondirection;/**<SettooneoftheSDL_MOUSEWHEEL_*defines.WhenFLIPPEDthevaluesinXandYwillbeopposite.Multiplyby-1tochangethemback*/floatmouse_x;/**<Xcoordinate,relativetowindow*/floatmouse_y;/**<Ycoordinate,relativetowindow*/Sint32integer_x;/**<Theamountscrolledhorizontally,accumulatedtowholescroll"ticks"(addedin3.2.12)*/Sint32integer_y;/**<Theamountscrolledvertically,accumulatedtowholescroll"ticks"(addedin3.2.12)*/}SDL_MouseWheelEvent;

See Also