When the actual gamepad is disconnected, the gamepad object will still exist. Now the leftStick value is being tested, which ensures that the values are provided. checking for browserGamepad might also be valid, but the browser might leave the object as well.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|