diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-01-06 00:57:08 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-01-06 00:57:08 -0600 |
| commit | 6e503bebc43e17418d88261568a15cfc75757a17 (patch) | |
| tree | 211d79e80240bda70cead4952eef46536ce216c7 /Source/Core/InputCommon/GCAdapter_Null.cpp | |
| parent | af6a5ddafe69a7ba36080cc164318f56a2ebc7f6 (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.cpp | 23 |
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 |
