fix(input): the touchpad opens the menu only when it is the Controller menu button (#2623) #3026

Merged
HumanBean merged 3 commits from cuecuemoar/Longshot:fix/touchpad-menu-button into main 2026-12-05 19:25:05 +00:00
Contributor

Summary

On a DualShock 4 or DualSense, clicking the touchpad opened the Insert menu whatever Controls → Controller menu
button
said: at None, and at the default Home too. With DS4Windows sending Share for the touchpad, the game's
map also opened behind the menu (#2623). The touchpad's click was wired to F1 in 8790b8f62, and that line was never tied
to the row.

How to see it on main: a DualShock 4 or DualSense, Controller menu button at None (or Home), click the touchpad in
play: the Insert menu opens.

This change:

  • gives the row a fifth choice, Touchpad (value 4; the saved key controller_menu_button is unchanged);
  • opens the menu from the touchpad's click (as F1, as before) only when the row is Touchpad. Under None, Home, GL and
    GR the click does nothing: the game has no touchpad, its bit is past the Switch's inputs (HOS_PAD_N);
  • keeps Home the default;
  • changes only a comment in gpu/vk/vk_api.h (no MkwVkHost or MkwVkRenderer change, so no API version bump);
  • updates the row's help (in English and the 13 menu languages), the user guide's controls table and the "menu won't
    open" entry of common issues.

Read first: game/crates/api/src/services/menu_input.rs (the Controller menu button handling) and game/mods/interface/mod.toml (the row's options and help). The
translations of "Touchpad" and the new help in game/mods/menu/strings/*.json are machine-written: a native speaker's
look is welcome.

Fixes #2623

Testing

Tested:

Head 10f940cee (test 15290398c, fix 328b7e1b1, docs 10f940cee from BeanBot's f15b79968) on main 4e16bf06a; the docs commit changes no code, so the runs below on 328b7e1b1 hold for it. Main's #3208 moved the menu's input from
gpu/vk/vk_menu.cpp into game/crates/api/src/services/menu_input.rs, so the fix and its test were redone there (the
earlier head is kept as 38126ab04): the touchpad's always-on term is out of toggle, and the row's value 4 is the
touchpad. The row, its 13 translations and the docs are the earlier head's; vk_api.h and pad_sdl.c change in
comments only.

  • In the game, by hand, on Windows 10, RTX 4090, an Xbox-style controller (a PowerA wired pad): a runtime of 328b7e1b1
    built over the shared base (018dd2ef40), the player's own save. At Home, the Xbox button opens and closes the menu.
    GL and GR were not testable: this pad's back buttons repeat another button and are not paddles of their own.
  • Game-free tests (WSL Ubuntu 22.04): on the test commit 15290398c, cargo test -p api fails at "the touchpad opens
    nothing with the row at 0", and tests/test_touchpad_menu.py fails on main's four choices; both pass on the head.
    The Rust test also covers rows 1, 2, 3, 5 and -1, Home left to the game at row 4, and a click held while the row
    changes waiting for the next click.
  • Linux (WSL Ubuntu 22.04), 328b7e1b1 against main 4e16bf06a: scripts/check_host_compile.py passes for Linux and
    Windows (llvm-mingw). The whole suite, strict: 878 passed, 55 failed, 13 skipped on both sides, the same files
    failing; none fails only here. The generated-files check fails the same way on main (ffi-gen flags
    rx_menu_open in host/game_host.h, which this PR does not touch).
  • Not run here: game/mods/menu/test/*.test.ts (no TypeScript toolchain on this PC). CI runs them.
  • Earlier, on the C++ heads (4a88a93a5, ddb3c7a5b): the same hand test, settings.toml saving "touchpad", and a
    cold review by a second agent.

Still to test:

  • Windows or Linux, a DualSense or DualShock 4: in play, the Controller menu button at None, then Home, click the
    touchpad, expecting the menu not to open. At Touchpad, expecting the click to open and close it. (@Beanstalk, or
    by hand)

Measurements

Nothing to measure: the touchpad uses the existing Controller menu button handling, with no rendering, loading or cache path.

Risks

  • A change for PlayStation pad players: since 2026-11-10 the touchpad opened the menu under every choice. After
    updating, at the default Home it no longer does. The PS button (Home) and Select + Start still open the menu, and
    choosing Touchpad brings the click back. Where Steam Input or the OS keeps the PS button for itself, Select + Start
    or the Touchpad choice is the controller's way in.
  • With Touchpad opens Map and Pause (#3044, Off by default) also on, the touchpad's click goes to Map and Pause,
    not to the menu, whatever the Controller menu button says: that setting's help already says so.
  • settings.toml saves the choice by its label ("touchpad"); an older build reads it as an unknown value and uses the default, Home.
  • A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (On main 4e16bf06a.)
  • 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). (Strict suite on Linux: the same files fail on
    main there; none only here.)
  • 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. (menu_input tests and test_touchpad_menu.py.)
  • A check under tests/ that reads changed source is updated, not weakened. (test_touchpad_menu.py now checks
    the row's fifth choice in mod.toml; the behaviour is in the Rust test.)
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Screenshots of the same spot on main and here, for a change that shows on screen. (The Controls tab, main
    against this PR, taken on the old base: #3026 (comment);
    the row on the ported head was checked by hand, above.)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VxeaZjzGBuxjs65EH79tes

## Summary On a DualShock 4 or DualSense, clicking the touchpad opened the Insert menu whatever **Controls → Controller menu button** said: at **None**, and at the default **Home** too. With DS4Windows sending Share for the touchpad, the game's map also opened behind the menu (#2623). The touchpad's click was wired to F1 in 8790b8f62, and that line was never tied to the row. How to see it on `main`: a DualShock 4 or DualSense, Controller menu button at None (or Home), click the touchpad in play: the Insert menu opens. This change: - gives the row a fifth choice, **Touchpad** (value 4; the saved key `controller_menu_button` is unchanged); - opens the menu from the touchpad's click (as F1, as before) only when the row is Touchpad. Under None, Home, GL and GR the click does nothing: the game has no touchpad, its bit is past the Switch's inputs (`HOS_PAD_N`); - keeps **Home** the default; - changes only a comment in `gpu/vk/vk_api.h` (no `MkwVkHost` or `MkwVkRenderer` change, so no API version bump); - updates the row's help (in English and the 13 menu languages), the user guide's controls table and the "menu won't open" entry of common issues. Read first: `game/crates/api/src/services/menu_input.rs` (the Controller menu button handling) and `game/mods/interface/mod.toml` (the row's options and help). The translations of "Touchpad" and the new help in `game/mods/menu/strings/*.json` are machine-written: a native speaker's look is welcome. Fixes #2623 ## Testing **Tested:** Head 10f940cee (test 15290398c, fix 328b7e1b1, docs 10f940cee from BeanBot's f15b79968) on `main` 4e16bf06a; the docs commit changes no code, so the runs below on 328b7e1b1 hold for it. Main's #3208 moved the menu's input from `gpu/vk/vk_menu.cpp` into `game/crates/api/src/services/menu_input.rs`, so the fix and its test were redone there (the earlier head is kept as 38126ab04): the touchpad's always-on term is out of `toggle`, and the row's value 4 is the touchpad. The row, its 13 translations and the docs are the earlier head's; `vk_api.h` and `pad_sdl.c` change in comments only. - In the game, by hand, on Windows 10, RTX 4090, an Xbox-style controller (a PowerA wired pad): a runtime of 328b7e1b1 built over the shared base (018dd2ef405b), the player's own save. At Home, the Xbox button opens and closes the menu. GL and GR were not testable: this pad's back buttons repeat another button and are not paddles of their own. - Game-free tests (WSL Ubuntu 22.04): on the test commit 15290398c, `cargo test -p api` fails at "the touchpad opens nothing with the row at 0", and `tests/test_touchpad_menu.py` fails on main's four choices; both pass on the head. The Rust test also covers rows 1, 2, 3, 5 and -1, Home left to the game at row 4, and a click held while the row changes waiting for the next click. - Linux (WSL Ubuntu 22.04), 328b7e1b1 against `main` 4e16bf06a: `scripts/check_host_compile.py` passes for Linux and Windows (llvm-mingw). The whole suite, strict: 878 passed, 55 failed, 13 skipped on both sides, the same files failing; none fails only here. The generated-files check fails the same way on `main` (`ffi-gen` flags `rx_menu_open` in `host/game_host.h`, which this PR does not touch). - Not run here: `game/mods/menu/test/*.test.ts` (no TypeScript toolchain on this PC). CI runs them. - Earlier, on the C++ heads (4a88a93a5, ddb3c7a5b): the same hand test, `settings.toml` saving `"touchpad"`, and a cold review by a second agent. **Still to test:** - Windows or Linux, a DualSense or DualShock 4: in play, the Controller menu button at None, then Home, click the touchpad, expecting the menu not to open. At Touchpad, expecting the click to open and close it. (@Beanstalk, or by hand) ## Measurements Nothing to measure: the touchpad uses the existing Controller menu button handling, with no rendering, loading or cache path. ## Risks - **A change for PlayStation pad players:** since 2026-11-10 the touchpad opened the menu under every choice. After updating, at the default Home it no longer does. The PS button (Home) and Select + Start still open the menu, and choosing Touchpad brings the click back. Where Steam Input or the OS keeps the PS button for itself, Select + Start or the Touchpad choice is the controller's way in. - With **Touchpad opens Map and Pause** (#3044, Off by default) also on, the touchpad's click goes to Map and Pause, not to the menu, whatever the Controller menu button says: that setting's help already says so. - `settings.toml` saves the choice by its label (`"touchpad"`); an older build reads it as an unknown value and uses the default, Home. - A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. (On `main` 4e16bf06a.) - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). (Strict suite on Linux: the same files fail on `main` there; none only here.) - [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 - [x] A fix: a game-free test that fails on `main` and passes here. (`menu_input` tests and `test_touchpad_menu.py`.) - [x] A check under `tests/` that reads changed source is updated, not weakened. (`test_touchpad_menu.py` now checks the row's fifth choice in `mod.toml`; the behaviour is in the Rust test.) - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. (The Controls tab, main against this PR, taken on the old base: https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3026#issuecomment-97798; the row on the ported head was checked by hand, above.) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VxeaZjzGBuxjs65EH79tes
menu_tick's controller presses, cut from gpu/vk/vk_menu.cpp, are compiled with stand-ins and given one new
button at a time under each Controller menu button choice. On main the touchpad's click presses F1 under every
choice, None and Home included, so the first check fails: a DualSense or DS4 player with the row at None still
opens the menu (and the game's map, when DS4Windows sends Share too) from the touchpad.

Also checks that the row offers Touchpad (tx_pad_menu's names, .hi = 4). The text pin of the touchpad's F1 line
gives way to the behaviour check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VxeaZm1jXb5tjaKpjVUPza
fix(input): the touchpad opens the menu only when it is the Controller menu button (#2623)
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
ec6e5730e5
A DualShock 4's or DualSense's touchpad click pressed F1 under every Controller menu button choice (8790b8f62
came before the row and was never tied to it), so with the row at None, or at Home, the touchpad still opened
the Insert menu, and with DS4Windows sending Share for it the game's map opened behind it.

The row gains a fifth choice, Touchpad (value 4; the ini key controller_menu_button is unchanged). The touchpad's
click is F1, as before, only when it is chosen; under None, Home, GL and GR it does nothing (the game has no
touchpad: its bit is past the Switch's inputs, HOS_PAD_N). Home stays the
default, so a PlayStation pad opens the menu with its PS button, or the touchpad after choosing it. The row's help,
the user guide's controls table and the menu entry of common issues say so. The Graphics guide image's source review records the four
changed menu inputs (source-review-2623.md): nothing on the pictured page changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VxeaZm1jXb5tjaKpjVUPza
Author
Contributor

Tested in game: Windows 10, RTX 4090, Xbox-style pad, by hand: the Controller menu button row lists Touchpad; at Home the Xbox button opens and closes the menu, at Touchpad and None it does nothing

Tested in game: Windows 10, RTX 4090, Xbox-style pad, by hand: the Controller menu button row lists Touchpad; at Home the Xbox button opens and closes the menu, at Touchpad and None it does nothing
Author
Contributor

@Beanstalk on a DualSense or DualShock 4 (Windows or Linux): in play, set Controls → Controller menu button to None, then Home, and click the touchpad: the Insert menu should not open. Then set it to Touchpad: the click should open the menu and close it again.

@Beanstalk on a DualSense or DualShock 4 (Windows or Linux): in play, set Controls → Controller menu button to None, then Home, and click the touchpad: the Insert menu should not open. Then set it to Touchpad: the click should open the menu and close it again.
Member

@cuecuemoar 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 ec6e573, and the PR has changed since (4a88a93), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@cuecuemoar 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 `ec6e573`, and the PR has changed since (`4a88a93`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Member

Possibly related, for context:

  • issue #1197 Idea: Allow remapping the DualSense touchpad click — Related request for a remappable touchpad click; PR makes it an explicit menu-button choice
  • issue #1472 Idea: Remap the controller shortcut for opening the menu — Related request to remap the controller shortcut; PR adds selectable controller menu-button choices
Possibly related, for context: - issue #1197 Idea: Allow remapping the DualSense touchpad click — Related request for a remappable touchpad click; PR makes it an explicit menu-button choice - issue #1472 Idea: Remap the controller shortcut for opening the menu — Related request to remap the controller shortcut; PR adds selectable controller menu-button choices
Author
Contributor

Screenshots of the same spot, the Controls tab of the Insert menu, by hand on Windows 10 with an RTX 4090. Before: main (rt-s2721m, 468bb8d2), where Controller menu button offers None / Home / GL / GR. After: this PR (rt-s2623p, ddb3c7a5b), where the row is at the new Touchpad choice and its help names the touchpad's click.

before.png

after.png

Screenshots of the same spot, the Controls tab of the Insert menu, by hand on Windows 10 with an RTX 4090. Before: main (rt-s2721m, 468bb8d2), where Controller menu button offers None / Home / GL / GR. After: this PR (rt-s2623p, ddb3c7a5b), where the row is at the new Touchpad choice and its help names the touchpad's click. ![before.png](https://git.magicbean.dev/attachments/03e8900c-172d-42c7-8b90-939fc6285bae) ![after.png](https://git.magicbean.dev/attachments/9e1dc20d-e719-47b3-9657-0eb74ffd359a)
Author
Contributor

Screenshots box ticked: main against this PR, the Controls tab (comment above).

Screenshots box ticked: main against this PR, the Controls tab (comment above).
cuecuemoar changed title from WIP: fix(input): the touchpad opens the menu only when it is the Controller menu button (#2623) to fix(input): the touchpad opens the menu only when it is the Controller menu button (#2623) 2026-12-02 19:41:38 +00:00
cuecuemoar force-pushed fix/touchpad-menu-button from ec6e5730e5
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 4a88a93a5c
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 20:26:39 +00:00
Compare
Author
Contributor

Rebased onto main a98cf28a2 (head 4a88a93a5, still two commits: the test, then the fix). Main's mod API merge (d984fd704) moved the Controller menu button row out of C++, so the fix was ported, not just merged:

  • the row's fifth choice and its new help are in game/mods/interface/mod.toml; "Touchpad" and the help are added to the 13 menu languages in game/mods/menu/strings/ (machine-written translations: a native speaker's look is welcome);
  • vk_menu.cpp gates the touchpad line on settings_now().controller_menu_button == 4; menu_settings.cpp and vk_menu.h are no longer touched (the row and pad_menu left them);
  • the guide's manifest.json change and source-review-2623.md are dropped: main no longer keeps source reviews;
  • tests/test_touchpad_menu.py is rewritten for main's code: fails on a98cf28a2 at opens(NONE, HOS_PAD_TOUCHPAD), passes here.

Run again on the new head: in the game by hand (Xbox-style pad, Windows 10, RTX 4090), the Linux build and the strict suite against main (identical, 45 files fail on both). Details in Testing. The DualSense run is still to do.

Rebased onto `main` a98cf28a2 (head 4a88a93a5, still two commits: the test, then the fix). Main's mod API merge (d984fd704) moved the Controller menu button row out of C++, so the fix was ported, not just merged: - the row's fifth choice and its new help are in `game/mods/interface/mod.toml`; "Touchpad" and the help are added to the 13 menu languages in `game/mods/menu/strings/` (machine-written translations: a native speaker's look is welcome); - `vk_menu.cpp` gates the touchpad line on `settings_now().controller_menu_button == 4`; `menu_settings.cpp` and `vk_menu.h` are no longer touched (the row and `pad_menu` left them); - the guide's `manifest.json` change and `source-review-2623.md` are dropped: main no longer keeps source reviews; - `tests/test_touchpad_menu.py` is rewritten for main's code: fails on a98cf28a2 at `opens(NONE, HOS_PAD_TOUCHPAD)`, passes here. Run again on the new head: in the game by hand (Xbox-style pad, Windows 10, RTX 4090), the Linux build and the strict suite against main (identical, 45 files fail on both). Details in Testing. The DualSense run is still to do.
Author
Contributor

@Beanstalk on a DualSense or DualShock 4 (Windows or Linux), on 4a88a93a5: in play, set Controls → Controller menu button to None, then Home, and click the touchpad: the Insert menu should not open. Then set it to Touchpad: the click should open the menu and close it again.

@Beanstalk on a DualSense or DualShock 4 (Windows or Linux), on 4a88a93a5: in play, set Controls → Controller menu button to None, then Home, and click the touchpad: the Insert menu should not open. Then set it to Touchpad: the click should open the menu and close it again.
Member

@cuecuemoar 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 4a88a93, and the PR has changed since (38126ab), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@cuecuemoar 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 `4a88a93`, and the PR has changed since (`38126ab`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
cuecuemoar force-pushed fix/touchpad-menu-button from 4a88a93a5c
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 38126ab04e
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-04 20:24:47 +00:00
Compare
Author
Contributor

Rebased onto main 5dffd615b: head 38126ab04 (test bc48972ba, fix 38126ab04, still two commits). One conflict, the controls table in docs/user/graphics-and-controls.md (main's six new rows kept). git range-diff: the game-run code and the test are unchanged, so the hand test on 4a88a93a5 stands. Linux: compile check (Linux, Windows) passes; strict suite 840/53/13 on head and main, the same 53 files. Risks now names #3044's Touchpad opens Map and Pause, which takes the click when on. The DualSense farm request (comment 100716) still waits on a BigBean.

Rebased onto main 5dffd615b: head 38126ab04 (test bc48972ba, fix 38126ab04, still two commits). One conflict, the controls table in docs/user/graphics-and-controls.md (main's six new rows kept). git range-diff: the game-run code and the test are unchanged, so the hand test on 4a88a93a5 stands. Linux: compile check (Linux, Windows) passes; strict suite 840/53/13 on head and main, the same 53 files. Risks now names #3044's Touchpad opens Map and Pause, which takes the click when on. The DualSense farm request (comment 100716) still waits on a BigBean.
Author
Contributor

@Beanstalk on a DualSense or DualShock 4 (Windows or Linux), on 38126ab04 (rebased; same game code): in play, set Controls → Controller menu button to None, then Home, and click the touchpad: the Insert menu should not open. Then set it to Touchpad: the click should open the menu and close it again. Touchpad opens Map and Pause stays Off.

@Beanstalk on a DualSense or DualShock 4 (Windows or Linux), on 38126ab04 (rebased; same game code): in play, set Controls → Controller menu button to None, then Home, and click the touchpad: the Insert menu should not open. Then set it to Touchpad: the click should open the menu and close it again. Touchpad opens Map and Pause stays Off.
Member

@cuecuemoar 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 38126ab, and the PR has changed since (dca1fdf), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@cuecuemoar 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 `38126ab`, and the PR has changed since (`dca1fdf`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Owner
@rebase
Member

I rebased this pull request onto main (4007f6eae4): the new head is dca1fdfc66.

Conflicts resolved

  • tests/test_touchpad_menu.py: Kept the SDL button checks and the Touchpad settings-row check; adapted the description to the moved menu code.
  • game/crates/api/src/services/menu_input/tests.rs: Carried the controller-choice behavior checks to the Rust menu tests, preserving the existing chord and toggle checks. Tests were not run.
  • Also changed, beyond the conflict: game/crates/api/src/services/menu_input/tests.rs
  • docs/dev/reference/input.md: Clarified when a click with no readable finger position opens the menu.
  • docs/user/common-issues.md: Added the requirement to turn off Touchpad opens Map and Pause.
  • Also changed, beyond the conflict: docs/dev/reference/input.md, docs/user/common-issues.md, game/crates/api/src/services/menu_input.rs

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I rebased this pull request onto `main` (4007f6eae45b): the new head is dca1fdfc669e. **Conflicts resolved** - tests/test_touchpad_menu.py: Kept the SDL button checks and the Touchpad settings-row check; adapted the description to the moved menu code. - game/crates/api/src/services/menu_input/tests.rs: Carried the controller-choice behavior checks to the Rust menu tests, preserving the existing chord and toggle checks. Tests were not run. - Also changed, beyond the conflict: `game/crates/api/src/services/menu_input/tests.rs` - docs/dev/reference/input.md: Clarified when a click with no readable finger position opens the menu. - docs/user/common-issues.md: Added the requirement to turn off Touchpad opens Map and Pause. - Also changed, beyond the conflict: `docs/dev/reference/input.md`, `docs/user/common-issues.md`, `game/crates/api/src/services/menu_input.rs` Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed fix/touchpad-menu-button from 38126ab04e
Some checks failed
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to dca1fdfc66
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 18:07:21 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The new choice and Rust input logic address the reported behavior, but the rebased implementation has not been tested with a DualShock 4 or DualSense. The pull request also describes an older implementation and test, so its evidence needs updating. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The controller menu setting gains a Touchpad choice; at the default Home and the other choices, the touchpad click no longer independently toggles the Insert menu. This makes the setting consistent at the cost of changing the previous shortcut for PlayStation controller users.

Should fix (1): not blocking, but worth doing before merging.

  • L2: The description identifies the old C++ menu handler and claims the Python test compiles and exercises its controller-press lines. When: At this head the handler is in menu_input.rs, and the Python test compiles the SDL polling block and checks the option list; the menu behavior assertions are Rust tests. Do: Update the files to read, implementation summary and testing claims for this head, distinguishing the earlier runs from checks of the rebased Rust code.

Nits (1): optional.

  • L3 tests/test_touchpad_menu.py:94: The test reports that the touchpad opens the menu even though it does not exercise the menu handler. (more on the line) Do: Make the success message describe the option-list check, leaving the behavioral claim to the Rust test.

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)

  • L1 game/crates/api/src/services/menu_input.rs:554: The affected controller path has not been exercised in the game on the rebased implementation. (more on the line) Do: Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off.

@fix can do L2 and L3.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven on the affected hardware. The reported Xbox-controller run checked the row and Home behavior on an earlier implementation; no PlayStation touchpad run is reported for this implementation.

Other systems: The input path is shared across Windows and Linux and does not depend on the GPU. With Touchpad opens Map and Pause enabled, the host consumes clicks whose finger position it can read; an unreadable position remains available to the menu. The saved choice and older-build compatibility were not verified in this review.

Switches: No environment switches added, changed or removed. The player-facing Controller menu button gains Touchpad; Home remains the default.

Reviewed: dca1fdfc66 against 4007f6eae4: Read the repository rules, standards and pull request template; the changed Rust input logic and its tests, the controller settings row, the Python test, the relevant host input path, and the changed documentation and header excerpts. Skimmed the translation diffs and screenshot maintenance rules. The full host C file, header, documentation files and translation files were not read in full; the adjacent Tooling checkout and docs/review-checklist.md were absent.; nothing run (a code review).

Checked and fine:

  • The Rust test covers the touchpad under all five choices and checks opening, holding and closing.
  • The settings option order matches the Rust value mapping, and the existing Home default is retained.
  • The API header change is a comment only, so it does not require an interface version bump.
  • Both commits contain AI co-author trailers; the diff contains no generated binaries or game-derived files.

Testing: No commands that build, run tests or execute project scripts were run. CI is still running; the supplied reports describe earlier-head runs.

Overlaps and merge order: The description identifies Touchpad opens Map and Pause (#3044) as an interacting feature; its merge status was not available in the supplied context.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The new choice and Rust input logic address the reported behavior, but the rebased implementation has not been tested with a DualShock 4 or DualSense. The pull request also describes an older implementation and test, so its evidence needs updating. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The controller menu setting gains a Touchpad choice; at the default Home and the other choices, the touchpad click no longer independently toggles the Insert menu. This makes the setting consistent at the cost of changing the previous shortcut for PlayStation controller users. **Should fix (1)**: not blocking, but worth doing before merging. - **L2**: The description identifies the old C++ menu handler and claims the Python test compiles and exercises its controller-press lines. *When:* At this head the handler is in menu_input.rs, and the Python test compiles the SDL polling block and checks the option list; the menu behavior assertions are Rust tests. **Do:** Update the files to read, implementation summary and testing claims for this head, distinguishing the earlier runs from checks of the rebased Rust code. **Nits (1)**: optional. - **L3** `tests/test_touchpad_menu.py:94`: The test reports that the touchpad opens the menu even though it does not exercise the menu handler. (more on the line) **Do:** Make the success message describe the option-list check, leaving the behavioral claim to the Rust test. **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) - **L1** `game/crates/api/src/services/menu_input.rs:554`: The affected controller path has not been exercised in the game on the rebased implementation. (more on the line) **Do:** Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off. `@fix` can do L2 and L3. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the affected hardware. The reported Xbox-controller run checked the row and Home behavior on an earlier implementation; no PlayStation touchpad run is reported for this implementation. **Other systems:** The input path is shared across Windows and Linux and does not depend on the GPU. With Touchpad opens Map and Pause enabled, the host consumes clicks whose finger position it can read; an unreadable position remains available to the menu. The saved choice and older-build compatibility were not verified in this review. **Switches:** No environment switches added, changed or removed. The player-facing Controller menu button gains Touchpad; Home remains the default. **Reviewed:** dca1fdfc669e against 4007f6eae45b: Read the repository rules, standards and pull request template; the changed Rust input logic and its tests, the controller settings row, the Python test, the relevant host input path, and the changed documentation and header excerpts. Skimmed the translation diffs and screenshot maintenance rules. The full host C file, header, documentation files and translation files were not read in full; the adjacent Tooling checkout and docs/review-checklist.md were absent.; nothing run (a code review). **Checked and fine:** - The Rust test covers the touchpad under all five choices and checks opening, holding and closing. - The settings option order matches the Rust value mapping, and the existing Home default is retained. - The API header change is a comment only, so it does not require an interface version bump. - Both commits contain AI co-author trailers; the diff contains no generated binaries or game-derived files. **Testing:** No commands that build, run tests or execute project scripts were run. CI is still running; the supplied reports describe earlier-head runs. **Overlaps and merge order:** The description identifies Touchpad opens Map and Pause (#3044) as an interacting feature; its merge status was not available in the supplied context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
@ -551,9 +551,10 @@ impl Menu {
1 => Some(pad::GUIDE),
2 => Some(pad::LPADDLE1),
3 => Some(pad::RPADDLE1),
4 => Some(pad::TOUCHPAD),
Member

L1 (should fix): The affected controller path has not been exercised in the game on the rebased implementation.

When: A DualShock 4 or DualSense click must travel through SDL polling, the settings snapshot and the Rust menu handler; the reported Xbox run cannot exercise that path.

Do: Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off.

**L1** (should fix): The affected controller path has not been exercised in the game on the rebased implementation. *When:* A DualShock 4 or DualSense click must travel through SDL polling, the settings snapshot and the Rust menu handler; the reported Xbox run cannot exercise that path. **Do:** Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off.
@ -91,1 +91,4 @@
if choices != ["None", "Home", "Back left (GL)", "Back right (GR)", "Touchpad"]:
raise SystemExit("FAIL: mod.toml: Controller menu button does not offer Touchpad as its fifth choice")
print("PASS: a DualShock 4 / DualSense touchpad click opens the menu as F1, when Controller menu button is Touchpad")
Member

L3 (nit): The test reports that the touchpad opens the menu even though it does not exercise the menu handler.

When: If the Rust toggle logic is reverted while the SDL polling and option list remain intact, this Python test still prints that the touchpad opens the menu under the Touchpad choice.

Do: Make the success message describe the option-list check, leaving the behavioral claim to the Rust test.

**L3** (nit): The test reports that the touchpad opens the menu even though it does not exercise the menu handler. *When:* If the Rust toggle logic is reverted while the SDL polling and option list remain intact, this Python test still prints that the touchpad opens the menu under the Touchpad choice. **Do:** Make the success message describe the option-list check, leaving the behavioral claim to the Rust test.
Owner
@fix
BeanBot force-pushed fix/touchpad-menu-button from dca1fdfc66
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to f15b799689
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 18:45:17 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The menu now selects the touchpad only for the Touchpad choice, but the affected physical controller path has not been exercised in the game. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is f15b799689. I rebased it onto main (14f452f810). I edited its description to match the change.

Changed

  • Option-list success message in tests/test_touchpad_menu.py:93: Changed the message to report that Touchpad is the fifth option, without claiming menu behavior. No tests were run, as requested.

Nothing was built or run: the checks run again on the new head.

The change adds Touchpad as a controller menu button choice and stops its click from opening the menu under the other choices. Players who previously relied on the touchpad at the default Home setting must select Touchpad.

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)

  • L1 game/crates/api/src/services/menu_input.rs:554: The affected controller path has not been exercised in the game on the rebased implementation. When: A DualShock 4 or DualSense click must travel through SDL polling, the settings snapshot and the Rust menu handler; the reported Xbox run cannot exercise that path. Do: Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off.

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

More: does it help, other systems, switches, what was read

Does it help: Unproven: the earlier implementation passed a reported game-free test, but the current implementation has no reported DualShock 4 or DualSense game run and its current tests are pending.

Other systems: The SDL input path is shared by Windows and Linux. The Xbox-style controller run exercised Home and the new choice but could not exercise a PlayStation touchpad. The separate Touchpad opens Map and Pause setting can consume the click.

Switches: No switch added or changed by the touchpad fix. The Controller menu button setting adds Touchpad as choice 4 and retains Home as its default.

Reviewed: f15b799689 against 14f452f810: Read AGENTS.md, CONTRIBUTING.md, the pull request template, tests/test_touchpad_menu.py and the menu input Rust tests in full. Reviewed the touchpad-related diff, menu input and SDL handling, and the description; skimmed standards and translation changes. The full base-to-HEAD diff includes other changes that were not reviewed in full.; nothing run (a code review).

Checked and fine:

  • The changed success message accurately reports the option-list check.
  • The Rust handler maps choice 4 to the touchpad and no longer toggles unconditionally for its bit.
  • The Rust tests cover touchpad presses under each choice and opening and closing under Touchpad.

Testing: No commands that build or run tests were executed. The description reports earlier Xbox controller and game-free runs; current tests and the PlayStation controller game run are pending, and CI has not run on this head.

Overlaps and merge order: None found.


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). The menu now selects the touchpad only for the Touchpad choice, but the affected physical controller path has not been exercised in the game. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is f15b79968901. I rebased it onto `main` (14f452f810a3). I edited its description to match the change. **Changed** - **Option-list success message in tests/test_touchpad_menu.py:93**: Changed the message to report that Touchpad is the fifth option, without claiming menu behavior. No tests were run, as requested. Nothing was built or run: the checks run again on the new head. The change adds Touchpad as a controller menu button choice and stops its click from opening the menu under the other choices. Players who previously relied on the touchpad at the default Home setting must select Touchpad. **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) - **L1** `game/crates/api/src/services/menu_input.rs:554`: The affected controller path has not been exercised in the game on the rebased implementation. *When:* A DualShock 4 or DualSense click must travel through SDL polling, the settings snapshot and the Rust menu handler; the reported Xbox run cannot exercise that path. **Do:** Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the earlier implementation passed a reported game-free test, but the current implementation has no reported DualShock 4 or DualSense game run and its current tests are pending. **Other systems:** The SDL input path is shared by Windows and Linux. The Xbox-style controller run exercised Home and the new choice but could not exercise a PlayStation touchpad. The separate Touchpad opens Map and Pause setting can consume the click. **Switches:** No switch added or changed by the touchpad fix. The Controller menu button setting adds Touchpad as choice 4 and retains Home as its default. **Reviewed:** f15b79968901 against 14f452f810a3: Read AGENTS.md, CONTRIBUTING.md, the pull request template, tests/test_touchpad_menu.py and the menu input Rust tests in full. Reviewed the touchpad-related diff, menu input and SDL handling, and the description; skimmed standards and translation changes. The full base-to-HEAD diff includes other changes that were not reviewed in full.; nothing run (a code review). **Checked and fine:** - The changed success message accurately reports the option-list check. - The Rust handler maps choice 4 to the touchpad and no longer toggles unconditionally for its bit. - The Rust tests cover touchpad presses under each choice and opening and closing under Touchpad. **Testing:** No commands that build or run tests were executed. The description reports earlier Xbox controller and game-free runs; current tests and the PlayStation controller game run are pending, and CI has not run on this head. **Overlaps and merge order:** None found. </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>
cuecuemoar force-pushed fix/touchpad-menu-button from f15b799689
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 328b7e1b1c
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 19:16:21 +00:00
Compare
Author
Contributor

Redone on main 4e16bf06a: head 328b7e1b1 (test 15290398c, fix 328b7e1b1). Main's #3208 deleted gpu/vk/vk_menu.cpp and moved the menu's input into game/crates/api/src/services/menu_input.rs, where the touchpad still toggled the menu under every choice, so #2623 was still on main. The fix is now there: the touchpad's always-on term is out of toggle, and the row's value 4 is pad::TOUCHPAD. The test is a Rust test of menu_input (it fails on main at the row at 0, passes here); the row, its translations and the docs are unchanged from the earlier head (38126ab04).

Hand test on this head with an Xbox-style pad: Home opens and closes the menu. Linux: host compile passes for Linux and Windows; strict suite 878/55/13 on both sides, none failing only here. Details in Testing.

The touchpad itself still needs a DualSense or DualShock 4: the farm request above (DualSense or DualShock 4, Windows or Linux) stands, now for 328b7e1b1.

Redone on `main` 4e16bf06a: head 328b7e1b1 (test 15290398c, fix 328b7e1b1). Main's #3208 deleted `gpu/vk/vk_menu.cpp` and moved the menu's input into `game/crates/api/src/services/menu_input.rs`, where the touchpad still toggled the menu under every choice, so #2623 was still on `main`. The fix is now there: the touchpad's always-on term is out of `toggle`, and the row's value 4 is `pad::TOUCHPAD`. The test is a Rust test of `menu_input` (it fails on `main` at the row at 0, passes here); the row, its translations and the docs are unchanged from the earlier head (38126ab04). Hand test on this head with an Xbox-style pad: Home opens and closes the menu. Linux: host compile passes for Linux and Windows; strict suite 878/55/13 on both sides, none failing only here. Details in Testing. The touchpad itself still needs a DualSense or DualShock 4: the farm request above (DualSense or DualShock 4, Windows or Linux) stands, now for 328b7e1b1.
docs(input): a touchpad click with no finger read opens the menu only at Touchpad, and Map and Pause takes the click first (#2623)
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 7s
10f940cee4
From BeanBot's resolution in f15b79968 (asked for by HumanBean), which the port in 328b7e1b1 replaced.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VxeaZjzGBuxjs65EH79tes
Author
Contributor

@HumanBean my force-push at 19:16 replaced BeanBot's head f15b79968 (your @rebase and @fix): I had ported the fix to menu_input.rs locally from the earlier head and didn't see that BeanBot had done the same in the meantime. Sorry about that. I compared the two: the fix in menu_input.rs is the same line for line, and the Rust tests here cover the same cases plus rows 5 and -1 and a click held while the row changes. What I had lost were BeanBot's two doc lines (docs/dev/reference/input.md: a click with no finger read opens the menu only at Touchpad; docs/user/common-issues.md: turn off Touchpad opens Map and Pause). They're back in 10f940cee, pushed as a fast-forward. BeanBot's head is kept locally if you want it compared.

@HumanBean my force-push at 19:16 replaced BeanBot's head f15b79968 (your `@rebase` and `@fix`): I had ported the fix to `menu_input.rs` locally from the earlier head and didn't see that BeanBot had done the same in the meantime. Sorry about that. I compared the two: the fix in `menu_input.rs` is the same line for line, and the Rust tests here cover the same cases plus rows 5 and -1 and a click held while the row changes. What I had lost were BeanBot's two doc lines (`docs/dev/reference/input.md`: a click with no finger read opens the menu only at Touchpad; `docs/user/common-issues.md`: turn off Touchpad opens Map and Pause). They're back in 10f940cee, pushed as a fast-forward. BeanBot's head is kept locally if you want it compared.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The touchpad behavior still needs an in-game run with a DualSense or DualShock 4 on the current implementation. The reported Xbox controller run cannot exercise the affected input. Recommend approval; not approved on the forge.

The change makes the touchpad click open the menu only when Touchpad is selected as the controller menu button. It keeps Home as the default and adds a focused unit test; PlayStation controller users who relied on the old always-on behavior must select Touchpad.

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)

  • L1 game/crates/api/src/services/menu_input.rs:554: The affected controller path has not been exercised in the game on the rebased implementation. When: A DualShock 4 or DualSense click must travel through SDL polling, the settings snapshot and the Rust menu handler; the reported Xbox run cannot exercise that path. Do: Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off.

Since the last review (on f15b799689)
Still open: L1 (The affected controller path has not been exercised in the game on the rebased implementat…)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported Rust test passes on the fix and fails on the test commit, but the physical touchpad path has not been exercised in the game on this implementation.

Other systems: The SDL host supplies the touchpad bit on Windows and Linux; the menu input service consumes it. Map and Pause can consume a touchpad click before the menu sees it. The reported host compile checks cover both platforms, but there is no current physical PlayStation controller run.

Switches: Controller menu button gains Touchpad as value 4; Home remains the default. The existing saved key is unchanged. The default is consistent with the existing choice, subject to the outstanding controller run.

Reviewed: 10f940cee4 against 4e16bf06ab: Read the input change, its Rust and Python tests, the changed host and API comments, and available repository rules; inspected the supplied description, comments, CI and rebase comparison. The full changed host and API files, translations, generated files and remaining documentation were not read in full.; nothing run (a code review).

Checked and fine:

  • The selected value 4 maps to the touchpad bit, and the unconditional touchpad toggle was removed.
  • The Rust tests cover opening and closing, other row values, and a held click while the row changes.
  • The reported Linux and Windows host compile checks pass; the reported strict-suite failures also occur on the base.

Testing: No commands that execute project code were run during this review. The author reports passing game-free tests and an Xbox controller game run; the requested PlayStation controller run remains outstanding. CI is still running.

Overlaps and merge order: None identified.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The touchpad behavior still needs an in-game run with a DualSense or DualShock 4 on the current implementation. The reported Xbox controller run cannot exercise the affected input. Recommend approval; not approved on the forge. The change makes the touchpad click open the menu only when Touchpad is selected as the controller menu button. It keeps Home as the default and adds a focused unit test; PlayStation controller users who relied on the old always-on behavior must select Touchpad. **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) - **L1** `game/crates/api/src/services/menu_input.rs:554`: The affected controller path has not been exercised in the game on the rebased implementation. *When:* A DualShock 4 or DualSense click must travel through SDL polling, the settings snapshot and the Rust menu handler; the reported Xbox run cannot exercise that path. **Do:** Run the current head with a DualShock 4 or DualSense: check None and Home do not toggle the menu, Touchpad opens and closes it, and Map and Pause is off. **Since the last review** (on f15b79968901) Still open: L1 (The affected controller path has not been exercised in the game on the rebased implementat…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported Rust test passes on the fix and fails on the test commit, but the physical touchpad path has not been exercised in the game on this implementation. **Other systems:** The SDL host supplies the touchpad bit on Windows and Linux; the menu input service consumes it. Map and Pause can consume a touchpad click before the menu sees it. The reported host compile checks cover both platforms, but there is no current physical PlayStation controller run. **Switches:** Controller menu button gains Touchpad as value 4; Home remains the default. The existing saved key is unchanged. The default is consistent with the existing choice, subject to the outstanding controller run. **Reviewed:** 10f940cee447 against 4e16bf06ab7b: Read the input change, its Rust and Python tests, the changed host and API comments, and available repository rules; inspected the supplied description, comments, CI and rebase comparison. The full changed host and API files, translations, generated files and remaining documentation were not read in full.; nothing run (a code review). **Checked and fine:** - The selected value 4 maps to the touchpad bit, and the unconditional touchpad toggle was removed. - The Rust tests cover opening and closing, other row values, and a held click while the row changes. - The reported Linux and Windows host compile checks pass; the reported strict-suite failures also occur on the base. **Testing:** No commands that execute project code were run during this review. The author reports passing game-free tests and an Xbox controller game run; the requested PlayStation controller run remains outstanding. CI is still running. **Overlaps and merge order:** None identified. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/touchpad-menu-button 2026-12-05 19:25:06 +00:00
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 7s
Some workflows are waiting to be reviewed.
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!3026
No description provided.