summaryrefslogtreecommitdiff
path: root/src/input_common/main.h
diff options
context:
space:
mode:
authorGravatar german772021-11-21 14:12:01 -0600
committerGravatar Narr the Reg2021-11-24 20:30:28 -0600
commit746c85b56011b87afb57e37b75953435389fc810 (patch)
tree32d31216be1450b5fbe9897e15829ff9bc1f1e7c /src/input_common/main.h
parentinput_common: Fix SDL controller with inverted axis (diff)
downloadyuzu-746c85b56011b87afb57e37b75953435389fc810.tar.gz
yuzu-746c85b56011b87afb57e37b75953435389fc810.tar.xz
yuzu-746c85b56011b87afb57e37b75953435389fc810.zip
input_common: Move button names to the frontend
Diffstat (limited to 'src/input_common/main.h')
-rw-r--r--src/input_common/main.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h
index a4a24d076..c6f97f691 100644
--- a/src/input_common/main.h
+++ b/src/input_common/main.h
@@ -13,6 +13,10 @@ namespace Common {
13class ParamPackage; 13class ParamPackage;
14} 14}
15 15
16namespace Common::Input {
17enum class ButtonNames;
18}
19
16namespace Settings::NativeAnalog { 20namespace Settings::NativeAnalog {
17enum Values : int; 21enum Values : int;
18} 22}
@@ -108,8 +112,9 @@ public:
108 /// Retrieves the motion mappings for the given device. 112 /// Retrieves the motion mappings for the given device.
109 [[nodiscard]] MotionMapping GetMotionMappingForDevice(const Common::ParamPackage& device) const; 113 [[nodiscard]] MotionMapping GetMotionMappingForDevice(const Common::ParamPackage& device) const;
110 114
111 /// Returns a string contaning the name of the button from the input engine. 115 /// Returns an enum contaning the name to be displayed from the input engine.
112 [[nodiscard]] std::string GetButtonName(const Common::ParamPackage& params) const; 116 [[nodiscard]] Common::Input::ButtonNames GetButtonName(
117 const Common::ParamPackage& params) const;
113 118
114 /// Returns true if device is a controller. 119 /// Returns true if device is a controller.
115 [[nodiscard]] bool IsController(const Common::ParamPackage& params) const; 120 [[nodiscard]] bool IsController(const Common::ParamPackage& params) const;