2017-06-13 09:16:41 -06:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
class ControlReference;
|
|
|
|
|
|
|
|
namespace ciface
|
|
|
|
{
|
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
class Device;
|
|
|
|
class DeviceQualifier;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MappingCommon
|
|
|
|
{
|
2018-07-16 15:15:37 -06:00
|
|
|
enum class Quote
|
|
|
|
{
|
|
|
|
On,
|
|
|
|
Off
|
|
|
|
};
|
|
|
|
|
2017-06-13 09:16:41 -06:00
|
|
|
QString GetExpressionForControl(const QString& control_name,
|
|
|
|
const ciface::Core::DeviceQualifier& control_device,
|
2018-07-16 15:15:37 -06:00
|
|
|
const ciface::Core::DeviceQualifier& default_device,
|
|
|
|
Quote quote = Quote::On);
|
2017-06-13 09:16:41 -06:00
|
|
|
QString DetectExpression(ControlReference* reference, ciface::Core::Device* device,
|
2018-07-16 15:15:37 -06:00
|
|
|
const ciface::Core::DeviceQualifier& default_device,
|
|
|
|
Quote quote = Quote::On);
|
|
|
|
} // namespace MappingCommon
|