summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-10-21 07:23:12 +0200
committergerman77 <juangerman-13@hotmail.com>2022-10-21 07:24:08 +0200
commit7f66050f0c383a5c7d82c5c58098f819d4e1e0bc (patch)
tree8d449371387a14d7564381037d8deade468ee010 /src/core/hle/service/hid/controllers/npad.cpp
parentMerge pull request #9088 from Fdawgs/chore/images (diff)
downloadyuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar
yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.gz
yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.bz2
yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.lz
yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.xz
yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.zst
yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 98e4f2af7..b85831de1 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -867,7 +867,7 @@ bool Controller_NPad::VibrateControllerAtIndex(Core::HID::NpadIdType npad_id,
return false;
}
- if (!controller.device->IsVibrationEnabled()) {
+ if (!controller.device->IsVibrationEnabled(device_index)) {
if (controller.vibration[device_index].latest_vibration_value.low_amplitude != 0.0f ||
controller.vibration[device_index].latest_vibration_value.high_amplitude != 0.0f) {
// Send an empty vibration to stop any vibrations.
@@ -1000,7 +1000,7 @@ void Controller_NPad::InitializeVibrationDeviceAtIndex(Core::HID::NpadIdType npa
}
controller.vibration[device_index].device_mounted =
- controller.device->TestVibration(device_index);
+ controller.device->IsVibrationEnabled(device_index);
}
void Controller_NPad::SetPermitVibrationSession(bool permit_vibration_session) {