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/ControlGroup/Buttons.h"
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/Common.h"
|
2017-02-26 20:00:24 +00:00
|
|
|
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
|
2017-02-09 03:15:43 +00:00
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
2017-02-11 00:52:12 +00:00
|
|
|
Buttons::Buttons(const std::string& name_) : Buttons(name_, name_)
|
2017-02-09 03:15:43 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Buttons::Buttons(const std::string& ini_name, const std::string& group_name)
|
2017-02-25 05:35:02 +00:00
|
|
|
: ControlGroup(ini_name, group_name, GroupType::Buttons)
|
2017-02-09 03:15:43 +00:00
|
|
|
{
|
|
|
|
numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Threshold"), 0.5));
|
|
|
|
}
|
|
|
|
} // namespace ControllerEmu
|