diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt
index 10a51b4a65..b37c78e309 100644
--- a/Source/Core/Core/CMakeLists.txt
+++ b/Source/Core/Core/CMakeLists.txt
@@ -239,8 +239,7 @@ set(LIBS
if(LIBUSB_FOUND)
# Using shared LibUSB
set(LIBS ${LIBS} ${LIBUSB_LIBRARIES})
- set(SRCS ${SRCS} IPC_HLE/WII_IPC_HLE_Device_hid.cpp
- HW/SI_GCAdapter.cpp)
+ set(SRCS ${SRCS} IPC_HLE/WII_IPC_HLE_Device_hid.cpp)
endif(LIBUSB_FOUND)
set(LIBS ${LIBS} ${MBEDTLS_LIBRARIES})
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp
index c49d89c847..0d614c9634 100644
--- a/Source/Core/Core/Core.cpp
+++ b/Source/Core/Core/Core.cpp
@@ -48,9 +48,6 @@
#include "Core/HW/HW.h"
#include "Core/HW/Memmap.h"
#include "Core/HW/ProcessorInterface.h"
-#if defined(__LIBUSB__) || defined(_WIN32)
-#include "Core/HW/SI_GCAdapter.h"
-#endif
#include "Core/HW/SystemTimers.h"
#include "Core/HW/VideoInterface.h"
#include "Core/HW/Wiimote.h"
@@ -65,6 +62,7 @@
#endif
#include "DiscIO/FileMonitor.h"
+#include "InputCommon/GCAdapter.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "VideoCommon/OnScreenDisplay.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -285,7 +283,7 @@ void Stop() // - Hammertime!
g_video_backend->Video_ExitLoop();
}
#if defined(__LIBUSB__) || defined(_WIN32)
- SI_GCAdapter::ResetRumble();
+ GCAdapter::ResetRumble();
#endif
#ifdef USE_MEMORYWATCHER
@@ -630,7 +628,7 @@ void SetState(EState _State)
CPU::EnableStepping(true); // Break
Wiimote::Pause();
#if defined(__LIBUSB__) || defined(_WIN32)
- SI_GCAdapter::ResetRumble();
+ GCAdapter::ResetRumble();
#endif
break;
case CORE_RUN:
@@ -741,7 +739,7 @@ bool PauseAndLock(bool doLock, bool unpauseOnUnlock)
g_video_backend->PauseAndLock(doLock, unpauseOnUnlock);
#if defined(__LIBUSB__) || defined(_WIN32)
- SI_GCAdapter::ResetRumble();
+ GCAdapter::ResetRumble();
#endif
return wasUnpaused;
}
diff --git a/Source/Core/Core/Core.vcxproj b/Source/Core/Core/Core.vcxproj
index 05af583ed2..87f7e52bd4 100644
--- a/Source/Core/Core/Core.vcxproj
+++ b/Source/Core/Core/Core.vcxproj
@@ -148,13 +148,6 @@
-
-
- 4200;%(DisableSpecificWarnings)
-
@@ -360,7 +353,6 @@
-
diff --git a/Source/Core/Core/Core.vcxproj.filters b/Source/Core/Core/Core.vcxproj.filters
index a374defc07..855ee5edcb 100644
--- a/Source/Core/Core/Core.vcxproj.filters
+++ b/Source/Core/Core/Core.vcxproj.filters
@@ -720,9 +720,6 @@
PowerPC
-
- HW %28Flipper/Hollywood%29\SI - Serial Interface
-
PowerPC\JitCommon
@@ -1241,9 +1238,6 @@
HW %28Flipper/Hollywood%29\GCKeyboard
-
- HW %28Flipper/Hollywood%29\SI - Serial Interface
-
PowerPC\Jit64Common
diff --git a/Source/Core/DolphinWX/ControllerConfigDiag.cpp b/Source/Core/DolphinWX/ControllerConfigDiag.cpp
index 149247dd81..85154040ea 100644
--- a/Source/Core/DolphinWX/ControllerConfigDiag.cpp
+++ b/Source/Core/DolphinWX/ControllerConfigDiag.cpp
@@ -26,13 +26,11 @@
#include "Core/HW/GCKeyboard.h"
#include "Core/HW/GCPad.h"
#include "Core/HW/SI.h"
-#if defined(__LIBUSB__) || defined (_WIN32)
-#include "Core/HW/SI_GCAdapter.h"
-#endif
#include "Core/HW/Wiimote.h"
#include "Core/HW/WiimoteReal/WiimoteReal.h"
#include "DolphinWX/ControllerConfigDiag.h"
#include "DolphinWX/InputConfigDiag.h"
+#include "InputCommon/GCAdapter.h"
#if defined(HAVE_XRANDR) && HAVE_XRANDR
#include "DolphinWX/X11Utils.h"
diff --git a/Source/Core/DolphinWX/ControllerConfigDiag.h b/Source/Core/DolphinWX/ControllerConfigDiag.h
index f679992b54..7bfc76bca7 100644
--- a/Source/Core/DolphinWX/ControllerConfigDiag.h
+++ b/Source/Core/DolphinWX/ControllerConfigDiag.h
@@ -10,8 +10,8 @@
#include "Common/SysConf.h"
#include "Core/ConfigManager.h"
-#include "Core/HW/SI_GCAdapter.h"
#include "Core/HW/Wiimote.h"
+#include "InputCommon/GCAdapter.h"
class InputConfig;
class wxButton;
diff --git a/Source/Core/InputCommon/CMakeLists.txt b/Source/Core/InputCommon/CMakeLists.txt
index b200625000..254dffce10 100644
--- a/Source/Core/InputCommon/CMakeLists.txt
+++ b/Source/Core/InputCommon/CMakeLists.txt
@@ -3,8 +3,6 @@ set(SRCS ControllerEmu.cpp
ControllerInterface/ControllerInterface.cpp
ControllerInterface/Device.cpp
ControllerInterface/ExpressionParser.cpp)
-
-
set(LIBS common)
if(WIN32)
@@ -37,6 +35,10 @@ elseif(ANDROID)
ControllerInterface/Android/Android.cpp)
endif()
+if(LIBUSB_FOUND)
+ set(SRCS ${SRCS} GCAdapter.cpp)
+endif(LIBUSB_FOUND)
+
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
set(SRCS ${SRCS} ControllerInterface/evdev/evdev.cpp)
set(LIBS ${LIBS} ${LIBEVDEV_LIBRARY} ${LIBUDEV_LIBRARY})
diff --git a/Source/Core/Core/HW/SI_GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp
similarity index 100%
rename from Source/Core/Core/HW/SI_GCAdapter.cpp
rename to Source/Core/InputCommon/GCAdapter.cpp
diff --git a/Source/Core/Core/HW/SI_GCAdapter.h b/Source/Core/InputCommon/GCAdapter.h
similarity index 100%
rename from Source/Core/Core/HW/SI_GCAdapter.h
rename to Source/Core/InputCommon/GCAdapter.h
diff --git a/Source/Core/InputCommon/InputCommon.vcxproj b/Source/Core/InputCommon/InputCommon.vcxproj
index 347c06e770..3e63243949 100644
--- a/Source/Core/InputCommon/InputCommon.vcxproj
+++ b/Source/Core/InputCommon/InputCommon.vcxproj
@@ -52,6 +52,13 @@
+
+
+ 4200;%(DisableSpecificWarnings)
+
@@ -66,6 +73,7 @@
+
@@ -80,4 +88,4 @@
-
\ No newline at end of file
+
diff --git a/Source/Core/InputCommon/InputCommon.vcxproj.filters b/Source/Core/InputCommon/InputCommon.vcxproj.filters
index 3c16ad5f26..6a63852303 100644
--- a/Source/Core/InputCommon/InputCommon.vcxproj.filters
+++ b/Source/Core/InputCommon/InputCommon.vcxproj.filters
@@ -16,6 +16,7 @@
+
ControllerInterface\DInput
@@ -47,6 +48,7 @@
+
@@ -83,4 +85,4 @@
-
\ No newline at end of file
+
diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp
index 5ba825f5e2..8a4e76c535 100644
--- a/Source/Core/UICommon/UICommon.cpp
+++ b/Source/Core/UICommon/UICommon.cpp
@@ -11,11 +11,10 @@
#include "Common/Logging/LogManager.h"
#include "Core/ConfigManager.h"
-#if defined(__LIBUSB__) || defined (_WIN32)
-#include "Core/HW/SI_GCAdapter.h"
-#endif
#include "Core/HW/Wiimote.h"
+#include "InputCommon/GCAdapter.h"
+
#include "UICommon/UICommon.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -30,7 +29,7 @@ void Init()
VideoBackend::PopulateList();
WiimoteReal::LoadSettings();
#if defined(__LIBUSB__) || defined (_WIN32)
- SI_GCAdapter::Init();
+ GCAdapter::Init();
#endif
VideoBackend::ActivateBackend(SConfig::GetInstance().m_strVideoBackend);
@@ -40,7 +39,7 @@ void Init()
void Shutdown()
{
#if defined(__LIBUSB__) || defined (_WIN32)
- SI_GCAdapter::Shutdown();
+ GCAdapter::Shutdown();
#endif
WiimoteReal::Shutdown();
VideoBackend::ClearList();