diff options
Diffstat (limited to 'src/input_common/drivers/mouse.h')
| -rw-r--r-- | src/input_common/drivers/mouse.h | 5 |
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 | ||
| 97 | private: | 97 | private: |
| 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 | ||