Every input logged to console. How to get rid of it?

Godot Version

4.3.stable

Question

I’ve been working in Godot the whole day, and all of a sudden the console is full of lines like this:
Mouse motion at position ((1147, 697)) with velocity ((0, -6.151877))
Every key I press on the keyboard gets logged too.

Things I’ve done to try to get rid of it:

  • Restarted the engine
  • Looked at the changed files (in git) to see if anything changed in the project settings
  • Looked through the project settings in editor
  • Searched through my code. The only code I’ve written today is a shader. The editor didn’t do all this logging earlier during the day.

Any idea of what causes this?

Have no idea how you enabled it, may be you have a @tool script with something like

func _unhandeled_input(event: InputEvent):
  print(event.as_text())

or addon!

Thanks for the suggestion. Turned out it was in an extension. I’m using https://github.com/Lazy-Rabbit-2001/Godot-4-NinePatchSprite2D, and found this little bugger in the cpp file:

void NinePatchSprite2D::_input(const Ref<InputEvent> &p_event)
{
    // Drags the node to resize the texture and moves the node
    UtilityFunctions::print(p_event->as_text());
}

Case closed :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.