summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Narr the Reg2024-01-23 11:01:35 -0600
committerGravatar Narr the Reg2024-01-23 11:11:09 -0600
commit3b1c2896d9bc0f9f1bdfddc3820dc7d2483f4486 (patch)
tree629123147283844de7659f8ab4ea397ab25e5212 /src
parentMerge pull request #12579 from FernandoS27/smmu (diff)
downloadyuzu-3b1c2896d9bc0f9f1bdfddc3820dc7d2483f4486.tar.gz
yuzu-3b1c2896d9bc0f9f1bdfddc3820dc7d2483f4486.tar.xz
yuzu-3b1c2896d9bc0f9f1bdfddc3820dc7d2483f4486.zip
core: hid: Only set polling mode if needed
Diffstat (limited to 'src')
-rw-r--r--src/hid_core/frontend/emulated_controller.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp
index e12e5a77e..063f5b15a 100644
--- a/src/hid_core/frontend/emulated_controller.cpp
+++ b/src/hid_core/frontend/emulated_controller.cpp
@@ -110,7 +110,11 @@ void EmulatedController::ReloadFromSettings() {
110 original_npad_type = npad_type; 110 original_npad_type = npad_type;
111 } 111 }
112 112
113 SetPollingMode(EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::Active); 113 // Disable special features before disconnecting
114 if (controller.right_polling_mode != Common::Input::PollingMode::Active) {
115 SetPollingMode(EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::Active);
116 }
117
114 Disconnect(); 118 Disconnect();
115 if (player.connected) { 119 if (player.connected) {
116 Connect(); 120 Connect();