Events

Struct to store simple controller event states, like pressed, down, released. Supports keyboard and mouse. Additionaly this object calculates fps.

Members

Functions

fpsCounter
void fpsCounter()
Undocumented in source. Be warned that the author may not have intended to support it.
fromSDLEvent
void fromSDLEvent(T event)

//////////////////////////////////// / Events check implementations ///// ////////////////////////////////////

getFrameTimeMsecs
long getFrameTimeMsecs()
Undocumented in source. Be warned that the author may not have intended to support it.
initialzie
void initialzie()
Undocumented in source. Be warned that the author may not have intended to support it.
keyDown
bool keyDown(short k)
Undocumented in source. Be warned that the author may not have intended to support it.
keyDown
bool keyDown(Key k)
Undocumented in source. Be warned that the author may not have intended to support it.
keyPressed
bool keyPressed(short k)
Undocumented in source. Be warned that the author may not have intended to support it.
keyPressed
bool keyPressed(Key k)
Undocumented in source. Be warned that the author may not have intended to support it.
keyReleased
bool keyReleased(short k)
Undocumented in source. Be warned that the author may not have intended to support it.
keyReleased
bool keyReleased(Key k)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButtonDown
bool mouseButtonDown(MouseButton b)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButtonPressed
bool mouseButtonPressed(MouseButton b)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButtonReleased
bool mouseButtonReleased(MouseButton b)
Undocumented in source. Be warned that the author may not have intended to support it.
mousePos
int[2] mousePos()
Undocumented in source. Be warned that the author may not have intended to support it.
mouseWheel
int[2] mouseWheel()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
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.

Variables

_mousePos
int[2] _mousePos;
Undocumented in source.
_mouseWheel
int[2] _mouseWheel;
Undocumented in source.
downKeys
bool[256] downKeys;
Undocumented in source.
downKeysSpecial
bool[Key.max + 1] downKeysSpecial;
Undocumented in source.
dtf
float dtf;
Undocumented in source.
fps
float fps;
Undocumented in source.
inputedText
char[] inputedText;
Undocumented in source.
maxTime
float maxTime;
Undocumented in source.
minTime
float minTime;
Undocumented in source.
mouseDownKeys
bool[MouseButton.max + 1] mouseDownKeys;
Undocumented in source.
mousePressedKeys
bool[MouseButton.max + 1] mousePressedKeys;
Undocumented in source.
mouseReleasedKeys
bool[MouseButton.max + 1] mouseReleasedKeys;
newTime
long newTime;
Undocumented in source.
oldTime
long oldTime;
Undocumented in source.
pressedKeys
bool[256] pressedKeys;
Undocumented in source.
pressedKeysSpecial
bool[Key.max + 1] pressedKeysSpecial;
Undocumented in source.
quit
bool quit;
Undocumented in source.
releasedKeys
bool[256] releasedKeys;
Undocumented in source.
releasedKeysSpecial
bool[Key.max + 1] releasedKeysSpecial;
Undocumented in source.

Meta