diff options
| author | 2024-02-16 21:19:17 -0500 | |
|---|---|---|
| committer | 2024-02-17 12:32:33 -0500 | |
| commit | 50ecad547ea7e88301583f17c9f1eea2cc75b0af (patch) | |
| tree | 21e6a6669ea19d05b389b097c0d411654aba4fbf /src/hid_core/frontend | |
| parent | hid_core: Prevent crash if we try to iterate through empty color devices list (diff) | |
| download | yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.gz yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.tar.xz yuzu-50ecad547ea7e88301583f17c9f1eea2cc75b0af.zip | |
android: Input mapping
Diffstat (limited to 'src/hid_core/frontend')
| -rw-r--r-- | src/hid_core/frontend/emulated_controller.cpp | 4 |
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 | |||
| 1285 | }; | 1285 | }; |
| 1286 | 1286 | ||
| 1287 | // Send vibrations to Android's input overlay | 1287 | // Send vibrations to Android's input overlay |
| 1288 | if (npad_id_type == NpadIdType::Handheld || npad_id_type == NpadIdType::Player1) { | 1288 | output_devices[4]->SetVibration(status); |
| 1289 | output_devices[4]->SetVibration(status); | ||
| 1290 | } | ||
| 1291 | 1289 | ||
| 1292 | return output_devices[index]->SetVibration(status) == Common::Input::DriverResult::Success; | 1290 | return output_devices[index]->SetVibration(status) == Common::Input::DriverResult::Success; |
| 1293 | } | 1291 | } |