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 480b03b645
commit 9eab07f863
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;