input_common: Redesign mouse panning

This commit is contained in:
Baptiste Marie 2023-05-29 14:51:56 +02:00
parent 866b7c0632
commit 83f4158d6c
14 changed files with 581 additions and 103 deletions

View file

@ -98,7 +98,6 @@ private:
void UpdateThread(std::stop_token stop_token);
void UpdateStickInput();
void UpdateMotionInput();
void StopPanning();
Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;
@ -108,7 +107,6 @@ private:
Common::Vec3<float> last_motion_change;
Common::Vec2<int> wheel_position;
bool button_pressed;
int mouse_panning_timeout{};
std::jthread update_thread;
};