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 | cd792c68c276148fa5ce7b4bbb5825bdc6f0bfbc (patch) | |
| tree | 629123147283844de7659f8ab4ea397ab25e5212 /src/hid_core/frontend | |
| parent | 5a6b3a0125707a5c4bcb488180b92f0be514f8fb (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 e12e5a77ea..063f5b15a6 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(); |
