input_common: Map sticks correctly when mapped sideways

This commit is contained in:
Narr the Reg 2022-03-04 11:47:13 -06:00
parent 82ac66f8a4
commit ee532e5c01
10 changed files with 127 additions and 0 deletions

View file

@ -119,6 +119,9 @@ public:
/// Returns true if device is a controller.
[[nodiscard]] bool IsController(const Common::ParamPackage& params) const;
/// Returns true if axis of a stick aren't mapped in the correct direction
[[nodiscard]] bool IsStickInverted(const Common::ParamPackage& device) const;
/// Reloads the input devices.
void ReloadInputDevices();