nsyshid: Add support for emulated Dimensions Toypad (#1371)

This commit is contained in:
Joshua de Reeper 2024-11-11 07:58:01 +00:00 committed by GitHub
parent 2e829479d9
commit ca2e0a7c31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1690 additions and 52 deletions

View file

@ -1,4 +1,6 @@
#include "BackendEmulated.h"
#include "Dimensions.h"
#include "Infinity.h"
#include "Skylander.h"
#include "config/CemuConfig.h"
@ -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