diff options
| author | 2021-02-07 20:53:46 -0800 | |
|---|---|---|
| committer | 2021-02-07 20:53:46 -0800 | |
| commit | 089608909254dfa4860705a29a6c33f6872d85a5 (patch) | |
| tree | c8f0924c8a9b67463883e405b2990005419ea619 /src/input_common/gcadapter/gc_poller.cpp | |
| parent | Merge pull request #5872 from lioncash/svc-error (diff) | |
| parent | Add GC controller animation (diff) | |
| download | yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.gz yuzu-089608909254dfa4860705a29a6c33f6872d85a5.tar.xz yuzu-089608909254dfa4860705a29a6c33f6872d85a5.zip | |
Merge pull request #5339 from german77/interactive
Settings: Make settings controller image change with controller input
Diffstat (limited to 'src/input_common/gcadapter/gc_poller.cpp')
| -rw-r--r-- | src/input_common/gcadapter/gc_poller.cpp | 10 |
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: | |||
| 185 | return {0.0f, 0.0f}; | 185 | return {0.0f, 0.0f}; |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | std::tuple<float, float> GetRawStatus() const override { | ||
| 189 | const float x = GetAxis(axis_x); | ||
| 190 | const float y = GetAxis(axis_y); | ||
| 191 | return {x, y}; | ||
| 192 | } | ||
| 193 | |||
| 194 | Input::AnalogProperties GetAnalogProperties() const override { | ||
| 195 | return {deadzone, range, 0.5f}; | ||
| 196 | } | ||
| 197 | |||
| 188 | bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { | 198 | bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { |
| 189 | const auto [x, y] = GetStatus(); | 199 | const auto [x, y] = GetStatus(); |
| 190 | const float directional_deadzone = 0.5f; | 200 | const float directional_deadzone = 0.5f; |