summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-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 aa7189bda..3c28dee76 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -838,11 +838,11 @@ bool Controller_NPad::VibrateControllerAtIndex(Core::HID::NpadIdType npad_id,
838 838
839 const auto now = steady_clock::now(); 839 const auto now = steady_clock::now();
840 840
841 // Filter out non-zero vibrations that are within 10ms of each other. 841 // Filter out non-zero vibrations that are within 15ms of each other.
842 if ((vibration_value.low_amplitude != 0.0f || vibration_value.high_amplitude != 0.0f) && 842 if ((vibration_value.low_amplitude != 0.0f || vibration_value.high_amplitude != 0.0f) &&
843 duration_cast<milliseconds>( 843 duration_cast<milliseconds>(
844 now - controller.vibration[device_index].last_vibration_timepoint) < 844 now - controller.vibration[device_index].last_vibration_timepoint) <
845 milliseconds(10)) { 845 milliseconds(15)) {
846 return false; 846 return false;
847 } 847 }
848 848