MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / set_process_input

Method set_process_input

scene/main/node.cpp:1245–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243}
1244
1245void Node::set_process_input(bool p_enable) {
1246 ERR_THREAD_GUARD
1247 if (p_enable == data.input) {
1248 return;
1249 }
1250
1251 data.input = p_enable;
1252 if (!is_inside_tree()) {
1253 return;
1254 }
1255
1256 if (p_enable) {
1257 add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));
1258 } else {
1259 remove_from_group("_vp_input" + itos(get_viewport()->get_instance_id()));
1260 }
1261}
1262
1263bool Node::is_processing_input() const {
1264 return data.input;

Callers 3

_popupMethod · 0.80
end_taskMethod · 0.80
test_node.hFile · 0.80

Calls 2

itosFunction · 0.85
get_instance_idMethod · 0.45

Tested by

no test coverage detected