diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-26 15:57:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 15:57:40 +0100 |
commit | 4349cdba070b159181d7090a27beb794bb83e481 (patch) | |
tree | 1bd25e48ffeb2dcc0d033fdf3a900d91fa1e4360 /src/hid_core/frontend/emulated_controller.h | |
parent | Merge pull request #12809 from t895/error-message (diff) | |
parent | core: hid: Skip duplicated vibrations (diff) | |
download | yuzu-4349cdba070b159181d7090a27beb794bb83e481.tar yuzu-4349cdba070b159181d7090a27beb794bb83e481.tar.gz yuzu-4349cdba070b159181d7090a27beb794bb83e481.tar.bz2 yuzu-4349cdba070b159181d7090a27beb794bb83e481.tar.lz yuzu-4349cdba070b159181d7090a27beb794bb83e481.tar.xz yuzu-4349cdba070b159181d7090a27beb794bb83e481.tar.zst yuzu-4349cdba070b159181d7090a27beb794bb83e481.zip |
Diffstat (limited to 'src/hid_core/frontend/emulated_controller.h')
-rw-r--r-- | src/hid_core/frontend/emulated_controller.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hid_core/frontend/emulated_controller.h b/src/hid_core/frontend/emulated_controller.h index 168abe089..701b38300 100644 --- a/src/hid_core/frontend/emulated_controller.h +++ b/src/hid_core/frontend/emulated_controller.h @@ -581,7 +581,8 @@ private: f32 motion_sensitivity{Core::HID::MotionInput::IsAtRestStandard}; u32 turbo_button_state{0}; std::size_t nfc_handles{0}; - VibrationValue last_vibration_value{DEFAULT_VIBRATION_VALUE}; + std::array<VibrationValue, 2> last_vibration_value{DEFAULT_VIBRATION_VALUE, + DEFAULT_VIBRATION_VALUE}; // Temporary values to avoid doing changes while the controller is in configuring mode NpadStyleIndex tmp_npad_type{NpadStyleIndex::None}; |