Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Gazi Safin |
I am making a keyboard remap system.The player can press any button and map input to that button in_game.
I need to know which button the player pressed.
The alternative I see is to use more than 50 if statements or a for loop to loop through an array of each input.
Is there a variable that contains the last keypress(or combo) if it exists? I couldn’t find anything in the docs as well.
https://forum.godotengine.org/30582/how-to-detect-which-key-is-pressed
ramazan | 2022-07-29 07:22