2017-02-09 03:15:43 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "InputCommon/ControllerEmu/Control/Control.h"
|
2017-02-11 00:31:21 +00:00
|
|
|
|
|
|
|
#include <utility>
|
2017-02-09 03:15:43 +00:00
|
|
|
#include "InputCommon/ControlReference/ControlReference.h"
|
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
2018-04-10 15:22:30 +00:00
|
|
|
Control::Control(std::unique_ptr<ControlReference> ref, Translatability translate_,
|
2019-10-27 16:04:08 +00:00
|
|
|
std::string name_, std::string ui_name_)
|
|
|
|
: control_ref(std::move(ref)), translate(translate_), name(std::move(name_)),
|
|
|
|
ui_name(std::move(ui_name_))
|
2017-04-30 12:53:33 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-04-10 15:22:30 +00:00
|
|
|
Control::Control(std::unique_ptr<ControlReference> ref, Translatability translate_,
|
2019-10-27 16:04:08 +00:00
|
|
|
std::string name_)
|
|
|
|
: control_ref(std::move(ref)), translate(translate_), name(name_), ui_name(std::move(name_))
|
2017-02-09 03:15:43 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Control::~Control() = default;
|
|
|
|
} // namespace ControllerEmu
|