1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Fix action_get_events returning booleans instead of InputKey entries

This commit is contained in:
Julien Nguyen
2021-08-07 21:17:55 +02:00
parent 4c2559df1d
commit daee3c316f

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); const List<Ref<InputEvent>> *al = action_get_events(p_action);
if (al) { if (al) {
for (const List<Ref<InputEvent>>::Element *E = al->front(); E; E = E->next()) { for (const List<Ref<InputEvent>>::Element *E = al->front(); E; E = E->next()) {
ret.push_back(E); ret.push_back(E->get());
} }
} }