diff options
| author | 2021-01-12 21:09:59 -0600 | |
|---|---|---|
| committer | 2021-02-06 09:43:41 -0600 | |
| commit | 481cd86722f7070b6a63f2b95c1e8bceb518eee7 (patch) | |
| tree | 5ec35ba24ca028b381f80963d40c2ed375229b84 /src/input_common/gcadapter/gc_poller.cpp | |
| parent | Merge pull request #5326 from german77/hidUpdate1 (diff) | |
| download | yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.gz yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.tar.xz yuzu-481cd86722f7070b6a63f2b95c1e8bceb518eee7.zip | |
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; |