From 4cf0142285e306d7e12021d4f5c83e487e7a817d Mon Sep 17 00:00:00 2001 From: lightmanLP <50497969+lightmanLP@users.noreply.github.com> Date: Fri, 27 Dec 2024 23:48:24 +0000 Subject: [PATCH] clang format --- src/controller/controldevice/controller/ControllerButton.cpp | 4 ++-- src/controller/controldevice/controller/ControllerStick.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controller/controldevice/controller/ControllerButton.cpp b/src/controller/controldevice/controller/ControllerButton.cpp index dd3005758..946d60010 100644 --- a/src/controller/controldevice/controller/ControllerButton.cpp +++ b/src/controller/controldevice/controller/ControllerButton.cpp @@ -182,8 +182,8 @@ bool ControllerButton::AddOrEditButtonMappingFromRawPress(CONTROLLERBUTTONS_T bi if (mKeyboardScancodeForNewMapping != LUS_KB_UNKNOWN) { mapping = std::make_shared(mPortIndex, bitmask, mKeyboardScancodeForNewMapping); } else if (!Context::GetInstance()->GetWindow()->GetGui()->IsMouseOverAnyGuiItem() && - Context::GetInstance()->GetWindow()->GetGui()->IsMouseOverActivePopup() && - mMouseButtonForNewMapping != LUS_MOUSE_BTN_UNKNOWN) { + Context::GetInstance()->GetWindow()->GetGui()->IsMouseOverActivePopup() && + mMouseButtonForNewMapping != LUS_MOUSE_BTN_UNKNOWN) { mapping = std::make_shared(mPortIndex, bitmask, mMouseButtonForNewMapping); } else { mapping = ButtonMappingFactory::CreateButtonMappingFromSDLInput(mPortIndex, bitmask); diff --git a/src/controller/controldevice/controller/ControllerStick.cpp b/src/controller/controldevice/controller/ControllerStick.cpp index 781b2c6a6..55723e3b3 100644 --- a/src/controller/controldevice/controller/ControllerStick.cpp +++ b/src/controller/controldevice/controller/ControllerStick.cpp @@ -276,8 +276,8 @@ bool ControllerStick::AddOrEditAxisDirectionMappingFromRawPress(Direction direct mapping = std::make_shared(mPortIndex, mStickIndex, direction, mKeyboardScancodeForNewMapping); } else if (!Context::GetInstance()->GetWindow()->GetGui()->IsMouseOverAnyGuiItem() && - Context::GetInstance()->GetWindow()->GetGui()->IsMouseOverActivePopup() && - mMouseButtonForNewMapping != LUS_MOUSE_BTN_UNKNOWN) { + Context::GetInstance()->GetWindow()->GetGui()->IsMouseOverActivePopup() && + mMouseButtonForNewMapping != LUS_MOUSE_BTN_UNKNOWN) { mapping = std::make_shared(mPortIndex, mStickIndex, direction, mMouseButtonForNewMapping); } else {