summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_input_player.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-10-29 12:15:35 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-11-15 23:33:21 -0500
commit6f5b9428971904ad8815a56d50c9aab4805a1c56 (patch)
tree5c8dcef48583219d0744d71923f78f5a26590a17 /src/yuzu/configuration/configure_input_player.h
parent97b2220a822548eed83993fceebe0e611dbec84b (diff)
configure_input: Update the input profiles for other player tabs
Diffstat (limited to 'src/yuzu/configuration/configure_input_player.h')
-rw-r--r--src/yuzu/configuration/configure_input_player.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.h
index 4895e8850..23cf6f958 100644
--- a/src/yuzu/configuration/configure_input_player.h
+++ b/src/yuzu/configuration/configure_input_player.h
@@ -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;