mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Move parts of MappingCommon out of DolphinQt
Some of the functions in MappingCommon would be useful to use on mobile in the future.
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "InputCommon/ControllerInterface/CoreDevice.h"
|
||||
#include "InputCommon/ControllerInterface/MappingCommon.h"
|
||||
|
||||
class QString;
|
||||
class OutputReference;
|
||||
@ -14,27 +15,11 @@ class QPushButton;
|
||||
|
||||
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(QPushButton* button, ciface::Core::DeviceContainer& device_container,
|
||||
const std::vector<std::string>& device_strings,
|
||||
const ciface::Core::DeviceQualifier& default_device,
|
||||
Quote quote = Quote::On);
|
||||
ciface::MappingCommon::Quote quote = ciface::MappingCommon::Quote::On);
|
||||
|
||||
void TestOutput(QPushButton* button, OutputReference* reference);
|
||||
|
||||
void RemoveSpuriousTriggerCombinations(std::vector<ciface::Core::DeviceContainer::InputDetection>*);
|
||||
|
||||
QString BuildExpression(const std::vector<ciface::Core::DeviceContainer::InputDetection>&,
|
||||
const ciface::Core::DeviceQualifier& default_device, Quote quote);
|
||||
|
||||
} // namespace MappingCommon
|
||||
|
Reference in New Issue
Block a user