From 472e7fd7ba30b06143f0ecc6a98bc190bfe8e728 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 9 Jan 2023 01:18:02 +0100 Subject: [PATCH] Work on fixing compile. --- input_map_editor.cpp | 8 ++++---- touch_button.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/input_map_editor.cpp b/input_map_editor.cpp index 903e4cd..e3a4608 100644 --- a/input_map_editor.cpp +++ b/input_map_editor.cpp @@ -203,7 +203,7 @@ void InputMapEditor::_device_input_add() { case INPUT_MOUSE_BUTTON: { Ref mb; #if VERSION_MAJOR < 4 - mb.instance(); + mb.instantiate(); mb->set_button_index(device_index->get_selected() + 1); #else mb.instantiate(); @@ -226,7 +226,7 @@ void InputMapEditor::_device_input_add() { case INPUT_JOY_MOTION: { Ref jm; #if VERSION_MAJOR < 4 - jm.instance(); + jm.instantiate(); jm->set_axis(device_index->get_selected() >> 1); #else jm.instantiate(); @@ -251,7 +251,7 @@ void InputMapEditor::_device_input_add() { case INPUT_JOY_BUTTON: { Ref jb; #if VERSION_MAJOR < 4 - jb.instance(); + jb.instantiate(); jb->set_button_index(device_index->get_selected()); #else jb.instantiate(); @@ -310,7 +310,7 @@ void InputMapEditor::_press_a_key_confirm() { Ref ie; #if VERSION_MAJOR < 4 - ie.instance(); + ie.instantiate(); ie->set_scancode(last_wait_for_key->get_scancode()); ie->set_shift(last_wait_for_key->get_shift()); ie->set_alt(last_wait_for_key->get_alt()); diff --git a/touch_button.cpp b/touch_button.cpp index 6affd6b..4019467 100644 --- a/touch_button.cpp +++ b/touch_button.cpp @@ -65,7 +65,7 @@ void TouchButton::_input(Ref p_event) { Ref ev; #if VERSION_MAJOR < 4 - ev.instance(); + ev.instantiate(); #else ev.instantiate(); #endif @@ -89,7 +89,7 @@ void TouchButton::_input(Ref p_event) { if (mm.is_valid() && _is_point_inside(mm->get_position())) { Ref ev; - ev.instance(); + ev.instantiate(); ev->set_relative(mm->get_relative()); ev->set_speed(mm->get_speed());