Merge pull request #51375 from Blackiris/fix-action-get-events

Fix action_get_events returning booleans instead of InputKey entries
This commit is contained in:
Rémi Verschelde 2021-08-07 23:27:09 +02:00 committed by GitHub
commit 49309ac5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
}
}