I'm trying to change the input map with InputMap.action_add_event(action,event)
and I'm getting the event from a file. How can I take something like KEY_A
or 65
and turn it into an InputEvent of the 'A' key being pressed so I can pass it to action_add_event()
?