diff options
| author | bunnei <bunneidev@gmail.com> | 2021-02-07 20:53:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-07 20:53:46 -0800 |
| commit | da2a91a019a464d2e0a11c430505499d96761eee (patch) | |
| tree | c8f0924c8a9b67463883e405b2990005419ea619 /src/input_common/mouse/mouse_poller.cpp | |
| parent | a5dd2bb5986deaede7d250588334b40164f90e08 (diff) | |
| parent | 38d14331f57d2a1280c275631e72bd80d7fa3ff9 (diff) | |
Merge pull request #5339 from german77/interactive
Settings: Make settings controller image change with controller input
Diffstat (limited to 'src/input_common/mouse/mouse_poller.cpp')
| -rw-r--r-- | src/input_common/mouse/mouse_poller.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input_common/mouse/mouse_poller.cpp b/src/input_common/mouse/mouse_poller.cpp index 508eb0c7d6..3d799b2937 100644 --- a/src/input_common/mouse/mouse_poller.cpp +++ b/src/input_common/mouse/mouse_poller.cpp @@ -106,6 +106,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}; + } + private: const u32 button; const u32 axis_x; |
