dEngine
Simple 2D C++ game engine
InputController.h
Go to the documentation of this file.
1 #ifndef DENGINE_INPUTCONTROLLER_H
2 #define DENGINE_INPUTCONTROLLER_H
3 
4 #include <SDL.h>
5 #include "../System/Component.h"
6 
7 namespace dengine {
14  class InputController : public Component {
15  public:
17 
21  const Uint8 *keystates;
22 
27  void Update();
28  };
29 }
30 
31 #endif //DENGINE_INPUTCONTROLLER_H
A base object for a game The gameobject can be considered the most basic building block of a game...
Definition: GameObject.h:19
Gameobject component that asssists in adding additional functionality.
Definition: Component.h:14
const Uint8 * keystates
Keyboard key states.
Definition: InputController.h:21
InputController(GameObject &parent)
Definition: InputController.cpp:5
An input controller.
Definition: InputController.h:14
GameObject & parent
Definition: Component.h:53
The namespace containing the engine&#39;s code.
Definition: Collider.h:9
void Update()
Update function.
Definition: InputController.cpp:8