mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 00:55:39 +00:00
30 lines
625 B
C
30 lines
625 B
C
|
#ifndef _GUIINPUTCONFIG_H_
|
||
|
#define _GUIINPUTCONFIG_H_
|
||
|
|
||
|
#include "../GuiComponent.h"
|
||
|
#include "../InputManager.h"
|
||
|
#include <map>
|
||
|
#include <SDL/SDL.h>
|
||
|
|
||
|
class GuiInputConfig : GuiComponent {
|
||
|
public:
|
||
|
GuiInputConfig();
|
||
|
~GuiInputConfig();
|
||
|
|
||
|
void onRender();
|
||
|
void onInput(InputManager::InputButton button, bool keyDown);
|
||
|
private:
|
||
|
bool mDone;
|
||
|
int mInputNum;
|
||
|
SDL_Joystick* mJoystick;
|
||
|
static std::string sInputs[];
|
||
|
static int sInputCount;
|
||
|
static std::string sConfigPath;
|
||
|
|
||
|
std::map<int, InputManager::InputButton> mButtonMap;
|
||
|
std::map<int, InputManager::InputButton> mAxisMap;
|
||
|
void writeConfig(std::string path);
|
||
|
};
|
||
|
|
||
|
#endif
|