fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A #2200

Merged
HumanBean merged 2 commits from dazemc/Longshot:issue1992-plus-tab into main 2026-11-23 16:08:24 +00:00
Contributor

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 — and host/nn_hid.c bound Plus to Tab and Enter while key() reads the whole OS
keyboard. 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_load moves an old file's exact default pair to Tab while keeping a Plus the player
chose otherwise (options_version 8). Tab and the pad's Start still pause. Read host/nn_hid.c key_default and
binds_load, and tests/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 base
a053f9e1 (~/.local/share/longshot-dev/runs/control/run-2qf5ovcw) and the pack with this change at head d8acd164
(~/.local/share/longshot-dev/runs/control/run-07kstec5; the pack was built before the rebase onto a2dc5385, and
host/nn_hid.c and gpu/vk/vk_menu.cpp are identical between a053f9e1 and a2dc5385); Kokiri Forest from the repository
save kokiri-start; the reporter's longshot_options.ini (key_plus=9,13, pad_a=1, pad_b=0, pad_plus=6,
menu_shortcut=2). Enter was injected through a /dev/uinput keyboard — the same synthesized key Steam Input's Desktop
layout 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) has hid: Plus is Tab alone: Enter, which controller software sends for a pad's A, is no longer its second key (#1992). The bridge's state does not classify the pause menu (it says
play with the pause open), so the screenshots are the observation. The screenshots are attached in
#issuecomment-71535 and tie to head d8acd164 through that run folder.

Still to test:

  • Windows (llvm-mingw) build: by hand, expecting host/nn_hid.c and the renderer to compile; the game has not been built or run on Windows here.
  • Windows with a physical Xbox pad and Steam's Desktop Layout over a directly launched game (the reporter's route): press A, expecting no pause menu; Tab and the pad's Start, expecting the pause (@Beanstalk windows, or by hand).
  • Steam Deck or another Linux desktop with Steam's real Desktop layout (the actual injector, not uinput): press A, expecting no pause menu; Tab and Start, expecting the pause (@Beanstalk linux, a Deck in desktop mode).

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.ini
has options_version=8 and key_plus=9 (or the migrated key_plus=9,0); other settings, saves and caches are
untouched. No switch: a revert is enough. It composes with #152, which changes key() and adds the Keyboard row but not
key_plus, binds_load or options_version.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. The previous head was based on 753fb5af, 8 commits behind main at 0e32bc10. A full suite run at the new head and CI are pending. The PR is WIP until they are done.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). A run on the current head is pending. Full suite on d8acd164 with the pinned headers at --jobs 5 in a 12 GiB scope: 912 passed, 23 failed, 18 skipped in 398 s. The 23 failing names are byte-identical to a2dc5385's (diff against prrefresh-logs/baseline-a2dc5385.names is 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 3 fallback was needed.
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. On clean main at 9e10f6f7, tests/test_plus_binding.py fails FAIL 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.
  • A check under tests/ that reads changed source is updated, not weakened. No existing check changed; the new check reads key_default, binds_load and bound_down.
  • Screenshots of the same spot on main and 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).
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers. The commit has Assisted-by: opencode (DeepSeek V4.1 Flash).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Windows: host/nn_hid.c at d8acd164
    compiles as an x86-64 COFF object (411 symbols, 82,766 bytes; runs/pr2200-win/nn_hid.obj) with llvm-mingw
    20261104's clang 23.1.5 (--target=x86_64-w64-mingw32, the flags nx2/build.py gives a host file, headers from
    host/, third_party/a64-kit/rt and the base's generated gen/); that is a compile, not the full Windows link, and
    the 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) compiled host/nn_hid.c and linked; it was built over
    a053f9e1, whose host/nn_hid.c is identical to a2dc5385's.

