summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/input.h
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-01-13 04:09:59 +0100
committergerman <german@thesoftwareartisans.com>2021-02-06 16:43:41 +0100
commit481cd86722f7070b6a63f2b95c1e8bceb518eee7 (patch)
tree5ec35ba24ca028b381f80963d40c2ed375229b84 /src/core/frontend/input.h
parentMerge pull request #5326 from german77/hidUpdate1 (diff)
downloadyuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar
yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.gz
yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.bz2
yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.lz
yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.xz
yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.zst
yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.zip
Diffstat (limited to '')
-rw-r--r--src/core/frontend/input.h11
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 {};
}