diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-01-01 08:32:39 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-02-02 19:40:31 -0600 |
| commit | 0d1fbe7bbca8e42449ee37600519509cb47516b9 (patch) | |
| tree | 28c80ff2fa153a50e9e7ed9bee91ed85a9692289 /Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp | |
| parent | b1f350ab1c225996bf5eee169acd1f53d8936234 (diff) | |
WiimoteEmu: Major renaming and cleanup.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp new file mode 100644 index 0000000000..e104918fe2 --- /dev/null +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp @@ -0,0 +1,33 @@ +// Copyright 2017 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#include "InputCommon/ControllerEmu/ControlGroup/Attachments.h" + +namespace ControllerEmu +{ +Attachments::Attachments(const std::string& name_) : ControlGroup(name_, GroupType::Attachments) +{ +} + +void Attachments::AddAttachment(std::unique_ptr<EmulatedController> att) +{ + m_attachments.emplace_back(std::move(att)); +} + +u32 Attachments::GetSelectedAttachment() const +{ + return m_selected_attachment; +} + +void Attachments::SetSelectedAttachment(u32 val) +{ + m_selected_attachment = val; +} + +const std::vector<std::unique_ptr<EmulatedController>>& Attachments::GetAttachmentList() const +{ + return m_attachments; +} + +} // namespace ControllerEmu |
