mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
42a39c52e6
Added text rendering to Renderer, which uses SDL_ttf. Using LinLibertine_R.ttf font (GPL). A lot more - soon I should have the "skeleton" done.
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
|