how to add an input action in gdscript?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Thakee Nathees

there are some predefined input actions in godot like “ui____accept”, “ui____up” . . .
but is there any way to implement your own actions in gdscript (not from project menu)?

:bust_in_silhouette: Reply From: Dlean Jeans

Seems like you must have missed it in your last question:

InputMap.add_action('attack')

didn’t work for me last time. my bad it’s working

Thakee Nathees | 2019-06-13 17:18