diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-02-25 20:00:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 20:00:59 +0100 |
commit | 8416d1c028b3d0fe7ab70dacd28ab8e076014f70 (patch) | |
tree | 3ef0a2763194a01147b9f3e134efeaee8dc41b5b /src/hid_core/frontend/emulated_controller.h | |
parent | Merge pull request #13160 from liamwhite/time (diff) | |
parent | core: hid: Reintroduce vibration filter (diff) | |
download | yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.tar yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.tar.gz yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.tar.bz2 yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.tar.lz yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.tar.xz yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.tar.zst yuzu-8416d1c028b3d0fe7ab70dacd28ab8e076014f70.zip |
Diffstat (limited to 'src/hid_core/frontend/emulated_controller.h')
-rw-r--r-- | src/hid_core/frontend/emulated_controller.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hid_core/frontend/emulated_controller.h b/src/hid_core/frontend/emulated_controller.h index ab3c6fcd3..17ad6069e 100644 --- a/src/hid_core/frontend/emulated_controller.h +++ b/src/hid_core/frontend/emulated_controller.h @@ -583,6 +583,7 @@ private: std::size_t nfc_handles{0}; std::array<VibrationValue, 2> last_vibration_value{DEFAULT_VIBRATION_VALUE, DEFAULT_VIBRATION_VALUE}; + std::array<std::chrono::steady_clock::time_point, 2> last_vibration_timepoint{}; // Temporary values to avoid doing changes while the controller is in configuring mode NpadStyleIndex tmp_npad_type{NpadStyleIndex::None}; |