Input handling via C# events

Godot Version

4.2.1

Question

Hello everyone!

Recently, I started to do my own game, but I faced the fact that the Godot hadles input only via if/else statements (in _Input or _Process functions). I read a lot about it on the forums and documentations and haven’t found the solution. So, I wrote my own input hadler for godot (the code is written in C#). It works pretty well for me.

I’m glad to receive your feedback. If I’m wrong in my reasoning I don’t mind reading how it really works