summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar liamwhite2022-07-14 20:41:29 -0400
committerGravatar GitHub2022-07-14 20:41:29 -0400
commit9627c550a0c4403813af23d6bdf5348aef0d08d7 (patch)
treedf0f702a3777a500dc09bdbb136f339b6c6ca0a7 /src/core
parentMerge pull request #8559 from liamwhite/waiter-list (diff)
parentinput_common: sdl: lower vibration frequency and use it's own unique thread (diff)
downloadyuzu-9627c550a0c4403813af23d6bdf5348aef0d08d7.tar.gz
yuzu-9627c550a0c4403813af23d6bdf5348aef0d08d7.tar.xz
yuzu-9627c550a0c4403813af23d6bdf5348aef0d08d7.zip
Merge pull request #8510 from german77/vibration
input_common: sdl: lower vibration frequency and use it's own unique thread
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