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_MouseMotionEvent - Mouse motion event structure (event.motion.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                        SDL_MouseMotionEvent(3type)

Header File

       Defined in SDL3/SDL_events.h

Name

       SDL_MouseMotionEvent - Mouse motion event structure (event.motion.*)

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_MouseMotionEvent{SDL_EventTypetype;/**<SDL_EVENT_MOUSE_MOTION*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_WindowIDwindowID;/**<Thewindowwithmousefocus,ifany*/SDL_MouseIDwhich;/**<Themouseinstanceidinrelativemode,SDL_TOUCH_MOUSEIDfortouchevents,or0*/SDL_MouseButtonFlagsstate;/**<Thecurrentbuttonstate*/floatx;/**<Xcoordinate,relativetowindow*/floaty;/**<Ycoordinate,relativetowindow*/floatxrel;/**<TherelativemotionintheXdirection*/floatyrel;/**<TherelativemotionintheYdirection*/}SDL_MouseMotionEvent;

See Also