Added InputMap.get_actions()

get_actions() lists all actions in the InputMap.
This commit is contained in:
J08nY
2016-06-04 17:55:09 +02:00
parent 280e3611b9
commit 1a80b2a04a
3 changed files with 49 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class InputMap : public Object {
List<InputEvent>::Element *_find_event(List<InputEvent> &p_list,const InputEvent& p_event) const;
Array _get_action_list(const StringName& p_action);
Array _get_actions();
protected:
@ -59,6 +60,7 @@ public:
bool has_action(const StringName& p_action) const;
int get_action_id(const StringName& p_action) const;
StringName get_action_from_id(int p_id) const;
List<StringName> get_actions() const;
void add_action(const StringName& p_action);
void erase_action(const StringName& p_action);