Ready to merge

  • Everything in Still to test has run, its results in Tested. (The Windows (llvm-mingw) build and start, the Windows Steam Desktop-layout run, and the Steam-layout run on a Linux desktop/Deck are in Still to test; the first two are the Test Farm's.)
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). (One Tier 1 machine has run: Arch Linux, RTX 4070 Ti, NVIDIA 620.70.06; Tier 1's Windows half has not.)
  • Approved in review, every comment answered. (No review yet.)
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold. (CI's checks are pending on this head.)
## 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 — and `host/nn_hid.c` bound Plus to Tab and Enter while `key()` reads the whole OS keyboard. 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_load` moves an old file's exact default pair to Tab while keeping a Plus the player chose otherwise (`options_version` 8). Tab and the pad's Start still pause. Read `host/nn_hid.c` `key_default` and `binds_load`, and `tests/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 base a053f9e1 (`~/.local/share/longshot-dev/runs/control/run-2qf5ovcw`) and the pack with this change at head **d8acd164** (`~/.local/share/longshot-dev/runs/control/run-07kstec5`; the pack was built before the rebase onto a2dc5385, and `host/nn_hid.c` and `gpu/vk/vk_menu.cpp` are identical between a053f9e1 and a2dc5385); Kokiri Forest from the repository save `kokiri-start`; the reporter's `longshot_options.ini` (`key_plus=9,13`, `pad_a=1`, `pad_b=0`, `pad_plus=6`, `menu_shortcut=2`). Enter was injected through a `/dev/uinput` keyboard — the same synthesized key Steam Input's Desktop layout 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`) has `hid: Plus is Tab alone: Enter, which controller software sends for a pad's A, is no longer its second key (#1992)`. The bridge's `state` does not classify the pause menu (it says `play` with the pause open), so the screenshots are the observation. The screenshots are attached in #issuecomment-71535 and tie to head d8acd164 through that run folder. **Still to test:** - Windows (llvm-mingw) build: by hand, expecting `host/nn_hid.c` and the renderer to compile; the game has not been built or run on Windows here. - Windows with a physical Xbox pad and Steam's Desktop Layout over a directly launched game (the reporter's route): press A, expecting no pause menu; Tab and the pad's Start, expecting the pause (@Beanstalk windows, or by hand). - Steam Deck or another Linux desktop with Steam's real Desktop layout (the actual injector, not uinput): press A, expecting no pause menu; Tab and Start, expecting the pause (@Beanstalk linux, a Deck in desktop mode). ## 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.ini` has `options_version=8` and `key_plus=9` (or the migrated `key_plus=9,0`); other settings, saves and caches are untouched. No switch: a revert is enough. It composes with #152, which changes `key()` and adds the Keyboard row but not `key_plus`, `binds_load` or `options_version`. ## Checklist ### Ready for review - [ ] One topic, on current `main`; the title is a Conventional Commit. The previous head was based on `753fb5af`, 8 commits behind `main` at `0e32bc10`. A full suite run at the new head and CI are pending. The PR is WIP until they are done. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). A run on the current head is pending. Full suite on d8acd164 with the pinned headers at `--jobs 5` in a 12 GiB scope: **912 passed, 23 failed, 18 skipped in 398 s**. The 23 failing names are byte-identical to `a2dc5385`'s (`diff` against `prrefresh-logs/baseline-a2dc5385.names` is 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 3` fallback was needed. - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [ ] A fix: a game-free test that fails on `main` and passes here. On clean main at 9e10f6f7, `tests/test_plus_binding.py` fails `FAIL 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. - [x] A check under `tests/` that reads changed source is updated, not weakened. No existing check changed; the new check reads `key_default`, `binds_load` and `bound_down`. - [x] Screenshots of the same spot on `main` and 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). - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. The commit has `Assisted-by: opencode (DeepSeek V4.1 Flash)`. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Windows: `host/nn_hid.c` at `d8acd164` compiles as an x86-64 COFF object (411 symbols, 82,766 bytes; `runs/pr2200-win/nn_hid.obj`) with llvm-mingw 20261104's clang 23.1.5 (`--target=x86_64-w64-mingw32`, the flags `nx2/build.py` gives a host file, headers from `host/`, `third_party/a64-kit/rt` and the base's generated `gen/`); that is a compile, not the full Windows link, and the 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`) compiled `host/nn_hid.c` and linked; it was built over `a053f9e1`, whose `host/nn_hid.c` is identical to `a2dc5385`'s. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. (The Windows (llvm-mingw) build and start, the Windows Steam Desktop-layout run, and the Steam-layout run on a Linux desktop/Deck are in Still to test; the first two are the Test Farm's.) - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). (One Tier 1 machine has run: Arch Linux, RTX 4070 Ti, NVIDIA 620.70.06; Tier 1's Windows half has not.) - [ ] Approved in review, every comment answered. (No review yet.) - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. (CI's checks are pending on this head.)
fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 14s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
d8acd16485
A game started outside Steam keeps Steam Input's Desktop layout over its window: the pad's A arrives as Enter on top of
the pad SDL reads, and the keyboard's bindings take it. Plus was Tab and Enter, so every A press also opened the game's
pause menu (#1992). The pad itself maps by position (an Xbox pad's bottom button is the Switch's B, Start is Plus) and
nothing in host/pad_sdl.c or bound_pad_buttons can make A Plus; the keyboard's Enter is what did it. The 476 SDL+XInput
double read cannot do this either (both map A to South) and was fixed long before 665.

Plus's default is Tab alone now. binds_load moves a file's old default pair (Tab and Enter) to Tab alone and keeps a Plus
the player chose otherwise; options_version is 8. A game-free check compiles binds_load and bound_down with the
reporter's longshot_options.ini and the key states: Enter no longer presses Plus, Tab does, and the pad's A is the
game's B while Start is Plus.

Behaviour change (a product decision, not a side effect): a controls file on the old default stops pausing on Enter.
Tab and the pad's Start always pause, and a player who chose Enter for Plus (anything other than the exact old default
pair) keeps it. The user docs say so in Controls and in the common-issues entry.

The general fix for the other keys controller software synthesizes (sticks to the arrows, View to Tab, B/Menu to Esc) is
the Keyboard Auto/On/Off row of pull request #152. It does not touch key_plus, key_default, binds_load or options_version
and its default is On, so it does not fix this default; the two compose without conflict.

Assisted-by: opencode (DeepSeek V4.1 Flash)
Author
Contributor

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).

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).
Author
Contributor

