Skip to content

Commit a1c1a60

Browse files
authored
nsyshid: Emulate Infinity Base (#1246)
1 parent 64232ff commit a1c1a60

File tree

10 files changed

+1478
-22
lines changed

10 files changed

+1478
-22
lines changed

src/Cafe/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ add_library(CemuCafe
463463
OS/libs/nsyshid/BackendLibusb.h
464464
OS/libs/nsyshid/BackendWindowsHID.cpp
465465
OS/libs/nsyshid/BackendWindowsHID.h
466+
OS/libs/nsyshid/Infinity.cpp
467+
OS/libs/nsyshid/Infinity.h
466468
OS/libs/nsyshid/Skylander.cpp
467469
OS/libs/nsyshid/Skylander.h
468470
OS/libs/nsyskbd/nsyskbd.cpp

src/Cafe/OS/libs/nsyshid/BackendEmulated.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "BackendEmulated.h"
2+
#include "Infinity.h"
23
#include "Skylander.h"
34
#include "config/CemuConfig.h"
45

@@ -25,5 +26,12 @@ namespace nsyshid::backend::emulated
2526
auto device = std::make_shared<SkylanderPortalDevice>();
2627
AttachDevice(device);
2728
}
29+
if (GetConfig().emulated_usb_devices.emulate_infinity_base && !FindDeviceById(0x0E6F, 0x0129))
30+
{
31+
cemuLog_logDebug(LogType::Force, "Attaching Emulated Base");
32+
// Add Infinity Base
33+
auto device = std::make_shared<InfinityBaseDevice>();
34+
AttachDevice(device);
35+
}
2836
}
2937
} // namespace nsyshid::backend::emulated

0 commit comments

Comments
 (0)