diff options
| author | 2022-04-21 22:21:59 -0700 | |
|---|---|---|
| committer | 2022-04-21 22:21:59 -0700 | |
| commit | 764e5c7fe50bbbc64898fb657cfc5b1f8360454b (patch) | |
| tree | ee42eede68cb935595769104e0b94d55b1530141 /src/input_common/main.h | |
| parent | Merge pull request #8222 from german77/sixaxis_test (diff) | |
| parent | input_common: Map sticks correctly when mapped sideways (diff) | |
| download | yuzu-764e5c7fe50bbbc64898fb657cfc5b1f8360454b.tar.gz yuzu-764e5c7fe50bbbc64898fb657cfc5b1f8360454b.tar.xz yuzu-764e5c7fe50bbbc64898fb657cfc5b1f8360454b.zip | |
Merge pull request #7978 from german77/sideway
input_common: Map sticks correctly when mapped sideways
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/main.h | 3 |
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 | ||