The in-game before/after (Kokiri Forest, the repository save kokiri-start, the reporter's options; Enter sent through a /dev/uinput keyboard, the key Steam Input's Desktop layout sends for a pad's A):

Base a053f9e1, after Enter — the game's pause menu:
base, Enter: the pause menu

This change, after Enter — play:
this change, Enter: play

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

The in-game before/after (Kokiri Forest, the repository save `kokiri-start`, the reporter's options; Enter sent through a `/dev/uinput` keyboard, the key Steam Input's Desktop layout sends for a pad's A): **Base a053f9e1, after Enter — the game's pause menu:** ![base, Enter: the pause menu](https://git.magicbean.dev/attachments/5105bd95-52df-444e-b702-eea10bcdee17) **This change, after Enter — play:** ![this change, Enter: play](https://git.magicbean.dev/attachments/5ba0c12e-a731-4b0c-90d9-05a0d7533874) **This change, after Tab — the pause menu (the keyboard keeps its pause):** ![this change, Tab: the pause menu](https://git.magicbean.dev/attachments/334d5370-a80b-4abf-bb52-02245ab25667)
dazemc changed title from fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A to WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A 2026-11-22 04:06:39 +00:00
Author
Contributor

WIP: 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 d8acd164 and the run folder (run-07kstec5) that the screenshots in #issuecomment-71535 tie to.

WIP: 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 d8acd164 and the run folder (run-07kstec5) that the screenshots in #issuecomment-71535 tie to.
dazemc changed title from WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A to fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A 2026-11-22 05:19:16 +00:00
dazemc left a comment

The When it applies section has no Host code builds on Windows (llvm-mingw) and Linux box; the Windows build is in Still to test and the Linux build is the game run. Add it, partial/pending for Windows.

The `When it applies` section has no `Host code builds on Windows (llvm-mingw) and Linux` box; the Windows build is in Still to test and the Linux build is the game run. Add it, partial/pending for Windows.
Author
Contributor

Host-build row added and ticked with real evidence: Windows — host/nn_hid.c at d8acd164 as 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 at d8acd164 (run ~/.local/state/longshot-dev/runs/control/run-07kstec5; built over a053f9e1, whose host/nn_hid.c is identical to a2dc5385's) compiled the file and linked. No code change; stays ready.

Host-build row added and ticked with real evidence: Windows — `host/nn_hid.c` at `d8acd164` as 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 at `d8acd164` (run `~/.local/state/longshot-dev/runs/control/run-07kstec5`; built over `a053f9e1`, whose `host/nn_hid.c` is identical to `a2dc5385`'s) compiled the file and linked. No code change; stays ready.
dazemc left a comment

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 merge section. Restore it with the standard four gates (Everything in Still to test, Tier 1, Approved, CI).

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 merge` section. Restore it with the standard four gates (Everything in Still to test, Tier 1, Approved, CI).
Author
Contributor

Restored the ### Ready to merge section 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.

Restored the `### Ready to merge` section 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.
Author
Contributor

@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.

@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.
Member

@dazemc only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for d8acd16, and the PR has changed since (026f0f0), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dazemc only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `d8acd16`, and the PR has changed since (`026f0f0`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dazemc force-pushed issue1992-plus-tab from d8acd16485
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 14s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
to 026f0f0be7
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
2026-11-22 20:32:38 +00:00
Compare
Author
Contributor

Rebased onto 753fb5af; no code change; head 026f0f0b.

Rebased onto 753fb5af; no code change; head 026f0f0b.
Author
Contributor

Rebased head 026f0f0b is still ready and waits only on fork CI: its 10 pull_request jobs are "Blocked by required conditions" and the PR has no ci: approved label. No earlier fork-CI ask names this head.

@HumanBean: please approve this head's fork CI runs (the Actions jobs, and the ci: approved label 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 head box needs these runs; the Test Farm request was for d8acd16 and does not cover this head.

Rebased head `026f0f0b` is still ready and waits only on fork CI: its 10 `pull_request` jobs are "Blocked by required conditions" and the PR has no `ci: approved` label. No earlier fork-CI ask names this head. @HumanBean: please approve this head's fork CI runs (the Actions jobs, and the `ci: approved` label 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 head` box needs these runs; the Test Farm request was for `d8acd16` and does not cover this head.
Author
Contributor

@Beanstalk windows, steamdeck and linux desktop: re-asking for head 026f0f0b. The earlier request was for d8acd16, and Beanstalk says a 👍 on it no longer approves this PR.

What changed: rebased onto 753fb5af at 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):

  • Windows: build and start (llvm-mingw), then press A with a physical Xbox pad over a directly launched game — expect no pause menu; Tab and the pad's Start — expect the pause.
  • Windows with Steam's Desktop Layout: the same three presses, the same expectations.
  • Steam Deck or another Linux desktop with Steam's real Desktop Layout: the same three presses, the same expectations.

A BigBean's 👍 on this comment approves it.

@Beanstalk windows, steamdeck and linux desktop: re-asking for head `026f0f0b`. The earlier request was for `d8acd16`, and Beanstalk says a 👍 on it no longer approves this PR. What changed: rebased onto `753fb5af` at 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): - Windows: build and start (llvm-mingw), then press A with a physical Xbox pad over a directly launched game — expect no pause menu; Tab and the pad's Start — expect the pause. - Windows with Steam's Desktop Layout: the same three presses, the same expectations. - Steam Deck or another Linux desktop with Steam's real Desktop Layout: the same three presses, the same expectations. A BigBean's 👍 on this comment approves it.
Member

@dazemc only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for 026f0f0, and the PR has changed since (9dc931e), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dazemc only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `026f0f0`, and the PR has changed since (`9dc931e`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dazemc changed title from fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A to WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A 2026-11-23 01:07:10 +00:00
Owner
@review
BeanBot left a comment

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.

  • L1 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)

  • L2: The reporter's actual Steam Desktop Layout path has not yet been exercised with this change. When: The recorded Linux run injects Enter directly, so it does not exercise the combined physical controller and Steam input path reported on Windows. Do: Run the requested Windows physical Xbox controller test with Steam's Desktop Layout, checking A, Tab and Start, and record the result.

@fix can 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: 026f0f0be7 against 753fb5af68: 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:

  • The migration matches the exact old Tab/Enter pair and leaves other saved pairs alone.
  • The commit records AI assistance; no game-derived or generated files appear in the diff.
  • The new behavioral test checks both the migrated binding and a fresh install, and the reported in-game comparison covers Tab as well as Enter.

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.

**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. - **L1** `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) - **L2**: The reporter's actual Steam Desktop Layout path has not yet been exercised with this change. *When:* The recorded Linux run injects Enter directly, so it does not exercise the combined physical controller and Steam input path reported on Windows. **Do:** Run the requested Windows physical Xbox controller test with Steam's Desktop Layout, checking A, Tab and Start, and record the result. `@fix` can do L1. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **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:** 026f0f0be795 against 753fb5af6860: 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:** - The migration matches the exact old Tab/Enter pair and leaves other saved pairs alone. - The commit records AI assistance; no game-derived or generated files appear in the diff. - The new behavioral test checks both the migrated binding and a fresh install, and the reported in-game comparison covers Tab as well as Enter. **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. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -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")
Member

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.

**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.
Owner
@fix
BeanBot force-pushed issue1992-plus-tab from 026f0f0be7
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
to 9dc931e9f7
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 14s
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Workflow lint (actionlint) (pull_request) Successful in 31s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 36s
Third-party parts / As their notes say (pull_request) Successful in 57s
PR description / Description follows the template (pull_request_target) Failing after 20s
beanstalk/approval changed since the request: ask again
CI / Website build and checks (pull_request) Failing after 20m3s
2026-11-23 16:02:59 +00:00
Compare
BeanBot left a comment

Recommendation: 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 @fix changed
I changed this pull request: the new head is 9dc931e9f7. I rebased it onto main (6acae6aa87). I edited its description to match the change.

Changed

  • Compiler selection in tests/test_plus_binding.py:21: Uses the suite’s compiler selection and command parsing, honoring CC and falling back to GCC or Clang. Tests were not run, as requested.

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)

  • L2: The reporter's actual Steam Desktop Layout path has not yet been exercised with this change. When: The recorded Linux run injects Enter directly, so it does not exercise the combined physical controller and Steam input path reported on Windows. Do: Run the requested Windows physical Xbox controller test with Steam's Desktop Layout, checking A, Tab and Start, and record the result.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (3; not asked for, not blocking)
  • The pull request reports that its base is behind current main and that the full Windows build and real Steam input runs remain outstanding.
  • The current-head test suite and CI results are pending.
  • The stated base-to-head diff includes unrelated merged changes beyond the listed pull request files.
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: 9dc931e9f7 against 6acae6aa87: 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:

  • The compiler fix uses the shared command parser, honors the configured compiler and retains GCC and Clang fallbacks.
  • The migration changes the exact old Tab-and-Enter pair and preserves other Plus bindings.
  • The compiler-selection fix does not remove or bypass the input fix.

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.

**Recommendation: 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 `@fix` changed** I changed this pull request: the new head is 9dc931e9f71d. I rebased it onto `main` (6acae6aa8752). I edited its description to match the change. **Changed** - **Compiler selection in tests/test_plus_binding.py:21**: Uses the suite’s compiler selection and command parsing, honoring CC and falling back to GCC or Clang. Tests were not run, as requested. 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) - **L2**: The reporter's actual Steam Desktop Layout path has not yet been exercised with this change. *When:* The recorded Linux run injects Enter directly, so it does not exercise the combined physical controller and Steam input path reported on Windows. **Do:** Run the requested Windows physical Xbox controller test with Steam's Desktop Layout, checking A, Tab and Start, and record the result. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - The pull request reports that its base is behind current main and that the full Windows build and real Steam input runs remain outstanding. - The current-head test suite and CI results are pending. - The stated base-to-head diff includes unrelated merged changes beyond the listed pull request files. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **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:** 9dc931e9f71d against 6acae6aa8752: 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:** - The compiler fix uses the shared command parser, honors the configured compiler and retains GCC and Clang fallbacks. - The migration changes the exact old Tab-and-Enter pair and preserves other Plus bindings. - The compiler-selection fix does not remove or bypass the input fix. **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. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean changed title from WIP: fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A to fix(input): Plus is Tab alone, not Enter, which controller software sends for a pad's A 2026-11-23 16:07:54 +00:00
HumanBean deleted branch issue1992-plus-tab 2026-11-23 16:08:27 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2200
No description provided.