configure_input: Update the input profiles for other player tabs
This commit is contained in:
parent
97b2220a82
commit
6f5b942897
4 changed files with 38 additions and 11 deletions
|
@ -59,6 +59,9 @@ public:
|
|||
/// Update the input devices combobox.
|
||||
void UpdateInputDeviceCombobox();
|
||||
|
||||
/// Updates the list of controller profiles.
|
||||
void UpdateInputProfiles();
|
||||
|
||||
/// Restore all buttons to their default values.
|
||||
void RestoreDefaults();
|
||||
|
||||
|
@ -72,6 +75,12 @@ signals:
|
|||
void HandheldStateChanged(bool is_handheld);
|
||||
/// Emitted when the input devices combobox is being refreshed.
|
||||
void RefreshInputDevices();
|
||||
/**
|
||||
* Emitted when the input profiles combobox is being refreshed.
|
||||
* The player_index represents the current player's index, and the profile combobox
|
||||
* will not be updated for this index as they are already updated by other mechanisms.
|
||||
*/
|
||||
void RefreshInputProfiles(std::size_t player_index);
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
@ -130,9 +139,6 @@ private:
|
|||
/// Saves the current controller configuration into a selected controller profile.
|
||||
void SaveProfile();
|
||||
|
||||
/// Refreshes the list of controller profiles.
|
||||
void RefreshInputProfiles();
|
||||
|
||||
std::unique_ptr<Ui::ConfigureInputPlayer> ui;
|
||||
|
||||
std::size_t player_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue