mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 14:31:17 +12:00
nsyshid: Add infrastructure and support for emulating Skylander Portal (#971)
This commit is contained in:
parent
f3d20832c1
commit
93b58ae6f7
19 changed files with 1658 additions and 58 deletions
29
src/Cafe/OS/libs/nsyshid/BackendEmulated.cpp
Normal file
29
src/Cafe/OS/libs/nsyshid/BackendEmulated.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "BackendEmulated.h"
|
||||
#include "Skylander.h"
|
||||
#include "config/CemuConfig.h"
|
||||
|
||||
namespace nsyshid::backend::emulated
|
||||
{
|
||||
BackendEmulated::BackendEmulated()
|
||||
{
|
||||
cemuLog_logDebug(LogType::Force, "nsyshid::BackendEmulated: emulated backend initialised");
|
||||
}
|
||||
|
||||
BackendEmulated::~BackendEmulated() = default;
|
||||
|
||||
bool BackendEmulated::IsInitialisedOk()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void BackendEmulated::AttachVisibleDevices()
|
||||
{
|
||||
if (GetConfig().emulated_usb_devices.emulate_skylander_portal && !FindDeviceById(0x1430, 0x0150))
|
||||
{
|
||||
cemuLog_logDebug(LogType::Force, "Attaching Emulated Portal");
|
||||
// Add Skylander Portal
|
||||
auto device = std::make_shared<SkylanderPortalDevice>();
|
||||
AttachDevice(device);
|
||||
}
|
||||
}
|
||||
} // namespace nsyshid::backend::emulated
|
Loading…
Add table
Add a link
Reference in a new issue