diff options
author | german <german@thesoftwareartisans.com> | 2021-01-12 21:09:59 -0600 |
---|---|---|
committer | german <german@thesoftwareartisans.com> | 2021-02-06 09:43:41 -0600 |
commit | 481cd86722f7070b6a63f2b95c1e8bceb518eee7 (patch) | |
tree | 5ec35ba24ca028b381f80963d40c2ed375229b84 /src/core/frontend/input.h | |
parent | 61bf850f3dfd0b44aa5d56f6f3147d7a1fa47353 (diff) |
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 f014dfea3..88ebc6497 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 {}; } |