#ifndef _GUIINPUTCONFIG_H_ #define _GUIINPUTCONFIG_H_ #include "../GuiComponent.h" #include "../InputManager.h" #include #include class GuiInputConfig : GuiComponent { public: GuiInputConfig(); ~GuiInputConfig(); void onRender(); void onInput(InputManager::InputButton button, bool keyDown); private: bool mDone; int mInputNum; int mLastAxis; SDL_Joystick* mJoystick; static std::string sInputs[]; static int sInputCount; std::map mButtonMap; std::map mAxisPosMap; std::map mAxisNegMap; void writeConfig(); }; #endif