From 481cd86722f7070b6a63f2b95c1e8bceb518eee7 Mon Sep 17 00:00:00 2001 From: german Date: Tue, 12 Jan 2021 21:09:59 -0600 Subject: Make settings controller image change with controller input --- src/core/frontend/input.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/frontend') 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 @@ -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 {}; } -- cgit v1.2.3