JugiMap Framework
|
The Keyboard class provide information about keyboard input. More...
#include <jmInput.h>
Public Member Functions | |
bool | IsKeyPressed (KeyCode _keyCode) |
Returns true if a key with the given *_keyCode* is pressed; otherwise returns false. More... | |
bool | IsKeyDown (KeyCode _keyCode) |
Returns true if a key with the given *_keyCode* is hold down; otherwise returns false. More... | |
bool | IsKeyReleased (KeyCode _keyCode) |
Returns true if a key with the given *_keyCode* is released; otherwise returns false. More... | |
char | GetCharPressed () |
Returns the ascii code of a printable character if pressed; otherwise returns 0;. More... | |
void | Reset () |
Reset all key states. More... | |
The Keyboard class provide information about keyboard input.
bool IsKeyPressed | ( | KeyCode | _keyCode | ) |
Returns true if a key with the given *_keyCode* is pressed; otherwise returns false.
bool IsKeyDown | ( | KeyCode | _keyCode | ) |
Returns true if a key with the given *_keyCode* is hold down; otherwise returns false.
bool IsKeyReleased | ( | KeyCode | _keyCode | ) |
Returns true if a key with the given *_keyCode* is released; otherwise returns false.
|
inline |
Returns the ascii code of a printable character if pressed; otherwise returns 0;.
void Reset | ( | ) |
Reset all key states.