dEngine
Simple 2D C++ game engine
Public Member Functions | Public Attributes | List of all members
dengine::InputController Class Reference

An input controller. More...

#include <InputController.h>

Inheritance diagram for dengine::InputController:
dengine::Component

Public Member Functions

 InputController (GameObject &parent)
 
void Update ()
 Update function. More...
 
- Public Member Functions inherited from dengine::Component
 Component (GameObject &parent)
 Create a new component for a gameobject. More...
 
virtual void NotifyCollision (GameObject &other)
 
std::string GetName ()
 Returns the component's name. More...
 
virtual void Start ()
 Start the object To be called by the GameObject's Start method. This should be called at the beginning of instantiation. More...
 
virtual void Render ()
 

Public Attributes

const Uint8 * keystates
 Keyboard key states. More...
 

Additional Inherited Members

- Protected Attributes inherited from dengine::Component
GameObjectparent
 
std::string name
 

Detailed Description

An input controller.

Deprecated:
Marking this as deprecated as I haven't found a helpful way of integrating this component with the rest of the system. If I find a way later I'll remove this indicator, but until then don't rely on it being here in the future.

Constructor & Destructor Documentation

◆ InputController()

InputController::InputController ( GameObject parent)

Member Function Documentation

◆ Update()

void InputController::Update ( )
virtual

Update function.

Runs every frame, managing actions based upon current keystates

Reimplemented from dengine::Component.

Member Data Documentation

◆ keystates

const Uint8* dengine::InputController::keystates

Keyboard key states.