diff options
author | german77 <juangerman-13@hotmail.com> | 2022-06-26 17:49:14 -0500 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-06-28 19:22:16 -0500 |
commit | 5e7e55b98a22b8db0e3f8982837a306b6b66f61e (patch) | |
tree | 91f1389534b7f490364b2cc48753fe95010c9e42 /src/core | |
parent | 01bc0c84f021ad389309aeb23bdb063070aeb2fe (diff) |
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.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; } |