Skip to content

Commit

Permalink
nsyshid: Add support for emulated Dimensions Toypad (cemu-project#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
deReeperJosh authored Nov 11, 2024
1 parent 2e82947 commit ca2e0a7
Show file tree
Hide file tree
Showing 8 changed files with 1,684 additions and 46 deletions.
2 changes: 2 additions & 0 deletions src/Cafe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ add_library(CemuCafe
OS/libs/nsyshid/BackendLibusb.h
OS/libs/nsyshid/BackendWindowsHID.cpp
OS/libs/nsyshid/BackendWindowsHID.h
OS/libs/nsyshid/Dimensions.cpp
OS/libs/nsyshid/Dimensions.h
OS/libs/nsyshid/Infinity.cpp
OS/libs/nsyshid/Infinity.h
OS/libs/nsyshid/Skylander.cpp
Expand Down
9 changes: 9 additions & 0 deletions src/Cafe/OS/libs/nsyshid/BackendEmulated.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "BackendEmulated.h"

#include "Dimensions.h"
#include "Infinity.h"
#include "Skylander.h"
#include "config/CemuConfig.h"
Expand Down Expand Up @@ -33,5 +35,12 @@ namespace nsyshid::backend::emulated
auto device = std::make_shared<InfinityBaseDevice>();
AttachDevice(device);
}
if (GetConfig().emulated_usb_devices.emulate_dimensions_toypad && !FindDeviceById(0x0E6F, 0x0241))
{
cemuLog_logDebug(LogType::Force, "Attaching Emulated Toypad");
// Add Dimensions Toypad
auto device = std::make_shared<DimensionsToypadDevice>();
AttachDevice(device);
}
}
} // namespace nsyshid::backend::emulated
Loading

0 comments on commit ca2e0a7

Please sign in to comment.