mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
ControllerEmu: Use enum instead of bool for translatability
This commit is contained in:
@ -11,19 +11,26 @@ class ControlReference;
|
||||
|
||||
namespace ControllerEmu
|
||||
{
|
||||
enum Translatability
|
||||
{
|
||||
DoNotTranslate,
|
||||
Translate
|
||||
};
|
||||
|
||||
class Control
|
||||
{
|
||||
public:
|
||||
virtual ~Control();
|
||||
|
||||
std::unique_ptr<ControlReference> const control_ref;
|
||||
const bool translate;
|
||||
const Translatability translate;
|
||||
const std::string name;
|
||||
const std::string ui_name;
|
||||
|
||||
protected:
|
||||
Control(std::unique_ptr<ControlReference> ref, bool translate, const std::string& name,
|
||||
Control(std::unique_ptr<ControlReference> ref, Translatability translate, const std::string& name,
|
||||
const std::string& ui_name);
|
||||
Control(std::unique_ptr<ControlReference> ref, bool translate, const std::string& name);
|
||||
Control(std::unique_ptr<ControlReference> ref, Translatability translate,
|
||||
const std::string& name);
|
||||
};
|
||||
} // namespace ControllerEmu
|
||||
|
Reference in New Issue
Block a user