◆ init()
void DefaultEventManager::init |
( |
| ) |
|
|
overridevirtual |
Initialize the event manager.
- Note
- Called after graphics system has been set up.
Reimplemented from Common::EventManager.
◆ pollEvent()
Get the next event in the event queue.
- Parameters
-
event | Point to an Event struct, which will be filled with the event data. |
- Return values
-
true | If an event was retrieved. |
Implements Common::EventManager.
◆ pushEvent()
void DefaultEventManager::pushEvent |
( |
const Common::Event & |
event | ) |
|
|
overridevirtual |
◆ purgeMouseEvents()
void DefaultEventManager::purgeMouseEvents |
( |
| ) |
|
|
overridevirtual |
◆ purgeKeyboardEvents()
void DefaultEventManager::purgeKeyboardEvents |
( |
| ) |
|
|
overridevirtual |
◆ getMousePos()
◆ getButtonState()
int DefaultEventManager::getButtonState |
( |
| ) |
const |
|
inlineoverridevirtual |
Return a bitmask with the button states:
- bit 0: left button up=0, down=1
- bit 1: right button up=0, down=1
Implements Common::EventManager.
◆ getModifierState()
int DefaultEventManager::getModifierState |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ shouldQuit()
int DefaultEventManager::shouldQuit |
( |
| ) |
const |
|
inlineoverridevirtual |
Whether the application should terminate. Set to true if EVENT_QUIT was received.
Implements Common::EventManager.
◆ shouldReturnToLauncher()
int DefaultEventManager::shouldReturnToLauncher |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ resetReturnToLauncher()
void DefaultEventManager::resetReturnToLauncher |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getKeymapper()
◆ getGlobalKeymap()
The documentation for this class was generated from the following file: