mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-28 00:35:32 +01:00
27 lines
702 B
C++
27 lines
702 B
C++
|
// Copyright 2017 Dolphin Emulator Project
|
||
|
// Licensed under GPLv2+
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#include "InputCommon/ControllerEmu/Setting/BackgroundInputSetting.h"
|
||
|
#include "Core/ConfigManager.h"
|
||
|
#include "InputCommon/ControllerEmu/Setting/Setting.h"
|
||
|
|
||
|
namespace ControllerEmu
|
||
|
{
|
||
|
BackgroundInputSetting::BackgroundInputSetting(const std::string& setting_name)
|
||
|
: BooleanSetting(setting_name, false, SettingType::VIRTUAL)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
bool BackgroundInputSetting::GetValue() const
|
||
|
{
|
||
|
return SConfig::GetInstance().m_BackgroundInput;
|
||
|
}
|
||
|
void BackgroundInputSetting::SetValue(bool value)
|
||
|
{
|
||
|
m_value = value;
|
||
|
SConfig::GetInstance().m_BackgroundInput = value;
|
||
|
}
|
||
|
|
||
|
} // namespace ControllerEmu
|