SDL SPOOKY PLATFORMER ENGINE
0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
|
#include <InputManager.hpp>
Public Member Functions | |
~InputManager () | |
void | init () |
void | initInput (unsigned int id) |
void | setInputDown (unsigned int id, bool inputDown) |
bool | getInputDown (unsigned int id) |
void | shutdown () |
Static Public Member Functions | |
static InputManager & | getInstance () |
A global manager for determining which inputs are active.
InputManager::~InputManager | ( | ) |
Shutdown, if this has not already been shut down.
bool InputManager::getInputDown | ( | unsigned int | id | ) |
Check if this input is down.
|
static |
Get a singleton instance of this manager.
void InputManager::init | ( | ) |
Initialize this manager.
void InputManager::initInput | ( | unsigned int | id | ) |
Create an input with the given id.
void InputManager::setInputDown | ( | unsigned int | id, |
bool | inputDown | ||
) |
Mark the input with this id as down (true) or up (false).
void InputManager::shutdown | ( | ) |
Shut down this manager.