summaryrefslogtreecommitdiffstats
path: root/src/input_common/mouse
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-02-03 04:39:47 +0100
committergerman <german@thesoftwareartisans.com>2021-02-06 16:43:42 +0100
commitc9597af39ded9430cc94c37959fb8154abea8686 (patch)
treec3ba0877b806e5916d2ffd36736e66d382891815 /src/input_common/mouse
parentAdd controller window and single joycon top view (diff)
downloadyuzu-c9597af39ded9430cc94c37959fb8154abea8686.tar
yuzu-c9597af39ded9430cc94c37959fb8154abea8686.tar.gz
yuzu-c9597af39ded9430cc94c37959fb8154abea8686.tar.bz2
yuzu-c9597af39ded9430cc94c37959fb8154abea8686.tar.lz
yuzu-c9597af39ded9430cc94c37959fb8154abea8686.tar.xz
yuzu-c9597af39ded9430cc94c37959fb8154abea8686.tar.zst
yuzu-c9597af39ded9430cc94c37959fb8154abea8686.zip
Diffstat (limited to 'src/input_common/mouse')
-rw-r--r--src/input_common/mouse/mouse_poller.cpp10
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 508eb0c7d..3d799b293 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;