diff options
| author | 2022-06-26 17:49:14 -0500 | |
|---|---|---|
| committer | 2022-06-28 19:22:16 -0500 | |
| commit | 5e7e55b98a22b8db0e3f8982837a306b6b66f61e (patch) | |
| tree | 91f1389534b7f490364b2cc48753fe95010c9e42 /src/core/hle | |
| parent | Merge pull request #8512 from german77/nnResult (diff) | |
| download | yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.gz yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.tar.xz yuzu-5e7e55b98a22b8db0e3f8982837a306b6b66f61e.zip | |
input_common: sdl: lower vibration frequency and use it's own unique thread
Diffstat (limited to 'src/core/hle')
| -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, | |||
| 820 | 820 | ||
| 821 | const auto now = steady_clock::now(); | 821 | const auto now = steady_clock::now(); |
| 822 | 822 | ||
| 823 | // Filter out non-zero vibrations that are within 10ms of each other. | 823 | // Filter out non-zero vibrations that are within 15ms of each other. |
| 824 | if ((vibration_value.low_amplitude != 0.0f || vibration_value.high_amplitude != 0.0f) && | 824 | if ((vibration_value.low_amplitude != 0.0f || vibration_value.high_amplitude != 0.0f) && |
| 825 | duration_cast<milliseconds>( | 825 | duration_cast<milliseconds>( |
| 826 | now - controller.vibration[device_index].last_vibration_timepoint) < | 826 | now - controller.vibration[device_index].last_vibration_timepoint) < |
| 827 | milliseconds(10)) { | 827 | milliseconds(15)) { |
| 828 | return false; | 828 | return false; |
| 829 | } | 829 | } |
| 830 | 830 | ||