# NFSU2_PAD=hotplug: main menu -> Options -> Controls with the left stick,
# Joypad Configuration, unplug there, then edit a binding with the keyboard
# (Enter).  Before d65299a this crashed (guest read of 0x64 in
# sub_004f9340); now the pad is kept while the page is open.  Replug,
# rebind with the pad, leave.
0     pad connect
+0    tappaduntil START MC_Background.fng 120 4000
+200  tappad A
+0    waitfng GarageMain.fng 3000
+700  dump mainmenu
+0    axis LX 1
+20   axis LX 0
+40   axis LX 1
+20   axis LX 0
+40   axis LX 1
+20   axis LX 0
+40   axis LX 1
+20   axis LX 0
+40   axis LX 1
+20   axis LX 0
+100  dump stick_right_x5
+0    tappad A
+0    waitfng UI_OptionsMain.fng 600
+300  axis LX 1
+20   axis LX 0
+100  axis LX 1
+20   axis LX 0
+100  axis LX 1
+20   axis LX 0
+100  axis LX 1
+20   axis LX 0
+100  dump controls_cat
+0    tappad A
+0    waitfng UI_Options_PC_Controller.fng 600
+300  axis LY -1
+20   axis LY 0
+100  axis LX 1
+20   axis LX 0
+200  dump joypad_config
+0    tappad DDOWN
+40   tappad DDOWN
+60   log --- unplug on the joypad page ---
+0    pad disconnect
+120  dump unplugged_on_page
+0    tap DOWN
+60   tap DOWN
+60   dump kb_nav
+0    log --- rebind attempt on the unplugged pad ---
+0    tap RETURN
+200  dump rebind_gone
+0    tap ESCAPE
+200  dump after_esc
+0    log --- replug ---
+0    pad connect
+150  dump replugged
+0    tappad DDOWN
+60   tappad A
+200  dump rebind_replugged
+0    tappad Y
+200  dump rebind_to_y
+0    tappad B
+200  dump back1
+0    tappad B
+300  dump back2
+60   quit
