diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 11:01:35 -0600 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 11:11:09 -0600 |
commit | 3b1c2896d9bc0f9f1bdfddc3820dc7d2483f4486 (patch) | |
tree | 629123147283844de7659f8ab4ea397ab25e5212 /src/hid_core/frontend | |
parent | 8bd10473d60503c7acddc399604a51b9c9947541 (diff) |
core: hid: Only set polling mode if needed
Diffstat (limited to 'src/hid_core/frontend')
-rw-r--r-- | src/hid_core/frontend/emulated_controller.cpp | 6 |
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() { original_npad_type = npad_type; } - SetPollingMode(EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::Active); + // Disable special features before disconnecting + if (controller.right_polling_mode != Common::Input::PollingMode::Active) { + SetPollingMode(EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::Active); + } + Disconnect(); if (player.connected) { Connect(); |