btdrv-mitm: comment out virtual controller stuff for now

This commit is contained in:
ndeadly 2020-06-28 17:21:07 +02:00
parent de8c86652d
commit 00c89d21d2
6 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@ namespace controller {
BluetoothController::BluetoothController(ControllerType type, const BluetoothAddress *address) : m_type(type), m_address(*address) {
m_switchController = (type == ControllerType_Joycon) || (type == ControllerType_SwitchPro);
m_virtualController = nullptr;
//m_virtualController = nullptr;
}
const BluetoothAddress& BluetoothController::address(void) const {

View file

@ -39,7 +39,7 @@ namespace controller {
BluetoothAddress m_address;
bool m_switchController;
std::unique_ptr<VirtualController> m_virtualController;
//std::unique_ptr<VirtualController> m_virtualController;
};

View file

@ -19,8 +19,8 @@ namespace controller {
Dualshock4Controller::Dualshock4Controller(const BluetoothAddress *address)
: BluetoothController(ControllerType_Dualshock4, address) {
if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
m_virtualController = std::make_unique<HdlsVirtualController>();
//if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
//m_virtualController = std::make_unique<HdlsVirtualController>();
}
Result Dualshock4Controller::initialize(void) {

View file

@ -6,8 +6,8 @@ namespace controller {
WiimoteController::WiimoteController(const BluetoothAddress *address)
: WiiController(ControllerType_Wiimote, address) {
if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
m_virtualController = std::make_unique<HdlsVirtualController>();
//if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
//m_virtualController = std::make_unique<HdlsVirtualController>();
}
void WiimoteController::convertReportFormat(const HidReport *inReport, HidReport *outReport) {

View file

@ -9,8 +9,8 @@ namespace controller {
WiiUProController::WiiUProController(const BluetoothAddress *address)
: WiiController(ControllerType_WiiUPro, address) {
if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
m_virtualController = std::make_unique<HdlsVirtualController>();
//if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
//m_virtualController = std::make_unique<HdlsVirtualController>();
}
Result WiiUProController::initialize(void) {

View file

@ -15,8 +15,8 @@ namespace controller {
XboxOneController::XboxOneController(const BluetoothAddress *address)
: BluetoothController(ControllerType_XboxOne, address) {
if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
m_virtualController = std::make_unique<HdlsVirtualController>();
//if (ams::hos::GetVersion() >= ams::hos::Version_7_0_0)
//m_virtualController = std::make_unique<HdlsVirtualController>();
}
void XboxOneController::convertReportFormat(const HidReport *inReport, HidReport *outReport) {