EventManager

Undocumented in source.

Constructors

this
this(SDL_Window* win, uint winWidth, uint winHeight)
Undocumented in source.

Members

Functions

addEvent
void addEvent(Event e)
Undocumented in source. Be warned that the author may not have intended to support it.
addUserEvent
void addUserEvent(Event e)
Undocumented in source. Be warned that the author may not have intended to support it.
aspectRatio
float aspectRatio()
Undocumented in source. Be warned that the author may not have intended to support it.
gameControllerAvailable
bool gameControllerAvailable()
Undocumented in source. Be warned that the author may not have intended to support it.
gameControllerAxis
float gameControllerAxis(int axis)
Undocumented in source. Be warned that the author may not have intended to support it.
generateAssetReloadEvent
void generateAssetReloadEvent(Asset asset)
Undocumented in source. Be warned that the author may not have intended to support it.
generateUserEvent
void generateUserEvent(int code)
Undocumented in source. Be warned that the author may not have intended to support it.
joystickAvailable
bool joystickAvailable()
Undocumented in source. Be warned that the author may not have intended to support it.
joystickAxis
float joystickAxis(int axis)
Undocumented in source. Be warned that the author may not have intended to support it.
setMouse
void setMouse(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
setMouseToCenter
void setMouseToCenter()
Undocumented in source. Be warned that the author may not have intended to support it.
showCursor
void showCursor(bool mode)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
updateTimer
void updateTimer()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

maxNumEvents
enum maxNumEvents;
Undocumented in source.

Variables

averageDelta
double averageDelta;
Undocumented in source.
controller
SDL_GameController* controller;
Undocumented in source.
deltaTime
double deltaTime;
Undocumented in source.
deltaTimeMs
uint deltaTimeMs;
Undocumented in source.
enableKeyRepeat
bool enableKeyRepeat;
Undocumented in source.
eventStack
Event[maxNumEvents] eventStack;
Undocumented in source.
fps
int fps;
Undocumented in source.
joystick
SDL_Joystick* joystick;
Undocumented in source.
keyPressed
bool[512] keyPressed;
Undocumented in source.
mouseButtonPressed
bool[255] mouseButtonPressed;
Undocumented in source.
mouseRelX
int mouseRelX;
Undocumented in source.
mouseRelY
int mouseRelY;
Undocumented in source.
mouseX
int mouseX;
Undocumented in source.
mouseY
int mouseY;
Undocumented in source.
numEvents
uint numEvents;
Undocumented in source.
numUserEvents
uint numUserEvents;
Undocumented in source.
running
bool running;
Undocumented in source.
userEventStack
Event[maxNumEvents] userEventStack;
Undocumented in source.
window
SDL_Window* window;
Undocumented in source.
windowFocused
bool windowFocused;
Undocumented in source.
windowHeight
uint windowHeight;
Undocumented in source.
windowWidth
uint windowWidth;
Undocumented in source.

Meta