Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_MouseButtonEvent(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_!MouseButtonEvent !!!SDL_!MouseButtonEvent NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION SEE ALSO ---- !!NAME SDL_!MouseButtonEvent- Mouse button event structure !!STRUCTURE DEFINITION typedef struct{ Uint8 type; Uint8 button; Uint8 state; Uint16 x, y; } SDL_!MouseButtonEvent; !!STRUCTURE DATA __type SDL_MOUSEBUTTONDOWN__ or __SDL_MOUSEBUTTONUP__ __button__ The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT) __state SDL_PRESSED__ or __SDL_RELEASED__ __x__, __y__ The X/Y coordinates of the mouse at press/release time !!DESCRIPTION __SDL_!MouseButtonEvent__ is a member of the __SDL_Event__ union and is used when an event of type __SDL_MOUSEBUTTONDOWN__ or __SDL_MOUSEBUTTONUP__ is reported. When a mouse button press or release is detected then number of the button pressed (from 1 to 255, with 1 usually being the left button and 2 the right) is placed into __button__, the position of the mouse when this event occured is stored in the __x__ and the __y__ fields. Like __SDL_!KeyboardEvent__, information on whether the event was a press or a release event is stored in both the __type__ and __state__ fields, but this should be obvious. !!SEE ALSO __SDL_Event__, __SDL_!MouseMotionEvent__ ----
One page links to
SDL_MouseButtonEvent(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.