2017-06-13 15:16:41 +00: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 21:15:37 +00:00
|
|
|
enum class Quote
|
|
|
|
{
|
|
|
|
On,
|
|
|
|
Off
|
|
|
|
};
|
|
|
|
|
2017-06-13 15:16:41 +00:00
|
|
|
QString GetExpressionForControl(const QString& control_name,
|
|
|
|
const ciface::Core::DeviceQualifier& control_device,
|
2018-07-16 21:15:37 +00:00
|
|
|
const ciface::Core::DeviceQualifier& default_device,
|
|
|
|
Quote quote = Quote::On);
|
2017-06-13 15:16:41 +00:00
|
|
|
QString DetectExpression(ControlReference* reference, ciface::Core::Device* device,
|
2018-07-16 21:15:37 +00:00
|
|
|
const ciface::Core::DeviceQualifier& default_device,
|
|
|
|
Quote quote = Quote::On);
|
|
|
|
} // namespace MappingCommon
|