Topic was automatically imported from the old Question2Answer platform.
Asked By
chaunce
Hey guys, loving Godot so far but got stumped. So far I only know of ways to check if a player input is mapped to a specific action.
Is there a way to check if a player input is mapped to any action in general and not just one?
You can probably just set up a mapping yourself. Try maybe something like this:
var map = {}
func _ready():
set_up_action_map()
func set_up_action_map():
for action in InputMap.get_actions():
for input in InputMap.get_action_list(action):
if input is InputEventKey:
map[input.scancode] = action
print(map)