Rename instance()->instantiate() when it's a verb
This commit is contained in:
parent
60dcc4f39c
commit
e28fd07b2b
371 changed files with 1318 additions and 1318 deletions
|
|
@ -288,7 +288,7 @@ void TouchScreenButton::_press(int p_finger_pressed) {
|
|||
if (action != StringName()) {
|
||||
Input::get_singleton()->action_press(action);
|
||||
Ref<InputEventAction> iea;
|
||||
iea.instance();
|
||||
iea.instantiate();
|
||||
iea->set_action(action);
|
||||
iea->set_pressed(true);
|
||||
get_viewport()->input(iea, true);
|
||||
|
|
@ -305,7 +305,7 @@ void TouchScreenButton::_release(bool p_exiting_tree) {
|
|||
Input::get_singleton()->action_release(action);
|
||||
if (!p_exiting_tree) {
|
||||
Ref<InputEventAction> iea;
|
||||
iea.instance();
|
||||
iea.instantiate();
|
||||
iea->set_action(action);
|
||||
iea->set_pressed(false);
|
||||
get_viewport()->input(iea, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue