|
Public Types |
| enum | Button {
NONE = 0,
LEFT = 1,
MIDDLE = 1<<1,
RIGHT = 1<<2,
WHEEL_UP = 1<<3,
WHEEL_DOWN = 1<<4,
ANY = 0xFFFFFFFF
} |
| enum | Type { MOTION = SDL_MOUSEMOTION,
BUTTON_DOWN = SDL_MOUSEBUTTONDOWN,
BUTTON_UP = SDL_MOUSEBUTTONUP
} |
Public Member Functions |
| void | consume () |
| | Event (MouseDispatcher *src) |
| | creates a new event.
|
| unsigned int | getButton () const |
| ushort | getClickCount () const |
| SDL_keysym | getKeysym () const |
| SDLMod | getModifier () const |
| const Point & | getMovement () const |
| const Point & | getPosition () const |
| MouseDispatcher * | getSource () const |
| | provides access to the source of the event.
|
| Type | getType () const |
| bool | isConsumed () const |
| | MouseEvent (const SDL_MouseButtonEvent &e, ushort cnt=1, SDLMod mod=KMOD_NONE) |
| | MouseEvent (const Point &pos, const Type &tp, const unsigned int &btn, ushort cnt=1, SDLMod mod=KMOD_NONE) |
| | MouseEvent (const SDL_MouseMotionEvent &e, SDLMod mod=KMOD_NONE) |
| | MouseEvent (const Point &pos, const Point &mov, const unsigned int &btn, SDLMod mod=KMOD_NONE) |
Static Public Attributes |
| static ushort | MULTICLICK_DELAY |
| | maximum time allowed between subsequent clicks to generate a multi-click event
|