I’m surprised it is not automatic once you plug in the xbox controller to the PC. My guess is it was an attempt to determine if something is plugged in, and if it is or is not a xbox controller.