diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-03-22 21:18:47 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-03-22 21:36:52 +0100 |
commit | f5004b78d0468641cd03619ecfecb42429621a70 (patch) | |
tree | 42011a7bf4ab8b602899e9d3dacbc1fdeb21952f /main/input_default.h | |
parent | 33a2c5def0f55ef67196e35ac3309d3f9b70d967 (diff) | |
download | redot-engine-f5004b78d0468641cd03619ecfecb42429621a70.tar.gz |
Implement warped mouse panning for 2D & 3D editors
Enabled by default as in Blender, but can be disabled separately for 2D & 3D;
the core functionality is in Input so this could be reused or even exposed to scripts in the future
Diffstat (limited to 'main/input_default.h')
-rw-r--r-- | main/input_default.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/input_default.h b/main/input_default.h index fecdb215d7..4f298d6d55 100644 --- a/main/input_default.h +++ b/main/input_default.h @@ -200,6 +200,7 @@ public: virtual int get_mouse_button_mask() const; virtual void warp_mouse_pos(const Vector2 &p_to); + virtual Point2i warp_mouse_motion(const InputEventMouseMotion &p_motion, const Rect2 &p_rect); virtual void parse_input_event(const InputEvent &p_event); |