mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-30 18:15:39 +00:00
24 lines
456 B
C
24 lines
456 B
C
|
#ifndef _INPUTMANAGER_H_
|
||
|
#define _INPUTMANAGER_H_
|
||
|
|
||
|
#include <vector>
|
||
|
#include <SDL/SDL.h>
|
||
|
|
||
|
class GuiComponent;
|
||
|
|
||
|
namespace InputManager {
|
||
|
void registerComponent(GuiComponent* comp);
|
||
|
void unregisterComponent(GuiComponent* comp);
|
||
|
|
||
|
|
||
|
//enum for identifying input type, regardless of configuration
|
||
|
enum InputButton { UP, DOWN, LEFT, RIGHT, BUTTON1, BUTTON2};
|
||
|
|
||
|
|
||
|
void processEvent(SDL_Event* event);
|
||
|
|
||
|
extern std::vector<GuiComponent*> inputVector;
|
||
|
}
|
||
|
|
||
|
#endif
|