mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
ControllerInterface/DolphinQt: Make mapping "all devices" way less hacky.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user