How to get an array containing all actions pressed at that time?

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

Is it possible to get an array containing all actions that are pressed at that moment? If it is, how is it done? I searched for it and read the Input and InputEvent documentations, but couldn’t find an answer.

Why would you want a script that does this, may I ask? There might be a better alternative.

TheNormandyProject | 2023-02-24 03:18

:bust_in_silhouette: Reply From: exuin

then check every action in the array with Input.is_action_pressed()

there’s probably a better way to do what you’re trying to do though