diff options
| author | 2021-07-13 16:11:59 -0400 | |
|---|---|---|
| committer | 2021-07-13 16:11:59 -0400 | |
| commit | f2599534f8e096053bf7e8887ce729400a346e92 (patch) | |
| tree | 63553ded4d5d91a54c82375cd3527a1e7f2537b1 /src | |
| parent | Merge pull request #6574 from lioncash/i18n (diff) | |
| parent | npad: Disable vibration check if disabled (diff) | |
| download | yuzu-f2599534f8e096053bf7e8887ce729400a346e92.tar.gz yuzu-f2599534f8e096053bf7e8887ce729400a346e92.tar.xz yuzu-f2599534f8e096053bf7e8887ce729400a346e92.zip | |
Merge pull request #6599 from german77/disable_rumble
npad: Disable vibration check if disabled
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index 1eb02aee2..6ce1360e3 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp | |||
| @@ -941,6 +941,11 @@ void Controller_NPad::InitializeVibrationDevice(const DeviceHandle& vibration_de | |||
| 941 | 941 | ||
| 942 | void Controller_NPad::InitializeVibrationDeviceAtIndex(std::size_t npad_index, | 942 | void Controller_NPad::InitializeVibrationDeviceAtIndex(std::size_t npad_index, |
| 943 | std::size_t device_index) { | 943 | std::size_t device_index) { |
| 944 | if (!Settings::values.vibration_enabled.GetValue()) { | ||
| 945 | vibration_devices_mounted[npad_index][device_index] = false; | ||
| 946 | return; | ||
| 947 | } | ||
| 948 | |||
| 944 | if (vibrations[npad_index][device_index]) { | 949 | if (vibrations[npad_index][device_index]) { |
| 945 | vibration_devices_mounted[npad_index][device_index] = | 950 | vibration_devices_mounted[npad_index][device_index] = |
| 946 | vibrations[npad_index][device_index]->GetStatus() == 1; | 951 | vibrations[npad_index][device_index]->GetStatus() == 1; |