diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.cpp b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.cpp index 2047050de3..f3294c0a92 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.cpp @@ -30,6 +30,15 @@ None::None(ExtensionReg& reg) : Attachment("None", reg) m_id = nothing_id; } +void Attachment::GetState(u8* const data) +{ +} + +bool Attachment::IsButtonPressed() const +{ + return false; +} + std::string Attachment::GetName() const { return m_name; @@ -42,7 +51,7 @@ void Attachment::Reset() std::copy(m_id.cbegin(), m_id.cend(), m_reg.constant_id); std::copy(m_calibration.cbegin(), m_calibration.cend(), m_reg.calibration); } -} +} // namespace WiimoteEmu void ControllerEmu::Extension::GetState(u8* const data) { diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h index 385c79efe0..f1cffa44c3 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h @@ -18,8 +18,9 @@ class Attachment : public ControllerEmu public: Attachment(const char* const name, ExtensionReg& reg); - virtual void GetState(u8* const data) {} - virtual bool IsButtonPressed() const { return false; } + virtual void GetState(u8* const data); + virtual bool IsButtonPressed() const; + void Reset(); std::string GetName() const override; @@ -40,4 +41,4 @@ class None : public Attachment public: None(ExtensionReg& reg); }; -} +} // namespace WiimoteEmu