diff options
author | german77 <juangerman-13@hotmail.com> | 2022-06-27 00:49:14 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-06-29 02:22:16 +0200 |
commit | 5e7e55b98a22b8db0e3f8982837a306b6b66f61e (patch) | |
tree | 91f1389534b7f490364b2cc48753fe95010c9e42 /src/core/hle/service | |
parent | Merge pull request #8512 from german77/nnResult (diff) | |
download | yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.gz yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.bz2 yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.lz yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.xz yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.zst yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 4 |
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 c08b0a5dc..7afdbfb96 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -820,11 +820,11 @@ bool Controller_NPad::VibrateControllerAtIndex(Core::HID::NpadIdType npad_id, const auto now = steady_clock::now(); - // Filter out non-zero vibrations that are within 10ms of each other. + // Filter out non-zero vibrations that are within 15ms of each other. if ((vibration_value.low_amplitude != 0.0f || vibration_value.high_amplitude != 0.0f) && duration_cast<milliseconds>( now - controller.vibration[device_index].last_vibration_timepoint) < - milliseconds(10)) { + milliseconds(15)) { return false; } |