|
@@ -47658,13 +47658,11 @@ var BABYLON;
|
|
for (var i in this.babylonGamepads) {
|
|
for (var i in this.babylonGamepads) {
|
|
if (this.babylonGamepads[i].index == gamepad.index) {
|
|
if (this.babylonGamepads[i].index == gamepad.index) {
|
|
this.babylonGamepads.splice(+i, 1);
|
|
this.babylonGamepads.splice(+i, 1);
|
|
- console.log("gamepad removed from collection");
|
|
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// If no gamepads are left, stop the polling loop.
|
|
// If no gamepads are left, stop the polling loop.
|
|
if (this.babylonGamepads.length == 0) {
|
|
if (this.babylonGamepads.length == 0) {
|
|
- console.log("No more gamepad connected. Collection empty.");
|
|
|
|
this._stopMonitoringGamepads();
|
|
this._stopMonitoringGamepads();
|
|
this.oneGamepadConnected = false;
|
|
this.oneGamepadConnected = false;
|
|
}
|
|
}
|