I am making a little spaceship game where the player uses wasd to move their astronaut around, but can walk up to a control panel (pressing the f key to activate) and then use wasd to fly the spaceship around. There are other control panels too that will have other interactions (weapons, etc).
In other words, I only want input to go through the in-game device the player is interacting with. I am not sure the best practice for it. Is it better to have a bunch of actions listed in the project InputMap, and modify the keybindings with add_action and erase_action? I hope to add touch screen support later so I imagine this could get messy.
Or would it be better to leave InputMap alone, and add an is_listening boolean to my nodes before processing the input events?