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 | 764e5c7fe50bbbc64898fb657cfc5b1f8360454b (patch) | |
tree | ee42eede68cb935595769104e0b94d55b1530141 /src/input_common/input_engine.h | |
parent | a1ee9799bcd6cbf7c68733136fe7acbebf33a71a (diff) | |
parent | ee532e5c01f97f30078202ae87a5b2a71e9ce1e4 (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); |