Feature: disable tap jump#39
Merged
JRickey merged 2 commits intoJRickey:mainfrom May 1, 2026
Merged
Conversation
JRickey
added a commit
that referenced
this pull request
May 1, 2026
This is the first port-specific gameplay improvement we ship — every prior change has been a bug fix, an LP64/endianness correction, or a port-correctness change that restores upstream decomp behavior on PC. Disable-tap-jump is a genuine player-facing feature with no upstream equivalent, and it sets the pattern for everything that comes after. The contributor's original PR (the-outcaster, #39) put the toggle UI in libultraship's InputEditorWindow and called CVarGetInteger directly from ftcommonkneebend.c via a hand-rolled extern. Functional, but it created drift in two places we want to keep clean: 1. libultraship is an upstream-y fork. Game-specific UI in libultraship means rebasing every sync. The UI now lives in port/gui/PortMenu.cpp under a new "Gameplay" sidebar; the libultraship submodule pointer stays at 39cbe9e6 (no fork drift from this feature). 2. The decomp source is also upstream-y. Inline CVar lookups in a decomp .c file mix port concerns with game logic and would conflict on every decomp sync. port/enhancements/ now owns enhancement CVars and exposes typed C accessors (port_enhancement_tap_jump_disabled). Decomp files call the accessor under #ifdef PORT — one-line touch, trivial to grep and remove if upstream ever lands an equivalent. Pattern for future per-port enhancements: - Register CVar + accessor in port/enhancements/enhancements.cpp - Add a checkbox in the Gameplay sidebar (port/gui/PortMenu.cpp) - Call the accessor from one #ifdef PORT block in the decomp file CVar key renamed gDisableTapJump_P# → gEnhancements.TapJumpDisabled.P# to match the port's CVAR_SETTING-style namespacing. Settings stored under the original PR's key won't carry over. Co-Authored-By: the-outcaster <linuxgamingcentral@pm.me> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an option in the controller configuration menu to disable tap jump on a per-port basis. Tested on multiple ports.