summaryrefslogtreecommitdiff
path: root/src/input_common/main.h
diff options
context:
space:
mode:
authorGravatar Narr the Reg2022-03-04 11:47:13 -0600
committerGravatar Narr the Reg2022-03-21 19:39:33 -0600
commitee532e5c01f97f30078202ae87a5b2a71e9ce1e4 (patch)
tree55e544838b029e4a78a61e38cb085f5668400837 /src/input_common/main.h
parentMerge pull request #8048 from ameerj/include-purge (diff)
downloadyuzu-ee532e5c01f97f30078202ae87a5b2a71e9ce1e4.tar.gz
yuzu-ee532e5c01f97f30078202ae87a5b2a71e9ce1e4.tar.xz
yuzu-ee532e5c01f97f30078202ae87a5b2a71e9ce1e4.zip
input_common: Map sticks correctly when mapped sideways
Diffstat (limited to 'src/input_common/main.h')
-rw-r--r--src/input_common/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h
index baf107e0f..147c310c4 100644
--- a/src/input_common/main.h
+++ b/src/input_common/main.h
@@ -119,6 +119,9 @@ public:
119 /// Returns true if device is a controller. 119 /// Returns true if device is a controller.
120 [[nodiscard]] bool IsController(const Common::ParamPackage& params) const; 120 [[nodiscard]] bool IsController(const Common::ParamPackage& params) const;
121 121
122 /// Returns true if axis of a stick aren't mapped in the correct direction
123 [[nodiscard]] bool IsStickInverted(const Common::ParamPackage& device) const;
124
122 /// Reloads the input devices. 125 /// Reloads the input devices.
123 void ReloadInputDevices(); 126 void ReloadInputDevices();
124 127