diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-07 23:27:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 23:27:09 +0200 |
commit | 49309ac5fb2d8b33cf80c1e4b6eb0d0130f7a24a (patch) | |
tree | 5f97d95664a2a1be40d21fcb5d2618f8726e3557 | |
parent | f860ee309145a071e41dddb09186d26760efcb18 (diff) | |
parent | daee3c316fdbb97dc205c8d3323af38bff5ebae0 (diff) |
Merge pull request #51375 from Blackiris/fix-action-get-events
Fix action_get_events returning booleans instead of InputKey entries
-rw-r--r-- | core/input/input_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index 6714705bb5..15be0f1e36 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -196,7 +196,7 @@ Array InputMap::_action_get_events(const StringName &p_action) { const List<Ref<InputEvent>> *al = action_get_events(p_action); if (al) { for (const List<Ref<InputEvent>>::Element *E = al->front(); E; E = E->next()) { - ret.push_back(E); + ret.push_back(E->get()); } } |