|
souleng
Game engine providing full Python scripting support
|
Singleton class for polling and retrieving input from the user. More...
#include <Input.hpp>
Public Member Functions | |
| void | PollInputs () |
| Updates all inputs by polling the SDL Event queue for any new events. | |
| KeyState | GetKey (std::string key) |
| MouseClick | GetMouseClick () |
| Retrieves the last known state of the mouse since being clicked. | |
| MouseMotion | GetMouseMotion () |
| Retrieves the last mouse motion input by the user. | |
| bool | ReceivedProgramQuit () |
Returns true if PollInputs receives an SDL_QuitEvent | |
Static Public Member Functions | |
| static Input & | instance () |
Singleton accessor function for the Input class. | |
Singleton class for polling and retrieving input from the user.
| KeyState Input::GetKey | ( | std::string | key | ) |
Retrieves the last known state of the given key
| key | The keyboard key to check the state of |