From 0b7593d352ce786b2a6d0610b9b921f329b59175 Mon Sep 17 00:00:00 2001 From: flodavid Date: Sun, 15 Oct 2023 22:20:37 +0200 Subject: yuzu: Improve behavior when clicking on controller box in Controller applet - Apply changes on Controller configuration of commit 9524d70 to Controller applet - Fix regression of this previous commit: Enabling a controller in its tab did not activate previous controllers Signed-off-by: flodavid --- src/yuzu/configuration/configure_input.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/yuzu/configuration/configure_input.h') diff --git a/src/yuzu/configuration/configure_input.h b/src/yuzu/configuration/configure_input.h index abb7f7089..136cd3a0a 100644 --- a/src/yuzu/configuration/configure_input.h +++ b/src/yuzu/configuration/configure_input.h @@ -56,7 +56,9 @@ private: void UpdateDockedState(bool is_handheld); void UpdateAllInputDevices(); void UpdateAllInputProfiles(std::size_t player_index); - void propagateMouseClickOnPlayers(size_t player_index, bool origin, bool checked); + // Enable preceding controllers or disable following ones + void PropagatePlayerNumberChanged(size_t player_index, bool checked, + bool reconnect_current = false); /// Load configuration settings. void LoadConfiguration(); @@ -71,7 +73,8 @@ private: std::array player_controllers; std::array player_tabs; - std::array player_connected; + // Checkboxes representing the "Connected Controllers". + std::array connected_controller_checkboxes; ConfigureInputAdvanced* advanced; Core::System& system; -- cgit v1.2.3