summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/GCAdapter_Null.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2016-01-06 00:57:08 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2016-01-06 00:57:08 -0600
commit6e503bebc43e17418d88261568a15cfc75757a17 (patch)
tree211d79e80240bda70cead4952eef46536ce216c7 /Source/Core/InputCommon/GCAdapter_Null.cpp
parentaf6a5ddafe69a7ba36080cc164318f56a2ebc7f6 (diff)
Add a stubbed GCAdapter namespace.
This cleans up a bunch of #ifdef checks in places.
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter_Null.cpp')
-rw-r--r--Source/Core/InputCommon/GCAdapter_Null.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/GCAdapter_Null.cpp b/Source/Core/InputCommon/GCAdapter_Null.cpp
new file mode 100644
index 0000000000..0936eb33f1
--- /dev/null
+++ b/Source/Core/InputCommon/GCAdapter_Null.cpp
@@ -0,0 +1,23 @@
+// Copyright 2014 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
+#include "InputCommon/GCAdapter.h"
+namespace GCAdapter
+{
+void Init() {}
+void Reset() {}
+void ResetRumble() {}
+void Setup() {}
+void Shutdown() {}
+void SetAdapterCallback(std::function<void(void)> func) {}
+void StartScanThread() {}
+void StopScanThread() {}
+void Input(int chan, GCPadStatus* pad) {}
+void Output(int chan, u8 rumble_command) {}
+bool IsDetected() { return false; }
+bool IsDriverDetected() { return false; }
+bool DeviceConnected(int chan) { return false; }
+bool UseAdapter() { return false; }
+
+} // end of namespace GCAdapter