diff options
| author | Léo Lam <leolino.lam@gmail.com> | 2018-04-14 23:20:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-14 23:20:39 +0200 |
| commit | ee955e37a98dc20b96c9ed948dc6af96e85fdb51 (patch) | |
| tree | 2bfcd16cc0f34e14cd08d21387f7e13a9bc2f6f5 /Source/Core/InputCommon/ControllerEmu/Control/Control.h | |
| parent | aafa8a10e10e26b4068b19cdc5b1bb36dfa9fbf2 (diff) | |
| parent | 7ed28297b237779f0e4b6d7045cd27e10a8cfb0e (diff) | |
Merge pull request #6564 from JosJuice/translate-certain-button-names
Translate certain button names but not all
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Control/Control.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/Control/Control.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Control/Control.h b/Source/Core/InputCommon/ControllerEmu/Control/Control.h index b34c843c5d..e005431873 100644 --- a/Source/Core/InputCommon/ControllerEmu/Control/Control.h +++ b/Source/Core/InputCommon/ControllerEmu/Control/Control.h @@ -11,18 +11,26 @@ class ControlReference; namespace ControllerEmu { +enum Translatability +{ + DoNotTranslate, + Translate +}; + class Control { public: virtual ~Control(); std::unique_ptr<ControlReference> const control_ref; + const Translatability translate; const std::string name; const std::string ui_name; protected: - Control(std::unique_ptr<ControlReference> ref, 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, const std::string& name); + Control(std::unique_ptr<ControlReference> ref, Translatability translate, + const std::string& name); }; } // namespace ControllerEmu |
