Move the sprint button's stance host off the water ripples' patch page slot, and fix how presses and timings reach it.

The stance site called page +0xf50, which the 0.10.0 line gives the water ripples above 60 fps: the second
registration ends every 1.1.1 start with "registered twice", the sprint button off included. It calls +0xf30 now, and
the comments say which slots the other sets hold. The set's switch is NX2NAVI_SPRINT_BUTTON_PATCH, not a name another
open request uses for a set of its own.

The stand-still timings count 60 Hz frames (frame_step_frames), so a toggled sprint no longer ends on a short stop at
high frame rates. A press is decided at its start for its whole length: kept from the game and the sprint's when it
begins in gameplay (B: while Link moves), else the game's alone, so a held B is not handed to the game half way and a
B that closes the pause menu starts no sprint. A sprint switched off with the button setting does not come back by
itself, Link's state is read only where the memory is readable, and the row, nx2navi.ini.example and the controls
page say that B is the jump under the game's Swap Jump Controls and name the button without assuming the layout.
tests\sprint_check.py covers the press latch, the menu press, 240 fps and the switch-off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-12 22:57:56 -05:00
parent aab082ff51
commit d64a9b689c
8 changed files with 97 additions and 29 deletions

View File

@@ -822,7 +822,7 @@
# rumble = 1
# Sprint button (game 1.1.1): Link sprints without rolling first. off (the default), l3 (the left stick's click, which
# has no other use) or b (the game's B button, the bottom one of the Nintendo layout: it sprints only while Link moves
# and puts the weapon away as usual otherwise). sprint_mode: toggle (press to sprint and again to stop; the sprint
# and puts the weapon away as usual otherwise; with the game's Swap Jump Controls B is the jump, so use l3). sprint_mode: toggle (press to sprint and again to stop; the sprint
# also ends when Link stops, attacks, rolls, targets, uses an item, swims or climbs) or hold. The Controls tab's
# Sprint rows set both; changes take effect at once.
# sprint_button = off