14 lines
192 B
C
14 lines
192 B
C
|
#include <SDL.h>
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
|
class Input
|
||
|
{
|
||
|
private:
|
||
|
SDL_Event event;
|
||
|
|
||
|
public:
|
||
|
bool exit;
|
||
|
std::map<SDL_Keycode, bool> activeKeys;
|
||
|
void update();
|
||
|
};
|