mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Add a stubbed GCAdapter namespace.
This cleans up a bunch of #ifdef checks in places.
This commit is contained in:
23
Source/Core/InputCommon/GCAdapter_Null.cpp
Normal file
23
Source/Core/InputCommon/GCAdapter_Null.cpp
Normal file
@ -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
|
Reference in New Issue
Block a user