diff options
| author | bunnei <bunneidev@gmail.com> | 2022-04-21 22:21:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 22:21:59 -0700 |
| commit | e72179e9fd61113d31d7b446c7c6c04d0e8bcdde (patch) | |
| tree | ee42eede68cb935595769104e0b94d55b1530141 /src/input_common/input_engine.h | |
| parent | c0f328e7d45d0cb060414e92772a309361937cc7 (diff) | |
| parent | f27e097244516f8f66aa5ee87979eb6eabadb0af (diff) | |
Merge pull request #7978 from german77/sideway
input_common: Map sticks correctly when mapped sideways
Diffstat (limited to 'src/input_common/input_engine.h')
| -rw-r--r-- | src/input_common/input_engine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h index f44e0799b8..f94b7669cb 100644 --- a/src/input_common/input_engine.h +++ b/src/input_common/input_engine.h @@ -157,6 +157,11 @@ public: return 0; } + /// Returns true if axis of a stick aren't mapped in the correct direction + virtual bool IsStickInverted([[maybe_unused]] const Common::ParamPackage& params) { + return false; + } + void PreSetController(const PadIdentifier& identifier); void PreSetButton(const PadIdentifier& identifier, int button); void PreSetHatButton(const PadIdentifier& identifier, int button); |
