input_common: Reintroduce motion from mouse and use button names

This commit is contained in:
german77 2022-01-16 18:03:11 -06:00
parent 0e12a27299
commit 991460cd98
5 changed files with 64 additions and 1 deletions

View file

@ -69,6 +69,8 @@ private:
void UpdateThread(std::stop_token stop_token);
void StopPanning();
Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;
Common::Vec2<int> mouse_origin;
Common::Vec2<int> last_mouse_position;
Common::Vec2<float> last_mouse_change;