cleanup
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
#ifndef INPUTHANDLER_H
|
||||
#define INPUTHANDLER_H
|
||||
|
||||
#include <vector>
|
||||
#include <SDL2/SDL.h>
|
||||
#include "commands/TestCommand.h"
|
||||
|
||||
|
||||
class InputHandler {
|
||||
private:
|
||||
Command* buttonW = NULL;
|
||||
Command* buttonA = NULL;
|
||||
Command* buttonS = NULL;
|
||||
Command* buttonD = NULL;
|
||||
|
||||
unsigned int cur = 0;
|
||||
std::vector<Command*> commandStream;
|
||||
|
||||
public:
|
||||
InputHandler();
|
||||
~InputHandler();
|
||||
//Called when an KeyDown or KeyUP event happened
|
||||
void inputEvent(SDL_Event *e);
|
||||
//Called by the main GameLoop to get the newest Command
|
||||
Command* handleInput();
|
||||
};
|
||||
|
||||
#endif // INPUTHANDLER_H
|
||||
Reference in New Issue
Block a user