2020-08-25 19:23:38 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 ndeadly
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2020-08-26 18:52:47 +00:00
|
|
|
#include "switch_controller.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-26 18:52:47 +00:00
|
|
|
Result SwitchController::HandleIncomingReport(const bluetooth::HidReport *report) {
|
2020-08-24 20:47:27 +00:00
|
|
|
return bluetooth::hid::report::WriteHidReportBuffer(&m_address, report);
|
2020-07-27 17:42:40 +00:00
|
|
|
}
|
|
|
|
|
2020-08-26 18:52:47 +00:00
|
|
|
Result SwitchController::HandleOutgoingReport(const bluetooth::HidReport *report) {
|
2020-08-25 00:05:19 +00:00
|
|
|
return bluetooth::hid::report::SendHidReport(&m_address, report);
|
2020-07-11 18:26:55 +00:00
|
|
|
}
|
2020-06-02 21:24:40 +00:00
|
|
|
|
|
|
|
}
|