From 20257634209dba85d2cd51ad42e660090a5224e6 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 9 Dec 2021 18:22:16 -0800 Subject: Treewide: Adjust order of includes --- Source/Core/InputCommon/ControllerInterface/Android/Android.cpp | 1 + .../Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp | 3 ++- .../Core/InputCommon/ControllerInterface/DInput/XInputFilter.cpp | 2 ++ Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm | 3 ++- Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | 3 ++- Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h | 2 ++ .../Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp | 3 ++- Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.cpp | 7 ++++--- Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp | 4 ++-- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 3 ++- 10 files changed, 21 insertions(+), 10 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface') diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp index 5937f1168f..7a7c548cc6 100644 --- a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include "InputCommon/ControllerInterface/Android/Android.h" + #include "InputCommon/ControllerInterface/ControllerInterface.h" #include "InputCommon/ControllerInterface/Touch/Touchscreen.h" diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp index e7a8bea6fe..596fd1f109 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp @@ -1,6 +1,8 @@ // Copyright 2010 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/DInput/DInputJoystick.h" + #include #include #include @@ -11,7 +13,6 @@ #include "Common/Logging/Log.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" #include "InputCommon/ControllerInterface/DInput/DInput.h" -#include "InputCommon/ControllerInterface/DInput/DInputJoystick.h" #include "InputCommon/ControllerInterface/DInput/XInputFilter.h" namespace ciface::DInput diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/XInputFilter.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/XInputFilter.cpp index 94ae14f3db..4379749e5f 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/XInputFilter.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/XInputFilter.cpp @@ -1,6 +1,8 @@ // Copyright 2014 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/DInput/XInputFilter.h" + #include #include #include diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm index e846ffb0e1..10c30ffb21 100644 --- a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm +++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm @@ -1,6 +1,8 @@ // Copyright 2013 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/OSX/OSX.h" + #include #include @@ -12,7 +14,6 @@ #include "Common/Thread.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" -#include "InputCommon/ControllerInterface/OSX/OSX.h" #include "InputCommon/ControllerInterface/OSX/OSXJoystick.h" #include "InputCommon/ControllerInterface/OSX/RunLoopStopper.h" diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp index a273814db6..5c71adec23 100644 --- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp @@ -1,6 +1,8 @@ // Copyright 2015 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/Pipes/Pipes.h" + #include #include #include @@ -17,7 +19,6 @@ #include "Common/FileUtil.h" #include "Common/StringUtil.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" -#include "InputCommon/ControllerInterface/Pipes/Pipes.h" namespace ciface::Pipes { diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h index 3c1516c714..ab9e987c32 100644 --- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h +++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h @@ -7,6 +7,8 @@ #include #include +#include "InputCommon/ControllerInterface/ControllerInterface.h" + namespace ciface::Pipes { // To create a piped controller input, create a named pipe in the diff --git a/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp b/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp index 8b8412c932..7b15f92de9 100644 --- a/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp @@ -1,6 +1,8 @@ // Copyright 2013 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/Touch/ButtonManager.h" + #include #include #include @@ -23,7 +25,6 @@ #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" #include "InputCommon/ControllerEmu/StickGate.h" -#include "InputCommon/ControllerInterface/Touch/ButtonManager.h" namespace ButtonManager { diff --git a/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.cpp b/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.cpp index ca98dbe040..a4c20b0ae0 100644 --- a/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.cpp @@ -1,14 +1,15 @@ // Copyright 2013 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/Touch/Touchscreen.h" + +#include +#include #ifdef ANDROID #include #endif -#include -#include #include "InputCommon/ControllerInterface/ControllerInterface.h" -#include "InputCommon/ControllerInterface/Touch/Touchscreen.h" namespace ciface::Touch { diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp index 689b4fcf7b..1f8e107987 100644 --- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp @@ -1,6 +1,8 @@ // Copyright 2013 Max Eliaser // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/Xlib/XInput2.h" + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wregister" #include @@ -11,8 +13,6 @@ #include -#include "InputCommon/ControllerInterface/Xlib/XInput2.h" - #include "Common/StringUtil.h" // This is an input plugin using the XInput 2.0 extension to the X11 protocol, diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index f4b83f2056..43662edb8b 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -1,6 +1,8 @@ // Copyright 2015 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "InputCommon/ControllerInterface/evdev/evdev.h" + #include #include #include @@ -20,7 +22,6 @@ #include "Common/StringUtil.h" #include "Common/Thread.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" -#include "InputCommon/ControllerInterface/evdev/evdev.h" namespace ciface::evdev { -- cgit v1.2.3