![]() |
Blamite Game Engine - Strings
00369.02.19.23.2014.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Class representing a mouse button press. More...
#include <MouseClickEvent.h>
Inheritance diagram for MouseClickEvent:Public Member Functions | |
| MouseClickEvent (uint8_t _button) | |
| Constructs a new event. More... | |
| uint8_t | GetButton () |
| Retrieves the mouse button that was pressed. More... | |
Public Member Functions inherited from BlamEvent | |
| BlamEvent (BlamEventType type) | |
| Constructs a new event with the specified type. More... | |
| BlamEventType | GetEventType () |
| Retrieves the type of the event. More... | |
| void | SetCancelled (bool cancel) |
| Sets whether or not the event should be cancelled. More... | |
| bool | IsCancelled () |
| Determines whether or not the event has been cancelled. More... | |
Class representing a mouse button press.
This event is fired from the SDL_MOUSEBUTTONDOWN event.
| MouseClickEvent::MouseClickEvent | ( | uint8_t | _button | ) |
Constructs a new event.
| _button | - The clicked mouse button ID. |
| uint8_t MouseClickEvent::GetButton | ( | ) |
Retrieves the mouse button that was pressed.