summaryrefslogtreecommitdiffstats
path: root/core/os/input_event.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-27 09:59:43 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-27 10:00:36 -0300
commit47d6cc08bbd745d63829e02ae408c4ce09ce1299 (patch)
tree3929118695e9f77356b916362bd2214d82d4cc80 /core/os/input_event.h
parent2c59f778850dc4450481680e859efd66660c9119 (diff)
downloadredot-engine-47d6cc08bbd745d63829e02ae408c4ce09ce1299.tar.gz
Properly deliver localized coordinates when passing gui events through parents, closes #4215
Diffstat (limited to 'core/os/input_event.h')
-rw-r--r--core/os/input_event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h
index 0588374790..1c4f1dcf96 100644
--- a/core/os/input_event.h
+++ b/core/os/input_event.h
@@ -33,7 +33,7 @@
#include "typedefs.h"
#include "os/copymem.h"
#include "ustring.h"
-
+#include "math_2d.h"
/**
@author Juan Linietsky <reduzio@gmail.com>
*/
@@ -297,6 +297,8 @@ struct InputEvent {
bool is_echo() const;
void set_as_action(const String& p_action, bool p_pressed);
+
+ InputEvent xform_by(const Matrix32& p_xform) const;
bool operator==(const InputEvent &p_event) const;
operator String() const;
InputEvent() { zeromem(this,sizeof(InputEvent)); }