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/input_common/gcadapter/gc_poller.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/input_common/gcadapter') diff --git a/src/input_common/gcadapter/gc_poller.cpp b/src/input_common/gcadapter/gc_poller.cpp index 9670bdeb2..1b6ded8d6 100644 --- a/src/input_common/gcadapter/gc_poller.cpp +++ b/src/input_common/gcadapter/gc_poller.cpp @@ -185,6 +185,16 @@ public: return {0.0f, 0.0f}; } + std::tuple GetRawStatus() const override { + const float x = GetAxis(axis_x); + const float y = GetAxis(axis_y); + return {x, y}; + } + + Input::AnalogProperties GetAnalogProperties() const override { + return {deadzone, range, 0.5f}; + } + bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { const auto [x, y] = GetStatus(); const float directional_deadzone = 0.5f; -- cgit v1.2.3