input_common: Redesign mouse panning

This commit is contained in:
Baptiste Marie
2023-05-29 14:51:56 +02:00
parent 569f8d3b44
commit 8e3d4e3396
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;
};