SDL_MouseButtonEvent(3) | SDL API Reference | SDL_MouseButtonEvent(3) |
NAME
SDL_MouseButtonEvent - Mouse button event structureSTRUCTURE 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.SEE ALSO
SDL_Event, SDL_MouseMotionEventTue 11 Sep 2001, 22:59 | SDL |