mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 10:46:28 +01:00

The button wouldn't be highlighted in the list, as it would look for something like `Click 1` instead of Click 1.
35 lines
837 B
C++
35 lines
837 B
C++
// 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
|
|
{
|
|
enum class Quote
|
|
{
|
|
On,
|
|
Off
|
|
};
|
|
|
|
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,
|
|
const ciface::Core::DeviceQualifier& default_device,
|
|
Quote quote = Quote::On);
|
|
} // namespace MappingCommon
|