Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | wooshuwu |
I have several Input Actions defined in my program. I have inputs from the mouse, keyboard and a connected Nintendo switch controller. Is there a way, within the code, besides the IsAction method for every single action to get the string for the name of the action just pressed? As you can imagine with such a large number of actions, it will be tedious to do that for every individual action I’ve defined. For example, if the action “exit” is pressed, I want to get the string “exit” and if I have another action called “forward” i want the string “forward” to be obtained the same way the string “exit” was obtained.