2017-02-09 03:15:43 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class ControlReference;
|
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class Control
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Control();
|
|
|
|
|
|
|
|
std::unique_ptr<ControlReference> const control_ref;
|
|
|
|
const std::string name;
|
2017-04-30 12:53:33 +00:00
|
|
|
const std::string ui_name;
|
2017-02-09 03:15:43 +00:00
|
|
|
|
|
|
|
protected:
|
2017-04-30 12:53:33 +00:00
|
|
|
Control(std::unique_ptr<ControlReference> ref, const std::string& name,
|
|
|
|
const std::string& ui_name);
|
2017-02-11 00:31:21 +00:00
|
|
|
Control(std::unique_ptr<ControlReference> ref, const std::string& name);
|
2017-02-09 03:15:43 +00:00
|
|
|
};
|
|
|
|
} // namespace ControllerEmu
|