ControllerInterface/DolphinQt: Make mapping "all devices" way less hacky.

This commit is contained in:
Jordan Woyak
2019-02-27 18:10:18 -06:00
parent 48b69ca018
commit c389d68186
10 changed files with 192 additions and 232 deletions

View File

@ -4,17 +4,21 @@
#pragma once
#include <string>
#include <vector>
class QString;
class ControlReference;
class OutputReference;
class QPushButton;
namespace ciface
{
namespace Core
{
class Device;
class DeviceContainer;
class DeviceQualifier;
}
}
} // namespace Core
} // namespace ciface
namespace MappingCommon
{
@ -28,7 +32,12 @@ QString GetExpressionForControl(const QString& control_name,
const ciface::Core::DeviceQualifier& control_device,
const ciface::Core::DeviceQualifier& default_device,
Quote quote = Quote::On);
QString DetectExpression(ControlReference* reference, ciface::Core::Device* device,
QString DetectExpression(QPushButton* button, ciface::Core::DeviceContainer& device_container,
const std::vector<std::string>& device_strings,
const ciface::Core::DeviceQualifier& default_device,
Quote quote = Quote::On);
void TestOutput(QPushButton* button, OutputReference* reference);
} // namespace MappingCommon