summaryrefslogtreecommitdiffstats
path: root/src/hid_core/frontend
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-02-17 03:19:17 +0100
committert895 <clombardo169@gmail.com>2024-02-17 18:32:33 +0100
commit50ecad547ea7e88301583f17c9f1eea2cc75b0af (patch)
tree21e6a6669ea19d05b389b097c0d411654aba4fbf /src/hid_core/frontend
parenthid_core: Prevent crash if we try to iterate through empty color devices list (diff)
downloadyuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar
yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.gz
yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.bz2
yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.lz
yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.xz
yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.zst
yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.zip
Diffstat (limited to 'src/hid_core/frontend')
-rw-r--r--src/hid_core/frontend/emulated_controller.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp
index 8b5d0eec6..3fa06d188 100644
--- a/src/hid_core/frontend/emulated_controller.cpp
+++ b/src/hid_core/frontend/emulated_controller.cpp
@@ -1285,9 +1285,7 @@ bool EmulatedController::SetVibration(DeviceIndex device_index, const VibrationV
};
// Send vibrations to Android's input overlay
- if (npad_id_type == NpadIdType::Handheld || npad_id_type == NpadIdType::Player1) {
- output_devices[4]->SetVibration(status);
- }
+ output_devices[4]->SetVibration(status);
return output_devices[index]->SetVibration(status) == Common::Input::DriverResult::Success;
}