Copyright (C) 2000-2012 |
Manpages SDL_MouseButtonEventSection: SDL API Reference (3)Updated: Tue 11 Sep 2001, 22:59 Index Return to Main Contents NAMESDL_MouseButtonEvent- Mouse button event structureSTRUCTURE DEFINITION
typedef struct{ Uint8 type; Uint8 button; Uint8 state; Uint16 x, y; } SDL_MouseButtonEvent; STRUCTURE DATA
DESCRIPTIONSDL_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 ALSOSDL_Event, SDL_MouseMotionEvent
IndexThis document was created by man2html, using the manual pages. Time: 02:19:12 GMT, March 29, 2024 |