|Topic was automatically imported from the old Question2Answer platform.
I’m making an application where you can play piano.
Every key (black and white) has its own script that listens for input and handles presses, releases and drags accordingly. When a key has handled input, I use set_input_as_handled() to stop propagating the input event.
The problem is that black keys are on top of white keys, and they should always be handled first, but as far as I can tell, there is no way to easily do so.
Is there something I can do in the editor, to move a node up in the _input processing order?
I know that I could write a separate class that keeps track of all buttons on the piano and does proper occlusion checking within that class before notifying a key press. But, I would prefer another solution, if there is one…