From f5004b78d0468641cd03619ecfecb42429621a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Wed, 22 Mar 2017 21:18:47 +0100 Subject: 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 --- core/os/input.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/os') diff --git a/core/os/input.h b/core/os/input.h index 2f6359632e..3c33c46eba 100644 --- a/core/os/input.h +++ b/core/os/input.h @@ -81,6 +81,7 @@ public: virtual int get_mouse_button_mask() const = 0; virtual void warp_mouse_pos(const Vector2 &p_to) = 0; + virtual Point2i warp_mouse_motion(const InputEventMouseMotion &p_motion, const Rect2 &p_rect) = 0; virtual Vector3 get_gravity() const = 0; virtual Vector3 get_accelerometer() const = 0; -- cgit v1.2.3