diff options
author | volzhs <volzhs@gmail.com> | 2017-08-25 01:14:36 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2017-08-25 01:14:36 +0900 |
commit | 62bb600b5ce72b46d8cedb3452652f66dcf74697 (patch) | |
tree | 6c2b6061ae8551f298b7dcc9529ecc3ac83405ec /core/os/input_event.h | |
parent | 05a678534433997c71f542ae1b3cecd35abde298 (diff) | |
download | redot-engine-62bb600b5ce72b46d8cedb3452652f66dcf74697.tar.gz |
Show proper string with InputEvent.as_text()
Diffstat (limited to 'core/os/input_event.h')
-rw-r--r-- | core/os/input_event.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h index d1fd7cc90f..06d157b2b2 100644 --- a/core/os/input_event.h +++ b/core/os/input_event.h @@ -307,6 +307,7 @@ public: virtual bool action_match(const Ref<InputEvent> &p_event) const; virtual bool is_action_type() const { return true; } + virtual String as_text() const; InputEventMouseButton(); }; @@ -328,6 +329,7 @@ public: Vector2 get_speed() const; virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const; + virtual String as_text() const; InputEventMouseMotion(); }; @@ -352,6 +354,7 @@ public: virtual bool action_match(const Ref<InputEvent> &p_event) const; virtual bool is_action_type() const { return true; } + virtual String as_text() const; InputEventJoypadMotion(); }; @@ -378,6 +381,7 @@ public: virtual bool action_match(const Ref<InputEvent> &p_event) const; virtual bool is_action_type() const { return true; } + virtual String as_text() const; InputEventJoypadButton(); }; @@ -402,6 +406,7 @@ public: virtual bool is_pressed() const; virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const; + virtual String as_text() const; InputEventScreenTouch(); }; @@ -431,6 +436,7 @@ public: Vector2 get_speed() const; virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const; + virtual String as_text() const; InputEventScreenDrag(); }; @@ -455,6 +461,7 @@ public: virtual bool is_action(const StringName &p_action) const; virtual bool is_action_type() const { return true; } + virtual String as_text() const; InputEventAction(); }; |