mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-18 04:42:45 +01:00
core: hid: Only set polling mode if needed
This commit is contained in:
parent
8bd10473d6
commit
3b1c2896d9
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue