diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-30 16:26:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 16:26:08 +0100 |
commit | 8570b9b0c2972b7aa191475342d0dd8030fd4188 (patch) | |
tree | 6f53f8f043a398d5efb3c0b4bba4914903f60674 /core/os/input_event.h | |
parent | 924db5fa58ab28912857029ec8dd34fbde771550 (diff) | |
parent | f67562172598efda6944950fb53c098b30937e9e (diff) |
Merge pull request #24329 from bruvzg/macos_pen_pressure
Add graphic tablet pen pressure/tilt support
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; |