first work on remappable inputs
This commit is contained in:
@@ -2,25 +2,25 @@
|
||||
#include <AudioSettings.hpp>
|
||||
#include <CPUSettings.hpp>
|
||||
#include <GeneralSettings.hpp>
|
||||
#include <NativeWindow.hpp>
|
||||
#include <Window.hpp>
|
||||
#include <vector>
|
||||
|
||||
class SettingsWindow final {
|
||||
gui::NativeWindow& window;
|
||||
GeneralSettings generalSettings;
|
||||
CPUSettings cpuSettings;
|
||||
AudioSettings audioSettings;
|
||||
bool applyEnabled = false;
|
||||
GeneralSettings generalSettings;
|
||||
CPUSettings cpuSettings;
|
||||
AudioSettings audioSettings;
|
||||
bool applyEnabled = false;
|
||||
|
||||
std::vector<std::pair<std::string, SettingsTab*>> tabs = {
|
||||
{ "General", &generalSettings },
|
||||
{ "CPU", &cpuSettings },
|
||||
{ "Audio", &audioSettings },
|
||||
};
|
||||
public:
|
||||
bool isOpen = false;
|
||||
bool render();
|
||||
explicit SettingsWindow(gui::NativeWindow& window) : window(window), generalSettings(window) {}
|
||||
[[nodiscard]] float getVolumeL() const { return audioSettings.volumeL / 100.f; }
|
||||
[[nodiscard]] float getVolumeR() const { return audioSettings.volumeR / 100.f; }
|
||||
std::vector<std::pair<std::string, SettingsTab *>> tabs = {
|
||||
{"General", &generalSettings},
|
||||
{"CPU", &cpuSettings},
|
||||
{"Audio", &audioSettings},
|
||||
};
|
||||
|
||||
public:
|
||||
bool isOpen = false;
|
||||
bool render();
|
||||
explicit SettingsWindow(gui::Window &window) : generalSettings(window) {}
|
||||
[[nodiscard]] float getVolumeL() const { return audioSettings.volumeL / 100.f; }
|
||||
[[nodiscard]] float getVolumeR() const { return audioSettings.volumeR / 100.f; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user