2017-06-13 17:16:41 +02:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-13 17:16:41 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-02-27 18:10:18 -06:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2020-09-15 04:34:41 -07:00
|
|
|
#include "InputCommon/ControllerInterface/CoreDevice.h"
|
2022-02-20 18:32:39 +01:00
|
|
|
#include "InputCommon/ControllerInterface/MappingCommon.h"
|
2020-02-12 16:49:17 -06:00
|
|
|
|
2017-06-13 17:16:41 +02:00
|
|
|
class QString;
|
2019-02-27 18:10:18 -06:00
|
|
|
class OutputReference;
|
|
|
|
class QPushButton;
|
2017-06-13 17:16:41 +02:00
|
|
|
|
|
|
|
namespace MappingCommon
|
|
|
|
{
|
2019-02-27 18:10:18 -06:00
|
|
|
QString DetectExpression(QPushButton* button, ciface::Core::DeviceContainer& device_container,
|
|
|
|
const std::vector<std::string>& device_strings,
|
2018-07-16 17:15:37 -04:00
|
|
|
const ciface::Core::DeviceQualifier& default_device,
|
2022-02-20 18:32:39 +01:00
|
|
|
ciface::MappingCommon::Quote quote = ciface::MappingCommon::Quote::On);
|
2019-02-27 18:10:18 -06:00
|
|
|
|
|
|
|
void TestOutput(QPushButton* button, OutputReference* reference);
|
|
|
|
|
2018-07-16 17:15:37 -04:00
|
|
|
} // namespace MappingCommon
|