2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

core: hid: Only set polling mode if needed

This commit is contained in:
Narr the Reg 2024-01-23 11:01:35 -06:00
parent 8bd10473d6
commit 3b1c2896d9

View file

@ -110,7 +110,11 @@ void EmulatedController::ReloadFromSettings() {
original_npad_type = npad_type;
}
// 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();