parent
7e4970214c
commit
f89f9f0094
1 changed files with 1 additions and 9 deletions
|
@ -122,15 +122,7 @@ void JoypadUWP::OnGamepadRemoved(Platform::Object ^ sender, Windows::Gaming::Inp
|
||||||
|
|
||||||
ERR_FAIL_COND(idx == -1);
|
ERR_FAIL_COND(idx == -1);
|
||||||
|
|
||||||
for (int i = idx + 1; i < MAX_CONTROLLERS - 1; i++) {
|
controllers[idx] = ControllerDevice();
|
||||||
|
|
||||||
if (!controllers[i].connected) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
controllers[i - 1] = controllers[i];
|
|
||||||
}
|
|
||||||
controllers[MAX_CONTROLLERS - 1] = ControllerDevice();
|
|
||||||
|
|
||||||
input->joy_connection_changed(idx, false, "Xbox Controller");
|
input->joy_connection_changed(idx, false, "Xbox Controller");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue