summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/mouse.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-22 04:46:42 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-22 04:55:22 +0100
commit673accd630be88fde4b6b748608a9c3bc42ea60f (patch)
tree72c5d94eb0ee9b260e3a2e1c1514a515388e8f41 /src/input_common/drivers/mouse.h
parentMerge pull request #9847 from german77/timeout (diff)
downloadyuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.gz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.bz2
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.lz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.xz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.zst
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.zip
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:
private:
void UpdateThread(std::stop_token stop_token);
+ void UpdateStickInput();
+ void UpdateMotionInput();
void StopPanning();
Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;
@@ -103,9 +105,10 @@ private:
Common::Vec2<int> mouse_origin;
Common::Vec2<int> last_mouse_position;
Common::Vec2<float> last_mouse_change;
+ Common::Vec3<float> last_motion_change;
Common::Vec2<int> wheel_position;
bool button_pressed;
- int mouse_panning_timout{};
+ int mouse_panning_timeout{};
std::jthread update_thread;
};