summaryrefslogtreecommitdiff
path: root/scene/main/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/node.h')
-rw-r--r--scene/main/node.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/main/node.h b/scene/main/node.h
index 828acb8de7..b8981d3307 100644
--- a/scene/main/node.h
+++ b/scene/main/node.h
@@ -37,6 +37,7 @@
#include "scene/main/scene_main_loop.h"
+class Viewport;
class Node : public Object {
OBJ_TYPE( Node, Object );
@@ -82,6 +83,8 @@ private:
SceneMainLoop *scene;
bool inside_scene;
+ Viewport *viewport;
+
HashMap< StringName, GroupData,StringNameHasher> grouped;
List<Node*>::Element *OW; // owned element
@@ -95,6 +98,7 @@ private:
bool input;
bool unhandled_input;
+ bool unhandled_key_input;
bool parent_owned;
bool in_constructor;
@@ -237,6 +241,9 @@ public:
void set_process_unhandled_input(bool p_enable);
bool is_processing_unhandled_input() const;
+ void set_process_unhandled_key_input(bool p_enable);
+ bool is_processing_unhandled_key_input() const;
+
int get_position_in_parent() const;
Node *duplicate() const;
@@ -266,6 +273,8 @@ public:
void force_parent_owned() { data.parent_owned=true; } //hack to avoid duplicate nodes
+ _FORCE_INLINE_ Viewport *get_viewport() const { return data.viewport; }
+
/* CANVAS */
Node();