why an i getting "Too few arguments for "keyboardonly()" call. Expected at least 1."
i have a coustom function(keyboardonly) when i try to use it it gives me an error
func _physics_process(delta: float) -> void:
# Vars
var velocity := Vector2()
if Control_mode == 2:
_keyboard_only()
# Controlles
func _mouse_only():
if (Input.is_action_pressed("Left_Click")):
_move_to_mouse()
_look_at_mouse()
func _keyboard_only(delta):
var add_velocity = Vector2.ZERO
var rotation_dir = 0