MissionControl/btdrv-mitm/source/controllers/switchcontroller.cpp

15 lines
458 B
C++
Raw Normal View History

#include "switchcontroller.hpp"
#include "../bluetooth/bluetooth_hid_report.hpp"
namespace ams::controller {
Result SwitchController::handleIncomingReport(const bluetooth::HidReport *report) {
return bluetooth::hid::report::WriteHidReportBuffer(&m_address, report);
}
Result SwitchController::handleOutgoingReport(const bluetooth::HidReport *report) {
return bluetooth::hid::report::SendHidReport(&m_address, report);
}
}