|
|
@ -12,12 +12,6 @@
|
|
|
|
class QSettings;
|
|
|
|
class QSettings;
|
|
|
|
|
|
|
|
|
|
|
|
class Config {
|
|
|
|
class Config {
|
|
|
|
QSettings* qt_config;
|
|
|
|
|
|
|
|
std::string qt_config_loc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ReadValues();
|
|
|
|
|
|
|
|
void SaveValues();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
Config();
|
|
|
|
Config();
|
|
|
|
~Config();
|
|
|
|
~Config();
|
|
|
@ -27,4 +21,11 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
static const std::array<int, Settings::NativeButton::NumButtons> default_buttons;
|
|
|
|
static const std::array<int, Settings::NativeButton::NumButtons> default_buttons;
|
|
|
|
static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> default_analogs;
|
|
|
|
static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> default_analogs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
void ReadValues();
|
|
|
|
|
|
|
|
void SaveValues();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QSettings* qt_config;
|
|
|
|
|
|
|
|
std::string qt_config_loc;
|
|
|
|
};
|
|
|
|
};
|
|
|
|