From ad4622da2cad626b1acdbf1c3985d4d5b6e86bb0 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Tue, 23 Jan 2024 11:10:34 -0600 Subject: core: hid: Skip duplicated vibrations --- src/hid_core/frontend/emulated_controller.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hid_core/frontend/emulated_controller.h') 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 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}; -- cgit v1.2.3