diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-24 13:20:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 13:20:20 -0300 |
commit | 76cd8095506d80eaff085a28e699fc8bc237c1a2 (patch) | |
tree | d3cc05ab5928fa6d4120bef6d6dc8cfdd2ad0386 /core/os/input_event.h | |
parent | 3ea0943f645e5fda0b1bb68415e9c92ed4cf97dd (diff) | |
parent | 62bb600b5ce72b46d8cedb3452652f66dcf74697 (diff) |
Merge pull request #10613 from volzhs/fix-as_text
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(); }; |