fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A #2200
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2200
Loading…
Reference in a new issue
No description provided.
Delete branch "dazemc/Longshot:issue1992-plus-tab"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The reporter's Xbox pad opened the game's pause menu on every press of the A-labelled button (#1992). The pad is not the
cause: with the defaults an Xbox A (South) is the game's B and Start is Plus. The controls file attached to the issue has
key_plus=9,13— key 13 is Enter — andhost/nn_hid.cbound Plus to Tab and Enter whilekey()reads the whole OSkeyboard. A game started outside Steam keeps Steam Input's Desktop layout over its window, which sends a pad's A as Enter
(#1563's own finding), so A pressed Plus too. The 476 SDL+XInput double read cannot do this (both map A to South) and was
fixed long before 665.
Plus is Tab alone now, and
binds_loadmoves an old file's exact default pair to Tab while keeping a Plus the playerchose otherwise (
options_version8). Tab and the pad's Start still pause. Readhost/nn_hid.ckey_defaultandbinds_load, andtests/test_plus_binding.py.Fixes #1992.
Testing
Tested: Arch Linux, Hyprland on Wayland (the run's own log:
report: os Arch Linux (Linux 7.3.4-zen2-2-zen), Hyprland (wayland);XDG_CURRENT_DESKTOP=Hyprland), NVIDIA GeForce RTX 4070 Ti, driver 620.70.06; the shared basea053f9e1(~/.local/share/longshot-dev/runs/control/run-2qf5ovcw) and the pack with this change at headd8acd164(
~/.local/share/longshot-dev/runs/control/run-07kstec5; the pack was built before the rebase ontoa2dc5385, andhost/nn_hid.candgpu/vk/vk_menu.cppare identical betweena053f9e1anda2dc5385); Kokiri Forest from the repositorysave
kokiri-start; the reporter'slongshot_options.ini(key_plus=9,13,pad_a=1,pad_b=0,pad_plus=6,menu_shortcut=2). Enter was injected through a/dev/uinputkeyboard — the same synthesized key Steam Input's Desktoplayout sends for a pad's A. On the base Enter opened the game's pause menu (screenshot); with this change Enter left Link
in play (screenshot). Tab opened the pause menu here (screenshot) and toggled it on the base, so the keyboard keeps its
pause. The Insert menu's Menu shortcut read "Insert, F1 or Esc", was set to it, and closed with Esc while the game stayed
in play. The change's log (
run-07kstec5/log.txt) hashid: Plus is Tab alone: Enter, which controller software sends for a pad's A, is no longer its second key (#1992). The bridge'sstatedoes not classify the pause menu (it saysplaywith the pause open), so the screenshots are the observation. The screenshots are attached in#issuecomment-71535 and tie to head
d8acd164through that run folder.Still to test:
host/nn_hid.cand the renderer to compile; the game has not been built or run on Windows here.Measurements
Nothing to measure: this changes which key presses count, not the frame; the evidence is the focused checks and the in-game before/after in Testing.
Risks
A controls file on the old default stops pausing on Enter; Tab and the pad's Start still pause, and a file that chose
Enter for Plus keeps it (the migration matches only the exact old default pair). After updating,
longshot_options.inihas
options_version=8andkey_plus=9(or the migratedkey_plus=9,0); other settings, saves and caches areuntouched. No switch: a revert is enough. It composes with #152, which changes
key()and adds the Keyboard row but notkey_plus,binds_loadoroptions_version.Checklist
Ready for review
main; the title is a Conventional Commit. The previous head was based on753fb5af, 8 commits behindmainat0e32bc10. A full suite run at the new head and CI are pending. The PR is WIP until they are done.mise run testpasses (any failure that also fails onmainis named). A run on the current head is pending. Full suite ond8acd164with the pinned headers at--jobs 5in a 12 GiB scope: 912 passed, 23 failed, 18 skipped in 398 s. The 23 failing names are byte-identical toa2dc5385's (diffagainstprrefresh-logs/baseline-a2dc5385.namesis empty), so every failure is main's; the earlier focused set (11 passed, 2 failed) is a subset of those same main-red checks. No--jobs 3fallback was needed.main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here. On clean main at9e10f6f7,tests/test_plus_binding.pyfailsFAIL line 371: bound_down(HOS_SW_PLUS, 0) == enter_chosen(and line 372); all three cases passed on the earlier head. A run of the updated test on the current head is pending.tests/that reads changed source is updated, not weakened. No existing check changed; the new check readskey_default,binds_loadandbound_down.mainand here, for a change that shows on screen. In the first comment: the base's Enter (the pause menu), this change's Enter (play), this change's Tab (the pause menu).Assisted-by:/Co-Authored-By:trailers. The commit hasAssisted-by: opencode (DeepSeek V4.1 Flash).host/nn_hid.catd8acd164compiles as an x86-64 COFF object (411 symbols, 82,766 bytes;
runs/pr2200-win/nn_hid.obj) with llvm-mingw20261104's clang 23.1.5 (
--target=x86_64-w64-mingw32, the flagsnx2/build.pygives a host file, headers fromhost/,third_party/a64-kit/rtand the base's generatedgen/); that is a compile, not the full Windows link, andthe Windows build and run stay in Still to test. Linux: the pack with this change at
d8acd164(run~/.local/share/longshot-dev/runs/control/run-07kstec5) compiledhost/nn_hid.cand linked; it was built overa053f9e1, whosehost/nn_hid.cis identical toa2dc5385's.Ready to merge
main, measured again or a comment says why the numbers still hold. (CI's checks are pending on this head.)Tested in game: Arch Linux (KDE Wayland), NVIDIA GeForce RTX 4070 Ti, driver 620.70.06. Kokiri Forest from the repository save kokiri-start, the reporter's longshot_options.ini (key_plus=9,13, pad_plus=6, menu_shortcut=2), Enter sent through a /dev/uinput keyboard (the key Steam Input's Desktop layout sends for a pad's A). Base
a053f9e1: Enter opened the game's pause menu. This change: Enter left Link in play; Tab opened the pause menu. The change's log has: hid: Plus is Tab alone: Enter, which controller software sends for a pad's A, is no longer its second key (#1992).The in-game before/after (Kokiri Forest, the repository save
kokiri-start, the reporter's options; Enter sent through a/dev/uinputkeyboard, the key Steam Input's Desktop layout sends for a pad's A):Base

a053f9e1, after Enter — the game's pause menu:This change, after Enter — play:

This change, after Tab — the pause menu (the keyboard keeps its pause):

fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's Ato WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's AWIP: the full suite is queued; its box in the body stays unticked until it runs and its failures match main's set. The focused set (11 passed, 2 failed — both also fail on clean main with the same compile errors) only proves the new and directly affected checks. The Testing line now uses the run's own record (Hyprland on Wayland, not KDE), and names head
d8acd164and the run folder (run-07kstec5) that the screenshots in #issuecomment-71535 tie to.WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's Ato fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's AThe
When it appliessection has noHost code builds on Windows (llvm-mingw) and Linuxbox; the Windows build is in Still to test and the Linux build is the game run. Add it, partial/pending for Windows.Host-build row added and ticked with real evidence: Windows —
host/nn_hid.catd8acd164as an x86-64 COFF object, 411 symbols, 82,766 bytes (runs/pr2200-win/nn_hid.obj), llvm-mingw 20261104's clang 23.1.5, a compile only and not the full link; the Windows build and run remain in Still to test. Linux — the pack with this change atd8acd164(run~/.local/state/longshot-dev/runs/control/run-07kstec5; built overa053f9e1, whosehost/nn_hid.cis identical toa2dc5385's) compiled the file and linked. No code change; stays ready.The Host row is now good — Windows COFF + Linux link, the full Windows build/run stays in Still to test — but this edit dropped the
### Ready to mergesection. Restore it with the standard four gates (Everything in Still to test, Tier 1, Approved, CI).Restored the
### Ready to mergesection the host-row edit dropped, with the four real gates and none ticked: Still to test (Windows build/start and the Steam Desktop-layout runs — the first two via the Test Farm), Tier 1 (one Linux RTX 4070 Ti; Windows half not run), approval (no review yet), CI (pending on this head). No readiness claim; nothing else changed.@Beanstalk windows, steamdeck and linux desktop: the reporter's Steam Desktop Layout route. On Windows with a physical Xbox pad, over a directly launched game, press A and expect no pause menu; Tab and the pad's Start expect the pause. On a Steam Deck (or another Linux desktop) with Steam's real Desktop Layout, press A and expect no pause menu; Tab and Start expect the pause. This is the real Steam injector, not uinput.
@dazemc only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was ford8acd16, and the PR has changed since (026f0f0), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.d8acd16485026f0f0be7Rebased onto
753fb5af; no code change; head026f0f0b.Rebased head
026f0f0bis still ready and waits only on fork CI: its 10pull_requestjobs are "Blocked by required conditions" and the PR has noci: approvedlabel. No earlier fork-CI ask names this head.@HumanBean: please approve this head's fork CI runs (the Actions jobs, and the
ci: approvedlabel for the fork project) and review #2200 — Plus is Tab alone, so Enter (what Steam's Desktop layout sends for a pad's A) no longer pauses.Evidence is in the thread, not re-posted: the 03:53 in-game before/after (Arch Linux, RTX 4070 Ti) with screenshots, and the 11:12 host-build row. The Ready-to-merge
CI passes on the headbox needs these runs; the Test Farm request was ford8acd16and does not cover this head.@Beanstalk windows, steamdeck and linux desktop: re-asking for head
026f0f0b. The earlier request was ford8acd16, and Beanstalk says a 👍 on it no longer approves this PR.What changed: rebased onto
753fb5afat 20:34, no code change (the rebase note in this thread). The farm scope is the same.The route is the reporter's, with Steam's real Desktop Layout (not uinput):
A BigBean's 👍 on this comment approves it.
@dazemc only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was for026f0f0, and the PR has changed since (9dc931e), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's Ato WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A@review
Recommendation: Approve. The binding change addresses the reproduced Enter-to-pause problem, but its new test hard-codes GCC and ignores the configured C compiler, so it can fail on supported compiler setups. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
Plus defaults to Tab alone and old default bindings are migrated, preventing a synthesized Enter from pausing the game. Players who used Enter as part of the old default lose that shortcut; other bindings are retained.
Should fix (1): not blocking, but worth doing before merging.
tests/test_plus_binding.py:135: The new test defaults to GCC and ignores CC, with no fallback to an available supported compiler. (more on the line) Do: Honor CC and select an available supported native compiler when it is unset; pass the selected compiler through the suite's usual compiler mechanism.Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
@fixcan do L1.Checks: Still running: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes for the reproduced case: on Linux, the recorded base run paused on injected Enter and the changed run stayed in play; Tab still paused. The actual Steam Desktop Layout route remains untested.
Other systems: The binding is shared by keyboard and controller input on Windows and Linux. The Linux in-game run covers injected Enter; the Windows physical-pad and real Steam Desktop Layout runs are still pending. No renderer API, shader, save-game or GPU behavior changes.
Switches: None.
Reviewed:
026f0f0be7against753fb5af68: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff, commit, new test, binding migration and settings-save code, and the supplied comments, reviews and CI status. Skimmed the rest of the large host and menu files and related test-runner references. docs/review-checklist.md does not exist. No recorded run files, translations or generated files were changed.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no commands from the change, builds or tests were run. The author reports a Linux in-game comparison and a Windows host-file compile; CI is pending.
Overlaps and merge order: The description identifies #152 as related; it says that change does not touch this binding or migration. No independent overlap check was available offline.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -0,0 +132,4 @@p = argparse.ArgumentParser(description=__doc__)p.add_argument("--cc", default="gcc")a = p.parse_args()hid = (ROOT / "host" / "nn_hid.c").read_text(encoding="utf-8")L1 (should fix): The new test defaults to GCC and ignores CC, with no fallback to an available supported compiler.
When: On a Linux or Windows development setup with Clang configured through CC but no gcc on PATH, the suite invokes this test without --cc and the compiler subprocess fails before the regression check runs.
Do: Honor CC and select an available supported native compiler when it is unset; pass the selected compiler through the suite's usual compiler mechanism.
@fix
026f0f0be79dc931e9f7Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). Injected Enter no longer opens the pause menu in the reported Linux run, while Tab still does. The real Steam Desktop Layout and controller path remains untested. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
9dc931e9f7. I rebased it ontomain(6acae6aa87). I edited its description to match the change.Changed
Nothing was built or run: the checks run again on the new head.
The change removes Enter from the default Plus binding and migrates the old default pair to Tab, while preserving other chosen bindings. The compiler-selection fix lets the new test use the suite’s configured C compiler.
Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
Checks: they run again on this head; a failure shows on the pull request.
Also noticed (3; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes for injected Enter: the reported before-and-after game run shows Enter opening pause on the base and leaving play active with the change. The actual Steam controller path remains unproven.
Other systems: The binding is shared by Windows and Linux. The reported Linux run covers injected keyboard input; Windows and the real Steam Desktop Layout controller path remain untested.
Switches: None.
Reviewed:
9dc931e9f7against6acae6aa87: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the compiler helper, the changed test and the relevant binding migration. Read the fix diff and the original input-change diff; skimmed the broader base-to-head change and reported runs. The base-to-head diff includes many files and commits beyond the six files listed in the pull request.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run tests were executed. The description reports a Linux in-game before-and-after run and an earlier-head suite run; the current-head suite and real Steam controller run are pending.
Overlaps and merge order: The description identifies #152 as related and says it does not change the Plus binding or migration.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.
WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's Ato fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's AJer9 referenced this pull request2026-11-23 16:17:47 +00:00