Now sends gamepadconnected and gamepaddisconnected events on the window
- they are sent as CustomEvents, and need some tweaking.