diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-12-13 22:32:11 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-10-30 14:42:21 +0200 |
commit | f67562172598efda6944950fb53c098b30937e9e (patch) | |
tree | 6f53f8f043a398d5efb3c0b4bba4914903f60674 /core/os/input_event.h | |
parent | 924db5fa58ab28912857029ec8dd34fbde771550 (diff) | |
download | redot-engine-f67562172598efda6944950fb53c098b30937e9e.tar.gz |
[macOS, Windows, X11] Add graphic tablet pen pressure and tilt support to InputEventMouseMotion event.
Diffstat (limited to 'core/os/input_event.h')
-rw-r--r-- | core/os/input_event.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h index 28658e3865..14649502ee 100644 --- a/core/os/input_event.h +++ b/core/os/input_event.h @@ -351,6 +351,9 @@ public: class InputEventMouseMotion : public InputEventMouse { GDCLASS(InputEventMouseMotion, InputEventMouse); + + Vector2 tilt; + float pressure; Vector2 relative; Vector2 speed; @@ -358,6 +361,12 @@ protected: static void _bind_methods(); public: + void set_tilt(const Vector2 &p_tilt); + Vector2 get_tilt() const; + + void set_pressure(float p_pressure); + float get_pressure() const; + void set_relative(const Vector2 &p_relative); Vector2 get_relative() const; |