Init video and joystick at the same time.
Set hint to allow inputs when the window is in the background.