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

Add array element type to get_connected_joypads

This commit is contained in:
Raul Santos
2022-06-03 18:29:10 +02:00
parent c0bf18e923
commit 3e53afd52c
3 changed files with 5 additions and 4 deletions

View File

@@ -1401,8 +1401,8 @@ String Input::get_joy_guid(int p_device) const {
return joy_names[p_device].uid;
}
Array Input::get_connected_joypads() {
Array ret;
TypedArray<int> Input::get_connected_joypads() {
TypedArray<int> ret;
HashMap<int, Joypad>::Iterator elem = joy_names.begin();
while (elem) {
if (elem->value.connected) {