# The joypad rebind on the Controls page can be cancelled with the keyboard's
# Escape: while another device captures, the keyboard reader (0x5c1955)
# looks the event up with GetObjectInfo(DIPH_BYOFFSET) in the action map and
# cancels when the object's native offset is DIK_ESCAPE.  Before the
# keyboard device kept per-format offsets this returned DIK_Z (the review's
# pad-rv-13: Escape never left "Press a button").
0     pad connect
+0    tappaduntil START MC_Background.fng 120 4000
+200  tappad A
+0    waitfng GarageMain.fng 3000
+700  tappad DRIGHT
+60   tappad DRIGHT
+60   tappad DRIGHT
+60   tappad DRIGHT
+60   tappad DRIGHT
+60   tappad DRIGHT        # (Split Screen, after Quick Race)
+120  tappad A                                       # Options
+0    waitfng UI_OptionsMain.fng 600
+300  tappad DRIGHT
+120  tappad DRIGHT
+120  tappad DRIGHT
+120  tappad DRIGHT
+120  tappad A                                       # Controls
+0    waitfng UI_Options_PC_Controller.fng 600
+300  tappad DUP                                     # header
+120  tappad DRIGHT                                  # Joypad Configuration
+200  tappad DDOWN
+60   tappad DDOWN
+60   tappad DDOWN
+60   tappad DDOWN
+60   tappad DDOWN                                   # Shift Up
+90   tappad A                                       # "Press a button to use for this function"
+150  dump joypad_capture
+0    nstap ESCAPE                                  # the keyboard's Escape
+150  dump after_keyboard_escape
+0    peek 0x870768                                  # capture flag (0 = over)
+60   quit
