Xbox Controller Charges but Windows Doesn’t Detect It Over USB

A controller can receive power over a cable that carries no data. Start by verifying the connection before searching for a driver.
Try a data cable
Use a known data-capable cable directly in the PC. Watch Device Manager as you connect it and disconnect Bluetooth temporarily to distinguish wired from wireless input.
What to do with the result
If the device appears, run joy.cpl from Start and inspect the controller’s buttons and axes. If it never appears with two data cables, try another PC or port before changing Windows software.
Open the controller test
Check the same button in the Windows controller test and in the affected game. If only the game ignores it, review the game’s controller selection.
For related steps, see identifying hardware by its device ID or browse the Windows Drivers library.
Official references include Microsoft’s hardware ID reference.