◆ addTarget()
Adds a new event target to the top of the list. It will get all events generated until such time as another is pushed on top of it, or the removeTarget method is called
◆ removeTarget()
void Titanic::Events::removeTarget |
( |
| ) |
|
|
inline |
Removes the currently active event target
◆ pollEvents()
void Titanic::Events::pollEvents |
( |
| ) |
|
Check for any pending events
◆ pollEventsAndWait()
void Titanic::Events::pollEventsAndWait |
( |
| ) |
|
Poll for events and introduce a small delay, to allow the system to yield to other running programs
◆ getFrameCounter()
uint32 Titanic::Events::getFrameCounter |
( |
| ) |
const |
|
inline |
Return the current game frame number
◆ getTicksCount()
uint32 Titanic::Events::getTicksCount |
( |
| ) |
const |
Return the current game ticks
◆ getTotalPlayTicks()
uint32 Titanic::Events::getTotalPlayTicks |
( |
| ) |
const |
Get the total number of playtime frames/ticks
◆ setTotalPlayTicks()
void Titanic::Events::setTotalPlayTicks |
( |
uint |
frames | ) |
|
Set the total number of frames/ticks played
◆ sleep()
void Titanic::Events::sleep |
( |
uint |
time | ) |
|
Sleep for a specified period of time
◆ waitForPress()
bool Titanic::Events::waitForPress |
( |
uint |
expiry | ) |
|
Wait for a mouse or keypress
◆ getMousePos()
◆ setMousePos()
◆ getSpecialButtons()
uint Titanic::Events::getSpecialButtons |
( |
| ) |
const |
|
inline |
Returns the bitset of the currently pressed special buttons
The documentation for this class was generated from the following file: