2012-07-22 21:15:55 +00:00
|
|
|
#ifndef _GUIINPUTCONFIG_H_
|
|
|
|
#define _GUIINPUTCONFIG_H_
|
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
#include "../GuiComponent.h"
|
2013-04-09 18:13:47 +00:00
|
|
|
#include <string>
|
2012-07-22 21:15:55 +00:00
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
class GuiInputConfig : public GuiComponent
|
2013-04-08 16:52:40 +00:00
|
|
|
{
|
2012-07-22 21:15:55 +00:00
|
|
|
public:
|
2013-04-09 18:13:47 +00:00
|
|
|
GuiInputConfig(Window* window, InputConfig* target);
|
2012-07-22 21:15:55 +00:00
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
bool input(InputConfig* config, Input input);
|
2013-04-09 18:13:47 +00:00
|
|
|
void update(int deltaTime);
|
|
|
|
void render();
|
|
|
|
|
2012-07-22 21:15:55 +00:00
|
|
|
private:
|
2013-04-09 18:13:47 +00:00
|
|
|
std::string mErrorMsg;
|
|
|
|
InputConfig* mTargetConfig;
|
|
|
|
int mCurInputId;
|
2012-07-22 21:15:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|