2020-06-02 21:24:40 +00:00
|
|
|
#include "switchcontroller.hpp"
|
2020-08-24 20:47:27 +00:00
|
|
|
#include "../bluetooth/bluetooth_hid_report.hpp"
|
2020-06-02 21:24:40 +00:00
|
|
|
|
2020-07-11 11:43:21 +00:00
|
|
|
namespace ams::controller {
|
2020-06-02 21:24:40 +00:00
|
|
|
|
2020-08-24 20:47:27 +00:00
|
|
|
Result SwitchController::handleIncomingReport(const bluetooth::HidReport *report) {
|
|
|
|
return bluetooth::hid::report::WriteHidReportBuffer(&m_address, report);
|
2020-07-27 17:42:40 +00:00
|
|
|
}
|
|
|
|
|
2020-08-25 00:05:19 +00:00
|
|
|
Result SwitchController::handleOutgoingReport(const bluetooth::HidReport *report) {
|
|
|
|
return bluetooth::hid::report::SendHidReport(&m_address, report);
|
2020-07-11 18:26:55 +00:00
|
|
|
}
|
2020-06-02 21:24:40 +00:00
|
|
|
|
|
|
|
}
|