ControllerEmu: Replace includes with forward declarations

Replaces includes with forward declarations where applicable, and moves
includes to where they're actually needed.
This commit is contained in:
Lioncash 2017-04-04 15:37:31 -04:00
parent 9d0a78db20
commit 14c81764df
13 changed files with 17 additions and 6 deletions

View File

@ -15,6 +15,7 @@
#include "InputCommon/ControllerEmu/ControlGroup/Buttons.h"
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerEmu/Setting/BooleanSetting.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/GCPadStatus.h"
const std::string hotkey_labels[] = {

View File

@ -66,6 +66,7 @@
#include "DolphinWX/TASInputDlg.h"
#include "DolphinWX/WxUtils.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/GCPadStatus.h"
#include "VideoCommon/OnScreenDisplay.h"

View File

@ -23,12 +23,12 @@
#include <wx/spinctrl.h>
#include <wx/timer.h>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
class ControlReference;
class DolphinSlider;
class InputConfig;
class InputConfigDialog;
class wxComboBox;
class wxListBox;
class wxStaticBitmap;
@ -37,8 +37,11 @@ class wxTextCtrl;
namespace ControllerEmu
{
class BooleanSetting;
class ControlGroup;
class EmulatedController;
class Extension;
class NumericSetting;
}
class PadSetting
@ -99,8 +102,6 @@ private:
bool m_block = false;
};
class InputConfigDialog;
class ControlDialog : public wxDialog
{
public:

View File

@ -5,6 +5,7 @@
#pragma once
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -10,7 +10,6 @@
#include "Common/CommonTypes.h"
#include "Common/IniFile.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -6,6 +6,7 @@
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -7,6 +7,7 @@
#include <array>
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -6,6 +6,7 @@
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -6,6 +6,7 @@
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -7,6 +7,7 @@
#include <array>
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -6,6 +6,7 @@
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{

View File

@ -14,6 +14,7 @@
#include "InputCommon/ControllerEmu/Control/Control.h"
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerEmu/ControlGroup/Extension.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
namespace ControllerEmu
{

View File

@ -10,8 +10,9 @@
#include <vector>
#include "Common/IniFile.h"
#include "InputCommon/ControlReference/ControlReference.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/ControllerInterface/Device.h"
class ControllerInterface;
#define sign(x) ((x) ? (x) < 0 ? -1 : 1 : 0)