diff options
| author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-13 16:11:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-13 16:11:59 -0400 |
| commit | be413e177a0748e6917ec62a1f02c5d4aea960d4 (patch) | |
| tree | 63553ded4d5d91a54c82375cd3527a1e7f2537b1 /src | |
| parent | 55c63836b2a5c001c790344c1bac6c087bc97a17 (diff) | |
| parent | fcbad250729ac1181af04f311c9fae0eab080bee (diff) | |
Merge pull request #6599 from german77/disable_rumble
npad: Disable vibration check if disabled
Diffstat (limited to 'src')
| -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 1eb02aee2c..6ce1360e32 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 void Controller_NPad::InitializeVibrationDeviceAtIndex(std::size_t npad_index, std::size_t device_index) { + if (!Settings::values.vibration_enabled.GetValue()) { + vibration_devices_mounted[npad_index][device_index] = false; + return; + } + if (vibrations[npad_index][device_index]) { vibration_devices_mounted[npad_index][device_index] = vibrations[npad_index][device_index]->GetStatus() == 1; |
