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);
|
2013-07-26 23:28:51 +00:00
|
|
|
void render(const Eigen::Affine3f& parentTrans) override;
|
2013-04-09 18:13:47 +00:00
|
|
|
|
2012-07-22 21:15:55 +00:00
|
|
|
private:
|
2013-04-09 18:13:47 +00:00
|
|
|
std::string mErrorMsg;
|
|
|
|
InputConfig* mTargetConfig;
|
|
|
|
int mCurInputId;
|
2013-06-03 00:18:26 +00:00
|
|
|
bool mCanSkip;
|
2012-07-22 21:15:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|