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