summaryrefslogtreecommitdiffstats
path: root/core/input_map.h
diff options
context:
space:
mode:
authorJ08nY <jancar.jj@gmail.com>2016-06-04 17:55:09 +0200
committerJ08nY <jancar.jj@gmail.com>2016-06-04 17:56:30 +0200
commit1a80b2a04a16f930e0d5cca4bdf322769d5a24f9 (patch)
tree998bf7301e1261cd06bbd6e1bf5d85e22d3ff1ff /core/input_map.h
parent280e3611b90c40fc26c7b7295430703f70f50f03 (diff)
downloadredot-engine-1a80b2a04a16f930e0d5cca4bdf322769d5a24f9.tar.gz
Added InputMap.get_actions()
get_actions() lists all actions in the InputMap.
Diffstat (limited to 'core/input_map.h')
-rw-r--r--core/input_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/input_map.h b/core/input_map.h
index 5cd1e41922..82b650516e 100644
--- a/core/input_map.h
+++ b/core/input_map.h
@@ -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);