aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/graph_edit.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-08 16:28:12 -0300
committerJuan Linietsky2017-01-08 16:28:12 -0300
commit920947f297ff3b8d959d15c8e15e7a28dcbdb08f (patch)
tree160ca184a2d8ec1a43238d25e10ef198bdd6b5c8 /scene/gui/graph_edit.cpp
parent0a59c3c3a6a8c13a5c82d59d9587fca31f900604 (diff)
downloadgodot-920947f297ff3b8d959d15c8e15e7a28dcbdb08f.tar.gz
godot-920947f297ff3b8d959d15c8e15e7a28dcbdb08f.tar.zst
godot-920947f297ff3b8d959d15c8e15e7a28dcbdb08f.zip
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r--scene/gui/graph_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index 7513480cb..25260ec60 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -793,7 +793,7 @@ void GraphEdit::set_selected(Node* p_child) {
}
}
-void GraphEdit::_input_event(const InputEvent& p_ev) {
+void GraphEdit::_gui_input(const InputEvent& p_ev) {
if (p_ev.type==InputEvent::MOUSE_MOTION && (p_ev.mouse_motion.button_mask&BUTTON_MASK_MIDDLE || (p_ev.mouse_motion.button_mask&BUTTON_MASK_LEFT && Input::get_singleton()->is_key_pressed(KEY_SPACE)))) {
h_scroll->set_value( h_scroll->get_value() - p_ev.mouse_motion.relative_x );
@@ -1233,7 +1233,7 @@ void GraphEdit::_bind_methods() {
ClassDB::bind_method(_MD("_snap_toggled"),&GraphEdit::_snap_toggled);
ClassDB::bind_method(_MD("_snap_value_changed"),&GraphEdit::_snap_value_changed);
- ClassDB::bind_method(_MD("_input_event"),&GraphEdit::_input_event);
+ ClassDB::bind_method(_MD("_gui_input"),&GraphEdit::_gui_input);
ClassDB::bind_method(_MD("_update_scroll_offset"),&GraphEdit::_update_scroll_offset);
ClassDB::bind_method(_MD("_connections_layer_draw"),&GraphEdit::_connections_layer_draw);