Move joypad_connection code to input/connect