diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 18:10:34 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 18:33:08 +0100 |
commit | ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0 (patch) | |
tree | 48aec311d37a0709c628d4bb0730f12d9dc6b623 /src/hid_core/frontend/emulated_controller.h | |
parent | core: hid: Only set polling mode if needed (diff) | |
download | yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.tar yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.tar.gz yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.tar.bz2 yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.tar.lz yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.tar.xz yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.tar.zst yuzu-ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0.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}; |