configure_input_per_game: Allow configuring all 8 players

This commit is contained in:
ameerj
2022-11-17 20:11:47 -05:00
parent 9efdad6a27
commit b1b20ad84a
3 changed files with 115 additions and 56 deletions

View File

@ -11,10 +11,6 @@ namespace Core {
class System;
}
namespace InputCommon {
class InputSubsystem;
}
namespace Ui {
class ConfigureInputPerGame;
}
@ -27,18 +23,20 @@ class ConfigureInputPerGame : public QWidget {
public:
explicit ConfigureInputPerGame(Core::System& system_, QWidget* parent = nullptr);
/// Initializes the input dialog with the given input subsystem.
// void Initialize(InputCommon::InputSubsystem* input_subsystem_, std::size_t max_players = 8);
/// Save configurations to settings file.
/// Load and Save configurations to settings file.
void ApplyConfiguration();
private:
/// Load configuration from settings file.
void LoadConfiguration();
/// Save configuration to settings file.
void SaveConfiguration();
std::unique_ptr<Ui::ConfigureInputPerGame> ui;
std::unique_ptr<InputProfiles> profiles;
std::array<QComboBox*, 8> profile_comboboxes;
Core::System& system;
};