gamepad_get_device_count returns 32437344 with no controllers plugged in, and returns 32437345 with one plugged in.
This is quite wrong, and can cause game hanging with code such as:
for (i=0; i<gamepad_get_device_count(); i+=1)
It will now just return the XInput constant XUSER_MAX_COUNT. Never hard code 4 into a game btw as it is possible, though highly unlikely, that Microsoft could update XInput with more controllers in the future.