mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 12:53:17 +00:00
28 lines
720 B
C++
28 lines
720 B
C++
#include "switchcontroller.hpp"
|
|
|
|
namespace ams::controller {
|
|
|
|
SwitchController::SwitchController(ControllerType type, const bluetooth::Address *address)
|
|
: m_type(type),
|
|
m_address(*address),
|
|
m_charging(false),
|
|
m_battery(BATTERY_MAX),
|
|
m_switchController((type == ControllerType_Joycon) || (type == ControllerType_SwitchPro)) {}
|
|
|
|
const bluetooth::Address& SwitchController::address(void) const {
|
|
return m_address;
|
|
}
|
|
|
|
ControllerType SwitchController::type(void) {
|
|
return m_type;
|
|
}
|
|
|
|
bool SwitchController::isSwitchController(void) {
|
|
return m_switchController;
|
|
}
|
|
|
|
Result SwitchController::initialize(void) {
|
|
return 0;
|
|
}
|
|
|
|
}
|