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
|
|
|
|
|
2019-02-28 00:10:18 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2017-06-13 15:16:41 +00:00
|
|
|
class QString;
|
2019-02-28 00:10:18 +00:00
|
|
|
class OutputReference;
|
|
|
|
class QPushButton;
|
2017-06-13 15:16:41 +00:00
|
|
|
|
2019-06-17 20:39:24 +00:00
|
|
|
namespace ciface::Core
|
2017-06-13 15:16:41 +00:00
|
|
|
{
|
2019-02-28 00:10:18 +00:00
|
|
|
class DeviceContainer;
|
2017-06-13 15:16:41 +00:00
|
|
|
class DeviceQualifier;
|
2019-06-17 20:39:24 +00:00
|
|
|
} // namespace ciface::Core
|
2017-06-13 15:16:41 +00:00
|
|
|
|
|
|
|
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);
|
2019-02-28 00:10:18 +00:00
|
|
|
|
|
|
|
QString DetectExpression(QPushButton* button, ciface::Core::DeviceContainer& device_container,
|
|
|
|
const std::vector<std::string>& device_strings,
|
2018-07-16 21:15:37 +00:00
|
|
|
const ciface::Core::DeviceQualifier& default_device,
|
|
|
|
Quote quote = Quote::On);
|
2019-02-28 00:10:18 +00:00
|
|
|
|
|
|
|
void TestOutput(QPushButton* button, OutputReference* reference);
|
|
|
|
|
2018-07-16 21:15:37 +00:00
|
|
|
} // namespace MappingCommon
|