You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user