From ab3e51e50d5cc45594ff905ecd769d64ba80a618 Mon Sep 17 00:00:00 2001 From: Crimson-Hawk Date: Thu, 21 Mar 2024 19:36:05 +0800 Subject: [PATCH] fixes clang format error in !193 --- src/hid_core/frontend/emulated_controller.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp index 5bdad4a0ad..f1c317cbde 100644 --- a/src/hid_core/frontend/emulated_controller.cpp +++ b/src/hid_core/frontend/emulated_controller.cpp @@ -763,11 +763,9 @@ void EmulatedController::StartMotionCalibration() { void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index, Common::UUID uuid) { const auto player_index = Service::HID::NpadIdTypeToIndex(npad_id_type); const auto& player = Settings::values.players.GetValue()[player_index]; - if (index >= controller.button_values.size()) { return; } - std::unique_lock lock{mutex}; bool value_changed = false; const auto new_status = TransformToButton(callback);