diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-07 20:53:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 20:53:46 -0800 |
commit | 089608909254dfa4860705a29a6c33f6872d85a5 (patch) | |
tree | c8f0924c8a9b67463883e405b2990005419ea619 /src/core/frontend/input.h | |
parent | d0a760a34af5789d33e296e78a692db470d4dcea (diff) | |
parent | 8893b766c3b582e6d2594e9a544cbf9d6ee689c7 (diff) |
Merge pull request #5339 from german77/interactive
Settings: Make settings controller image change with controller input
Diffstat (limited to 'src/core/frontend/input.h')
-rw-r--r-- | src/core/frontend/input.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index f014dfea3a..88ebc64979 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h @@ -21,6 +21,11 @@ enum class AnalogDirection : u8 { UP, DOWN, }; +struct AnalogProperties { + float deadzone; + float range; + float threshold; +}; /// An abstract class template for an input device (a button, an analog input, etc.). template <typename StatusType> @@ -30,6 +35,12 @@ public: virtual StatusType GetStatus() const { return {}; } + virtual StatusType GetRawStatus() const { + return GetStatus(); + } + virtual AnalogProperties GetAnalogProperties() const { + return {}; + } virtual bool GetAnalogDirectionStatus([[maybe_unused]] AnalogDirection direction) const { return {}; } |