summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/mouse.h
diff options
context:
space:
mode:
authorGravatar Narr the Reg2023-02-21 21:46:42 -0600
committerGravatar Narr the Reg2023-02-21 21:55:22 -0600
commit673accd630be88fde4b6b748608a9c3bc42ea60f (patch)
tree72c5d94eb0ee9b260e3a2e1c1514a515388e8f41 /src/input_common/drivers/mouse.h
parentMerge pull request #9847 from german77/timeout (diff)
downloadyuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.gz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.xz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.zip
input_common: Implement dedicated motion from mouse
Diffstat (limited to 'src/input_common/drivers/mouse.h')
-rw-r--r--src/input_common/drivers/mouse.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input_common/drivers/mouse.h b/src/input_common/drivers/mouse.h
index f3b65bdd1..b872c7a0f 100644
--- a/src/input_common/drivers/mouse.h
+++ b/src/input_common/drivers/mouse.h
@@ -96,6 +96,8 @@ public:
96 96
97private: 97private:
98 void UpdateThread(std::stop_token stop_token); 98 void UpdateThread(std::stop_token stop_token);
99 void UpdateStickInput();
100 void UpdateMotionInput();
99 void StopPanning(); 101 void StopPanning();
100 102
101 Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const; 103 Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;
@@ -103,9 +105,10 @@ private:
103 Common::Vec2<int> mouse_origin; 105 Common::Vec2<int> mouse_origin;
104 Common::Vec2<int> last_mouse_position; 106 Common::Vec2<int> last_mouse_position;
105 Common::Vec2<float> last_mouse_change; 107 Common::Vec2<float> last_mouse_change;
108 Common::Vec3<float> last_motion_change;
106 Common::Vec2<int> wheel_position; 109 Common::Vec2<int> wheel_position;
107 bool button_pressed; 110 bool button_pressed;
108 int mouse_panning_timout{}; 111 int mouse_panning_timeout{};
109 std::jthread update_thread; 112 std::jthread update_thread;
110}; 113};
111 114