SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Public Member Functions | Static Public Member Functions | List of all members
InputManager Class Reference

#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 ()
 

Detailed Description

A global manager for determining which inputs are active.

Constructor & Destructor Documentation

InputManager::~InputManager ( )

Shutdown, if this has not already been shut down.

Member Function Documentation

bool InputManager::getInputDown ( unsigned int  id)

Check if this input is down.

InputManager & InputManager::getInstance ( )
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.


The documentation for this class was generated from the following files: