Add array element type to get_connected_joypads
This commit is contained in:
parent
c0bf18e923
commit
3e53afd52c
3 changed files with 5 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue