summaryrefslogtreecommitdiffstats
path: root/src/input_common/gcadapter
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-08 05:53:46 +0100
committerGitHub <noreply@github.com>2021-02-08 05:53:46 +0100
commit089608909254dfa4860705a29a6c33f6872d85a5 (patch)
treec8f0924c8a9b67463883e405b2990005419ea619 /src/input_common/gcadapter
parentMerge pull request #5872 from lioncash/svc-error (diff)
parentAdd GC controller animation (diff)
downloadyuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar
yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.gz
yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.bz2
yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.lz
yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.xz
yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.zst
yuzu-089608909254dfa4860705a29a6c33f6872d85a5.zip
Diffstat (limited to 'src/input_common/gcadapter')
-rw-r--r--src/input_common/gcadapter/gc_poller.cpp10
1 files changed, 10 insertions, 0 deletions
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<float, float> 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;