0 votes

I wonder if it's possible to override _input(event) method.

My problem is that I have a A class and a B class which is subclass of A.

The A class has the _input(event) method implemented. And I want to change the triggering keys on the B class. The problem is that even though I implemented the _input(event) on B and I don't call the ._input(event), the input is still being handled by the _input(event) of A.

Any idea on how to solve this problem?


in Engine by (51 points)

It seems that godot treats input somehow different than it treats other functions. I solved this by calling _handlemyowninput(event) inside _input(event), and override that custom function instead.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.