summaryrefslogtreecommitdiff
path: root/core/os/input_event.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-30 16:26:08 +0100
committerGitHub <noreply@github.com>2019-10-30 16:26:08 +0100
commit8570b9b0c2972b7aa191475342d0dd8030fd4188 (patch)
tree6f53f8f043a398d5efb3c0b4bba4914903f60674 /core/os/input_event.h
parent924db5fa58ab28912857029ec8dd34fbde771550 (diff)
parentf67562172598efda6944950fb53c098b30937e9e (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.h9
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;