| 1243 | } |
| 1244 | |
| 1245 | void 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 | |
| 1263 | bool Node::is_processing_input() const { |
| 1264 | return data.input; |
no test coverage detected