feat(input): an Ocarina controls row, N64 / GameCube: A and the right stick play the notes (kingo's #1303) #3253

Merged
HumanBean merged 3 commits from llun/Longshot:feat/ocarina-controls into main 2026-12-05 17:03:14 +00:00
Member

Type: feat · Risk: low · Tested on: Windows 11, RTX 5080, Xbox controller · Needs: Linux with a real controller

Summary

Players who grew up on the N64 or GameCube play the ocarina with A and the C buttons (the C-stick on GameCube). On a PC controller that is A and the right stick, but in Longshot the notes are only on L, R, A, Y and X, and the five Ocarina note bindings take buttons, not stick directions. So songs that are muscle memory don't work. A player asked for this on Discord.

This adds a row to the Controls tab, Ocarina controls: Switch 2 (as now, the default) or N64 / GameCube. With N64 / GameCube:

  • A plays the low D; the right stick plays the other four notes the way the C buttons did: down F, right A, left B, up the high D.
  • While the ocarina waits for a note, the right stick plays notes and doesn't turn the camera. Once the ocarina is put away, it turns the camera again.
  • L, R, Y and X play no note (in song lessons too), so a stray press can't count. Ocarina note bindings you set yourself still play.
  • The staff's note icons show it: the low D as the icon of the button on A, the other four as arrows.

This is kingo's work from #1303 (closed as stale on 2026-12-04, after kingo didn't answer whether we could take it over), finished on current main. kingo's commits no longer apply: since then the note code moved behind game.h, the host reads settings from the game's snapshot, a menu row became a system mod's setting, and nx2/prompt_assets.py became build-assets' Rust. So the two commits here redo kingo's six, with Co-Authored-By: kingo. The design, the note mapping (checked by kingo against the game's song sheets: Saria's Song is R A Y, Zelda's Lullaby Y X A) and the icons are kingo's. The Linux test with a real controller is the one futondestroyer's farm review asked for on 1303.

Read first:

  • host/nn_hid.c: pad_right_stick_way (new), pads_read (the stick held from the camera while it plays notes), oc_notes and oc_pad_word (the N64 layout).
  • game/mods/controls/mod.toml: the ocarina_controls setting (an area mod's: the host reads HOS_SETTING(ocarina_controls, 0)).
  • builder/crates/build-assets/src/prompts/textures.rs and host/prompts.c texture_runs: each textures.bin entry's u16 is now its flags (a note as the Switch 2 plays it, or as N64 / GameCube plays it), and the host takes the ones the row chooses, at the start and when the row changes in play.

The right stick's four ways are input bits of their own past HOS_PAD_N (like the DualSense touchpad's), so no control can be bound to them. The row stays outside the prompts' BINDS, so game.h is unchanged.

Left for other pull requests (one topic each):

  • #297 (the note icons should follow the Ocarina note bindings): the same texture code, built on this PR's flags, but its own feature; a follow-up once this merges.
  • #3051 (a B binding for the ocarina): B isn't a note (it puts the ocarina away), and a new control row is a change to the bindings themselves (game/crates/binds, the Controls page), a different area.

Closes nothing; supersedes #1303.

Testing

Tested: Windows 11 Pro (26300), RTX 5080, driver 621.47, an Xbox controller, this branch over main 7bc53f841's base (dev.py rt, HOS_SYSTEM_MODS_DIR on). In the game, by hand, from the castle-gate save with the Fairy Ocarina and the songs given: with N64 / GameCube, Zelda's Lullaby played from the right stick (left, up, right, left, up, right) and the song was recognised ("You played Zelda's Lullaby!"), the staff showing the four arrows; with Switch 2, the songs played on Y, X and A as before. Then, in a second run with N64 / GameCube: the right stick held while the ocarina was out did not turn the camera, and once the ocarina was put away it turned the camera again. dev.py smoke: PASS (in play from kokiri-start, 900 frames, the menu opened).

The staff after Zelda's Lullaby on the right stick is in the first comment below.

Game-free:

  • tests/test_ocarina_notes.py: kingo's cases on main's code (each stick way plays its note, A the low D, L/R/Y/X nothing in a lesson too, bound note rows still play, the stick back to the camera on Switch 2 and once the ocarina is away), plus the stick's ways themselves (past half way, the main axis, Invert camera undone). Fails on main (no row), passes here.
  • tests/test_ocarina_note_icons.py (new): host/prompts.c's texture_runs over a textures.bin with flags, for both rows; that the start's file and the live writes follow the row. Fails on main, passes here.
  • build-assets: the_n64_notes_point_their_way_and_say_so_in_their_flags (new), and the keyboard note test counts the new layers.
  • The checks that cut the changed code pass on Windows and on Linux (WSL Ubuntu 24.04, gcc): test_ocarina_notes, test_ocarina_note_icons, test_pads_after_menu, test_xinput_thread, test_input_background, test_walk_key, test_stick_range, test_prompt_layouts_found.
  • mise run test's checks (run_all.py --jobs 12, Windows): 757 passed, 1 failed, run without the ones that fail on main and that this doesn't touch (not run: test_present_geometry_trace, test_present_image_free, test_present_held_image, test_present_acquire_ahead, test_dlssg, test_no_map_reload, test_sync_watch_event, test_turf_budget, test_ui_renderer, test_no_game_title). The one failure is test_lifter, by parts that fail on main 7bc53f841: host-sys's clippy (large_const_arrays, SETTINGS), build-assets' clippy (needless_range_loop and chunks_exact, both main's lines), api's a_walked_reshade_folder_counts_a_change_once_two_walks_agree, build-driver's the_repository_s_lock_and_the_table_agree, and modtool's the_menu_passes_its_tests (the developer page's PLACED; the controls tab with the new row passes before it). The rest of the Rust workspace, run on its own past those: 3413 tests passed; schema-gen --check and cargo fmt --all --check pass; build-assets' clippy finds nothing in the new code. mise run lint passes.

Still to test:

  • Linux, a real controller: Controls > Ocarina controls > N64 / GameCube, take out the ocarina, play Song of Time as right, A, down, right, A, down with the right stick and A. Expect the song to play, the camera to stay still while playing, L/R/Y/X to play no note, and the staff's notes to show A and arrows (by hand: the farm's bridge input can't move a physical stick, as futondestroyer's review on 1303 said; @Beanstalk for a Linux start-up smoke).
  • A DualSense or Switch Pro controller through SDL on Windows: the same, expecting the low D's icon to be that pad's button on A (by hand).
  • The keyboard face with N64 / GameCube: the low D shows the key on A, the other notes arrows (by hand).

Measurements

Verdict: nothing to measure: an input row, off (Switch 2) by default. The right stick is already read every 2 ms; this adds one compare to that read and none to the frame. The build's prompt files grow: each face's textures.bin gains the low D's icons and the four arrows (Xbox 4.44 MB to 4.62 MB, Switch 2.44 to 2.64 MB, keyboard 6.12 to 7.18 MB, one icon per key; main 7bc53f841's base against this build). Only the chosen icons are written into the game's file, as before.

Risks

What could break: with N64 / GameCube, the right stick during the ocarina (held from the camera, by design). With Switch 2 nothing changes: the stick's new input bits are read, but only the note code looks at them, and only with the row on. Note icons: textures.bin's entries carried a u16 0 before, so a build of before this reads as "no flags": every icon as now.

Turning it off: the row's Switch 2, or a revert.

After updating: one new line in settings.toml when the row is changed (ocarina_controls); the prompts' cached textures are written again once (their key now includes the row).

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • 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).
  • 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 check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the whole runtime; Linux: the changed functions, compiled by the checks above in WSL with gcc; the full Linux build is CI's)
  • Screenshots of the same spot on main and here, for a change that shows on screen. (Here only: on main, and with Switch 2, the staff shows the game's own note buttons, unchanged)
  • 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

**Type:** feat · **Risk:** low · **Tested on:** Windows 11, RTX 5080, Xbox controller · **Needs:** Linux with a real controller ## Summary Players who grew up on the N64 or GameCube play the ocarina with A and the C buttons (the C-stick on GameCube). On a PC controller that is A and the right stick, but in Longshot the notes are only on L, R, A, Y and X, and the five Ocarina note bindings take buttons, not stick directions. So songs that are muscle memory don't work. A player asked for this on Discord. This adds a row to the Controls tab, **Ocarina controls**: **Switch 2** (as now, the default) or **N64 / GameCube**. With N64 / GameCube: - A plays the low D; the right stick plays the other four notes the way the C buttons did: down F, right A, left B, up the high D. - While the ocarina waits for a note, the right stick plays notes and doesn't turn the camera. Once the ocarina is put away, it turns the camera again. - L, R, Y and X play no note (in song lessons too), so a stray press can't count. Ocarina note bindings you set yourself still play. - The staff's note icons show it: the low D as the icon of the button on A, the other four as arrows. This is **kingo's work** from https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/1303 (closed as stale on 2026-12-04, after kingo didn't answer whether we could take it over), finished on current `main`. kingo's commits no longer apply: since then the note code moved behind `game.h`, the host reads settings from the game's snapshot, a menu row became a system mod's setting, and `nx2/prompt_assets.py` became build-assets' Rust. So the two commits here redo kingo's six, with `Co-Authored-By: kingo`. The design, the note mapping (checked by kingo against the game's song sheets: Saria's Song is R A Y, Zelda's Lullaby Y X A) and the icons are kingo's. The Linux test with a real controller is the one futondestroyer's farm review asked for on 1303. Read first: - `host/nn_hid.c`: `pad_right_stick_way` (new), `pads_read` (the stick held from the camera while it plays notes), `oc_notes` and `oc_pad_word` (the N64 layout). - `game/mods/controls/mod.toml`: the `ocarina_controls` setting (an area mod's: the host reads `HOS_SETTING(ocarina_controls, 0)`). - `builder/crates/build-assets/src/prompts/textures.rs` and `host/prompts.c` `texture_runs`: each textures.bin entry's u16 is now its flags (a note as the Switch 2 plays it, or as N64 / GameCube plays it), and the host takes the ones the row chooses, at the start and when the row changes in play. The right stick's four ways are input bits of their own past `HOS_PAD_N` (like the DualSense touchpad's), so no control can be bound to them. The row stays outside the prompts' `BINDS`, so `game.h` is unchanged. Left for other pull requests (one topic each): - https://git.magicbean.dev/MagicBeanDev/Longshot/issues/297 (the note icons should follow the Ocarina note bindings): the same texture code, built on this PR's flags, but its own feature; a follow-up once this merges. - https://git.magicbean.dev/MagicBeanDev/Longshot/issues/3051 (a B binding for the ocarina): B isn't a note (it puts the ocarina away), and a new control row is a change to the bindings themselves (`game/crates/binds`, the Controls page), a different area. Closes nothing; supersedes https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/1303. ## Testing **Tested:** Windows 11 Pro (26300), RTX 5080, driver 621.47, an Xbox controller, this branch over main 7bc53f841's base (`dev.py rt`, `HOS_SYSTEM_MODS_DIR` on). In the game, by hand, from the castle-gate save with the Fairy Ocarina and the songs given: with **N64 / GameCube**, Zelda's Lullaby played from the right stick (left, up, right, left, up, right) and the song was recognised ("You played Zelda's Lullaby!"), the staff showing the four arrows; with **Switch 2**, the songs played on Y, X and A as before. Then, in a second run with N64 / GameCube: the right stick held while the ocarina was out did not turn the camera, and once the ocarina was put away it turned the camera again. `dev.py smoke`: PASS (in play from kokiri-start, 900 frames, the menu opened). The staff after Zelda's Lullaby on the right stick is in the first comment below. Game-free: - `tests/test_ocarina_notes.py`: kingo's cases on main's code (each stick way plays its note, A the low D, L/R/Y/X nothing in a lesson too, bound note rows still play, the stick back to the camera on Switch 2 and once the ocarina is away), plus the stick's ways themselves (past half way, the main axis, Invert camera undone). Fails on main (no row), passes here. - `tests/test_ocarina_note_icons.py` (new): host/prompts.c's `texture_runs` over a textures.bin with flags, for both rows; that the start's file and the live writes follow the row. Fails on main, passes here. - build-assets: `the_n64_notes_point_their_way_and_say_so_in_their_flags` (new), and the keyboard note test counts the new layers. - The checks that cut the changed code pass on Windows and on Linux (WSL Ubuntu 24.04, gcc): test_ocarina_notes, test_ocarina_note_icons, test_pads_after_menu, test_xinput_thread, test_input_background, test_walk_key, test_stick_range, test_prompt_layouts_found. - `mise run test`'s checks (`run_all.py --jobs 12`, Windows): 757 passed, 1 failed, run without the ones that fail on `main` and that this doesn't touch (not run: test_present_geometry_trace, test_present_image_free, test_present_held_image, test_present_acquire_ahead, test_dlssg, test_no_map_reload, test_sync_watch_event, test_turf_budget, test_ui_renderer, test_no_game_title). The one failure is test_lifter, by parts that fail on `main` 7bc53f841: host-sys's clippy (`large_const_arrays`, `SETTINGS`), build-assets' clippy (`needless_range_loop` and `chunks_exact`, both main's lines), api's `a_walked_reshade_folder_counts_a_change_once_two_walks_agree`, build-driver's `the_repository_s_lock_and_the_table_agree`, and modtool's `the_menu_passes_its_tests` (the developer page's PLACED; the controls tab with the new row passes before it). The rest of the Rust workspace, run on its own past those: 3413 tests passed; `schema-gen --check` and `cargo fmt --all --check` pass; build-assets' clippy finds nothing in the new code. `mise run lint` passes. **Still to test:** - Linux, a real controller: Controls > Ocarina controls > N64 / GameCube, take out the ocarina, play Song of Time as right, A, down, right, A, down with the right stick and A. Expect the song to play, the camera to stay still while playing, L/R/Y/X to play no note, and the staff's notes to show A and arrows (by hand: the farm's bridge input can't move a physical stick, as futondestroyer's review on 1303 said; @Beanstalk for a Linux start-up smoke). - A DualSense or Switch Pro controller through SDL on Windows: the same, expecting the low D's icon to be that pad's button on A (by hand). - The keyboard face with N64 / GameCube: the low D shows the key on A, the other notes arrows (by hand). ## Measurements **Verdict:** nothing to measure: an input row, off (Switch 2) by default. The right stick is already read every 2 ms; this adds one compare to that read and none to the frame. The build's prompt files grow: each face's textures.bin gains the low D's icons and the four arrows (Xbox 4.44 MB to 4.62 MB, Switch 2.44 to 2.64 MB, keyboard 6.12 to 7.18 MB, one icon per key; main 7bc53f841's base against this build). Only the chosen icons are written into the game's file, as before. ## Risks **What could break:** with N64 / GameCube, the right stick during the ocarina (held from the camera, by design). With Switch 2 nothing changes: the stick's new input bits are read, but only the note code looks at them, and only with the row on. Note icons: textures.bin's entries carried a u16 0 before, so a build of before this reads as "no flags": every icon as now. **Turning it off:** the row's Switch 2, or a revert. **After updating:** one new line in settings.toml when the row is changed (`ocarina_controls`); the prompts' cached textures are written again once (their key now includes the row). ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [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). - [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 check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the whole runtime; Linux: the changed functions, compiled by the checks above in WSL with gcc; the full Linux build is CI's) - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. (Here only: on `main`, and with Switch 2, the staff shows the game's own note buttons, unchanged) - [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)
kingo's #1303 (its first two commits), redone on current main: the
note code moved behind game.h (game_note_wait, game_note_kind), the
host reads settings from the game's snapshot (HOS_SETTING), and a menu
row is a system mod's setting now, so the commits no longer apply.

- system/controls' setting ocarina_controls (Controls tab, after Invert
  camera Y): Switch 2 (0, the default) or N64 / GameCube (1).
- host/nn_hid.c pads_read: the right stick pushed past half way, by
  its main axis, is an input of its own (HOS_PAD_RS_*, bits past
  HOS_PAD_N, so no control binds them), the Invert camera rows undone.
  While the stick plays notes the camera gets nothing from it.
- oc_notes: with N64 / GameCube the stick plays R (F) down, A right,
  Y (B) left, X (high D) up. oc_pad_word: the A button is the low D,
  L, R, Y and X play nothing, in song lessons too; bound note rows
  still play.
- tests/test_ocarina_notes.py: kingo's cases, and the stick's ways.

Co-Authored-By: kingo <[email protected]>
Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(input): the ocarina's notes show the N64 / GameCube layout: the A button's icon and four arrows
Some checks failed
beanstalk/approval can't be tested as asked: see the farm's comment
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
24dd5c43bf
kingo's #1303 (its last four commits: the icons, their arrows centred,
see-through white), redone on current main: nx2/prompt_assets.py is
build-assets' prompts/textures.rs now.

- build-assets: each textures.bin entry's u16 is its flags. The notes
  as the Switch 2 plays them are TEX_SWITCH_NOTE; new TEX_N64_NOTE
  layers draw the low D as the icon of whatever is on the A button
  (every face, the keyboard's too) and the other four notes as arrows
  on a disc (down, right, left, up), see-through white as the game's.
- host/prompts.c: texture_runs takes the entries the Ocarina controls
  row chooses; the start's file is keyed by the row, and a change of
  the row while the game runs writes the textures again. The row stays
  outside BINDS, so game.h's count is unchanged.
- The textures' recipe is version 2, so every build makes them again
  (their inputs alone would keep the old ones).
- tests/test_ocarina_note_icons.py: texture_runs over a textures.bin
  with flags, both rows; build-assets tests the arrows' ways.

Co-Authored-By: kingo <[email protected]>
Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11 Pro (26300), RTX 5080, driver 621.47, an Xbox controller, castle-gate save with the Fairy Ocarina and songs given: with Ocarina controls on N64 / GameCube, Zelda's Lullaby played from the right stick and recognised, the staff showing arrows, the camera still while playing; with Switch 2, the songs played on Y, X and A as before. dev.py smoke: PASS.

Tested in game: Windows 11 Pro (26300), RTX 5080, driver 621.47, an Xbox controller, castle-gate save with the Fairy Ocarina and songs given: with Ocarina controls on N64 / GameCube, Zelda's Lullaby played from the right stick and recognised, the staff showing arrows, the camera still while playing; with Switch 2, the songs played on Y, X and A as before. dev.py smoke: PASS.
Author
Member

Zelda's Lullaby played on the right stick with Ocarina controls on N64 / GameCube (Windows 11, RTX 5080, Xbox controller): the game recognised the song, and the staff shows the notes as arrows.

Zelda's Lullaby on the right stick: the staff's notes as arrows

A correction to the first comment: "the camera still while playing" was not checked by eye in this run. The code holds the stick from the camera during the note wait and the game-free test checks it; the in-game check is now in Still to test.

Zelda's Lullaby played on the right stick with Ocarina controls on N64 / GameCube (Windows 11, RTX 5080, Xbox controller): the game recognised the song, and the staff shows the notes as arrows. ![Zelda's Lullaby on the right stick: the staff's notes as arrows](https://git.magicbean.dev/attachments/20575293-1c07-44ac-88bf-9cfb12281474) A correction to the first comment: "the camera still while playing" was not checked by eye in this run. The code holds the stick from the camera during the note wait and the game-free test checks it; the in-game check is now in Still to test.
Member

Possibly related, for context:

  • issue #297 Idea: Ocarina Glyphs should match the separate ocarina controls. — Ocarina-note glyphs and texture handling overlap with this change; PR says follow-up.
  • issue #3051 Idea: Add a configurable B button for Ocarina notes — Related Ocarina input idea; PR explicitly distinguishes it as separate binding work.
  • PR #1303 WIP: feat(input): an Ocarina controls row, N64 / GameCube: A and the right stick play the notes — Earlier unmerged version of the same N64/GameCube controls feature; superseded by this PR.
Possibly related, for context: - issue #297 Idea: Ocarina Glyphs should match the separate ocarina controls. — Ocarina-note glyphs and texture handling overlap with this change; PR says follow-up. - issue #3051 Idea: Add a configurable B button for Ocarina notes — Related Ocarina input idea; PR explicitly distinguishes it as separate binding work. - PR #1303 WIP: feat(input): an Ocarina controls row, N64 / GameCube: A and the right stick play the notes — Earlier unmerged version of the same N64/GameCube controls feature; superseded by this PR.
Author
Member

@Beanstalk linux, a tester with a physical controller: F1 > Controls > Ocarina controls > N64 / GameCube, take out the ocarina and play Song of Time as right, A, down, right, A, down (the right stick and A). Expect the song to play, the camera to stay still while playing and to turn again once the ocarina is put away, L/R/Y/X to play no note, and the staff's notes to show A and arrows. Then set the row back to Switch 2 and play it on A, L, R: expect it to play and the staff's icons to be the Switch's again. Without a physical controller, a start-up smoke on Linux with the row set to N64 / GameCube is still useful.

@Beanstalk linux, a tester with a physical controller: F1 > Controls > Ocarina controls > N64 / GameCube, take out the ocarina and play Song of Time as right, A, down, right, A, down (the right stick and A). Expect the song to play, the camera to stay still while playing and to turn again once the ocarina is put away, L/R/Y/X to play no note, and the staff's notes to show A and arrows. Then set the row back to Switch 2 and play it on A, L, R: expect it to play and the staff's icons to be the Switch's again. Without a physical controller, a start-up smoke on Linux with the row set to N64 / GameCube is still useful.
Member

Beanstalk test farm

Commit 670073a · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `670073a` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/3253) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The Windows game run shows the new layout can play a song, but the camera transition and a real-controller Linux run remain unverified. The new icon test also ignores CC when run directly. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching note icons. Switch 2 remains the default; the added prompt textures increase build output size.

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

  • L1 tests/test_ocarina_note_icons.py:89: The standalone test defaults to gcc without consulting CC. (more on the line) Do: Default to CC when set, with an available compiler fallback, while retaining the explicit --cc override.

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 host/nn_hid.c:908: The camera and physical-controller paths still need the in-game checks listed in the PR. (more on the line) Do: Check the transition in game on Windows and run the described song and camera checks with a physical controller on Linux.

@fix can do L1.

Checks: Still running: 11 checks.

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

Does it help: Yes: the author reports Zelda’s Lullaby was recognised using the right stick on Windows with an Xbox controller. Camera suppression and restoration have not yet been checked in game.

Other systems: The input path also serves SDL controllers, keyboard bindings and scripted input; prompt textures change for every controller face and the keyboard. The author reports game-free checks on Windows and Linux, but real-controller Linux, SDL controller icons and the keyboard face remain untested in game.

Switches: No environment switch added, changed or removed. The player-facing Ocarina controls choice defaults to Switch 2, preserving the existing layout; N64 / GameCube is opt-in. The controls table is updated.

Reviewed: 24dd5c43bf against 7bc53f8413: Read the supplied PR description, comments and CI status, repository contribution rules and PR template, commit messages, and the substantive diffs and surrounding input, prompt, settings and test paths. Skimmed translations and generated settings changes; did not read every changed code file in full.; nothing run (a code review).

Checked and fine:

  • Both commits contain AI-assistance and co-author trailers.
  • The settings ABI layout hash and generated fields change together.
  • The textures recipe version changes with its output format.
  • No changed file is a committed game-derived asset or compiled output.
  • The renderer API structs did not change, so their API version does not need a bump.

Testing: Read-only review; no tests, builds or project scripts were run. The author reports Windows in-game and Windows/Linux game-free checks; CI is still running.

Overlaps and merge order: The PR identifies the closed #1303 as the work it supersedes; no other overlap was verified.


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

**Recommendation: Approve.** The Windows game run shows the new layout can play a song, but the camera transition and a real-controller Linux run remain unverified. The new icon test also ignores CC when run directly. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching note icons. Switch 2 remains the default; the added prompt textures increase build output size. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_ocarina_note_icons.py:89`: The standalone test defaults to gcc without consulting CC. (more on the line) **Do:** Default to CC when set, with an available compiler fallback, while retaining the explicit --cc override. **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** `host/nn_hid.c:908`: The camera and physical-controller paths still need the in-game checks listed in the PR. (more on the line) **Do:** Check the transition in game on Windows and run the described song and camera checks with a physical controller on Linux. `@fix` can do L1. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports Zelda’s Lullaby was recognised using the right stick on Windows with an Xbox controller. Camera suppression and restoration have not yet been checked in game. **Other systems:** The input path also serves SDL controllers, keyboard bindings and scripted input; prompt textures change for every controller face and the keyboard. The author reports game-free checks on Windows and Linux, but real-controller Linux, SDL controller icons and the keyboard face remain untested in game. **Switches:** No environment switch added, changed or removed. The player-facing Ocarina controls choice defaults to Switch 2, preserving the existing layout; N64 / GameCube is opt-in. The controls table is updated. **Reviewed:** 24dd5c43bf0a against 7bc53f841323: Read the supplied PR description, comments and CI status, repository contribution rules and PR template, commit messages, and the substantive diffs and surrounding input, prompt, settings and test paths. Skimmed translations and generated settings changes; did not read every changed code file in full.; nothing run (a code review). **Checked and fine:** - Both commits contain AI-assistance and co-author trailers. - The settings ABI layout hash and generated fields change together. - The textures recipe version changes with its output format. - No changed file is a committed game-derived asset or compiled output. - The renderer API structs did not change, so their API version does not need a bump. **Testing:** Read-only review; no tests, builds or project scripts were run. The author reports Windows in-game and Windows/Linux game-free checks; CI is still running. **Overlaps and merge order:** The PR identifies the closed #1303 as the work it supersedes; no other overlap was verified. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
host/nn_hid.c Outdated
@ -893,1 +905,4 @@
if (!sdl_pads && xinput_pads > 0) controlled = xinput_pads; /* (XInput-only: no SDL pad to count it) */
raw |= pad_right_stick_way(s);
/* (while the ocarina waits for a note and the stick plays them: the stick is the notes', not the camera's) */
if (oc_consumed_pads & HOS_PAD_RS_MASK) s[2] = s[3] = 0;
Member

L2 (should fix): The camera and physical-controller paths still need the in-game checks listed in the PR.

When: When a player takes out or puts away the ocarina, the right stick must switch between notes and camera control; the reported Windows run did not observe that transition, and Linux has not been exercised with a physical controller.

Do: Check the transition in game on Windows and run the described song and camera checks with a physical controller on Linux.

**L2** (should fix): The camera and physical-controller paths still need the in-game checks listed in the PR. *When:* When a player takes out or puts away the ocarina, the right stick must switch between notes and camera control; the reported Windows run did not observe that transition, and Linux has not been exercised with a physical controller. **Do:** Check the transition in game on Windows and run the described song and camera checks with a physical controller on Linux.
@ -0,0 +86,4 @@
def main():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument("--cc", default="gcc")
Member

L1 (should fix): The standalone test defaults to gcc without consulting CC.

When: On a supported development setup with CC set to clang and no gcc on PATH, running this test directly fails to find gcc even though the configured C compiler is available.

Do: Default to CC when set, with an available compiler fallback, while retaining the explicit --cc override.

**L1** (should fix): The standalone test defaults to gcc without consulting CC. *When:* On a supported development setup with CC set to clang and no gcc on PATH, running this test directly fails to find gcc even though the configured C compiler is available. **Do:** Default to CC when set, with an available compiler fallback, while retaining the explicit --cc override.
test(input): the ocarina note icons' check takes $CC when run alone
Some checks failed
beanstalk/approval not approved yet
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
554b2dcf4b
BeanBot's review of #3253 (L1): run by itself, tests/test_ocarina_note_icons.py
compiled with gcc whatever CC said. It now takes $CC, else gcc, else clang;
run_all.py still passes its own with --cc.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Thanks for the review.

  • L1 fixed in 554b2dcf4: run alone, tests/test_ocarina_note_icons.py now takes $CC, else gcc, else clang (--cc still wins, as run_all.py passes it). Checked on Windows with CC=clang, with CC unset, and through run_all.py; on Linux (WSL, gcc) with CC unset and CC=gcc.
  • L2 stands as written in Still to test: the camera check by hand on Windows, and the song, camera and icon checks on Linux with a physical controller. The farm answered that it can't move a physical stick, so the Linux run needs a person.
Thanks for the review. - **L1** fixed in 554b2dcf4: run alone, `tests/test_ocarina_note_icons.py` now takes `$CC`, else gcc, else clang (`--cc` still wins, as run_all.py passes it). Checked on Windows with CC=clang, with CC unset, and through run_all.py; on Linux (WSL, gcc) with CC unset and CC=gcc. - **L2** stands as written in Still to test: the camera check by hand on Windows, and the song, camera and icon checks on Linux with a physical controller. The farm answered that it can't move a physical stick, so the Linux run needs a person.
Author
Member

Camera checked in game (Windows 11, RTX 5080, Xbox controller, N64 / GameCube): with the ocarina out, the right stick held did not turn the camera; with the ocarina put away, it turned the camera again. Moved from Still to test to Tested (BeanBot's L2, Windows part). The Linux run with a physical controller is still to do, by hand.

Camera checked in game (Windows 11, RTX 5080, Xbox controller, N64 / GameCube): with the ocarina out, the right stick held did not turn the camera; with the ocarina put away, it turned the camera again. Moved from Still to test to Tested (BeanBot's L2, Windows part). The Linux run with a physical controller is still to do, by hand.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The compiler selection fix resolves L1, and the Windows camera check has been reported. The physical-controller checks on Linux and the other setups listed in the PR remain outstanding. Recommend approval; not approved on the forge.

Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching note icons. The fix makes the standalone icon test respect the selected 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 host/nn_hid.c:908: The remaining physical-controller and icon checks listed in the PR need in-game results. When: Linux with a physical controller, Windows with an SDL DualSense or Switch Pro controller, and the keyboard face have not yet been checked in game. Do: Perform the remaining checks described in Still to test and report the results.

Since the last review (on 24dd5c43bf)
Resolved: L1 (The standalone test defaults to gcc without consulting CC.)
Still open: L2 (The remaining physical-controller and icon checks listed in the PR need in-game results.)

Checks: Still running: 11 checks.

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

Does it help: Yes: the author reports that Zelda’s Lullaby was recognized with the new layout on Windows and that the camera stopped and resumed responding as intended. This is not a performance change.

Other systems: Linux physical-controller behavior, Windows SDL controllers, and keyboard note icons remain unverified in game.

Switches: Ocarina controls defaults to Switch 2; N64 / GameCube is opt-in. The default preserves the existing layout.

Reviewed: 554b2dcf4b against 7bc53f8413: Read AGENTS.md, CONTRIBUTING.md, the full icon test, the input changes, and the fix diff. The remaining changed files and full base diff were not read in full.; nothing run (a code review).

Checked and fine:

  • The reported Windows Xbox run confirms the new layout plays a song and the camera resumes after the ocarina is put away.
  • The icon test's --cc argument overrides its environment-based default.

Testing: No commands from the project were run. The author reports Windows in-game and game-free checks; CI is still running.

Overlaps and merge order: The PR identifies #1303 as superseded.


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The compiler selection fix resolves L1, and the Windows camera check has been reported. The physical-controller checks on Linux and the other setups listed in the PR remain outstanding. Recommend approval; not approved on the forge. Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching note icons. The fix makes the standalone icon test respect the selected 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** `host/nn_hid.c:908`: The remaining physical-controller and icon checks listed in the PR need in-game results. *When:* Linux with a physical controller, Windows with an SDL DualSense or Switch Pro controller, and the keyboard face have not yet been checked in game. **Do:** Perform the remaining checks described in Still to test and report the results. **Since the last review** (on 24dd5c43bf0a) Resolved: L1 (The standalone test defaults to gcc without consulting CC.) Still open: L2 (The remaining physical-controller and icon checks listed in the PR need in-game results.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that Zelda’s Lullaby was recognized with the new layout on Windows and that the camera stopped and resumed responding as intended. This is not a performance change. **Other systems:** Linux physical-controller behavior, Windows SDL controllers, and keyboard note icons remain unverified in game. **Switches:** Ocarina controls defaults to Switch 2; N64 / GameCube is opt-in. The default preserves the existing layout. **Reviewed:** 554b2dcf4baa against 7bc53f841323: Read AGENTS.md, CONTRIBUTING.md, the full icon test, the input changes, and the fix diff. The remaining changed files and full base diff were not read in full.; nothing run (a code review). **Checked and fine:** - The reported Windows Xbox run confirms the new layout plays a song and the camera resumes after the ocarina is put away. - The icon test's --cc argument overrides its environment-based default. **Testing:** No commands from the project were run. The author reports Windows in-game and game-free checks; CI is still running. **Overlaps and merge order:** The PR identifies #1303 as superseded. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Owner
@rebase
Member

I rebased this pull request onto main (27114559f1): the new head is 0cf93e8686.

Conflicts resolved

  • game/mods/menu/strings/de.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/es-419.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/es.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/fr.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/it.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/ja.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/ko.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/nl.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/pl.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/pt-BR.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/ru.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/zh-Hans.json: Kept the Ocarina translations and the base branch’s deletion.
  • game/mods/menu/strings/zh-Hant.json: Kept the Ocarina translations and the base branch’s deletion.

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` (27114559f1e4): the new head is 0cf93e8686e6. **Conflicts resolved** - game/mods/menu/strings/de.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/es-419.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/es.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/fr.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/it.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/ja.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/ko.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/nl.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/pl.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/pt-BR.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/ru.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/zh-Hans.json: Kept the Ocarina translations and the base branch’s deletion. - game/mods/menu/strings/zh-Hant.json: Kept the Ocarina translations and the base branch’s deletion. 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 feat/ocarina-controls from 554b2dcf4b
Some checks failed
beanstalk/approval not approved yet
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 0cf93e8686
Some checks failed
beanstalk/approval not approved yet
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 16:57:53 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The new layout worked in the reported Windows Xbox-controller game run, including the camera check. The remaining physical-controller and icon checks are still outstanding. Recommend approval; not approved on the forge.

Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching note icons. It preserves the existing layout by default at the cost of additional input and prompt-texture logic and larger prompt assets.

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 host/nn_hid.c:908: The remaining physical-controller and icon checks listed in the PR need in-game results. When: Linux with a physical controller, Windows with an SDL DualSense or Switch Pro controller, and the keyboard face have not yet been checked in game. Do: Perform the remaining checks described in Still to test and report the results.

Since the last review (on 554b2dcf4b)
Still open: L2 (The remaining physical-controller and icon checks listed in the PR need in-game results.)

Checks: Still running: 11 checks.

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

Does it help: Yes for the reported Windows Xbox-controller setup: Zelda's Lullaby was recognised with the right stick, and the camera stayed still during play and worked again afterward. The other setups in the ledger have not yet been checked in game.

Other systems: The input path also handles SDL controllers and Linux; prompt textures vary by controller face and keyboard. Linux with a physical controller, an SDL controller on Windows, and the keyboard icons remain unverified in game.

Switches: Adds Ocarina controls, defaulting to Switch 2; N64 / GameCube is opt-in. Preserving the existing layout by default is appropriate.

Reviewed: 0cf93e8686 against 27114559f1: Read the repository instructions, contribution guide and pull request template, the input and prompt diffs and the relevant input code; skimmed the remaining diff and translations. The full changed code files and all referenced developer rules were not read in full.; nothing run (a code review).

Checked and fine:

  • The rebased translation changes retain the ocarina strings; the surrounding differences come from the new base.
  • The input code still maps stick directions to notes and suppresses camera input during a note wait.

Testing: No commands that build or run code were executed. The author reports a passing Windows Xbox-controller game run and game-free checks; CI is still running.

Overlaps and merge order: The description identifies #1303 as superseded; no further overlap was checked.


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 code is ready: only testing is left (a run of the change itself). The new layout worked in the reported Windows Xbox-controller game run, including the camera check. The remaining physical-controller and icon checks are still outstanding. Recommend approval; not approved on the forge. Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching note icons. It preserves the existing layout by default at the cost of additional input and prompt-texture logic and larger prompt assets. **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** `host/nn_hid.c:908`: The remaining physical-controller and icon checks listed in the PR need in-game results. *When:* Linux with a physical controller, Windows with an SDL DualSense or Switch Pro controller, and the keyboard face have not yet been checked in game. **Do:** Perform the remaining checks described in Still to test and report the results. **Since the last review** (on 554b2dcf4baa) Still open: L2 (The remaining physical-controller and icon checks listed in the PR need in-game results.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported Windows Xbox-controller setup: Zelda's Lullaby was recognised with the right stick, and the camera stayed still during play and worked again afterward. The other setups in the ledger have not yet been checked in game. **Other systems:** The input path also handles SDL controllers and Linux; prompt textures vary by controller face and keyboard. Linux with a physical controller, an SDL controller on Windows, and the keyboard icons remain unverified in game. **Switches:** Adds Ocarina controls, defaulting to Switch 2; N64 / GameCube is opt-in. Preserving the existing layout by default is appropriate. **Reviewed:** 0cf93e8686e6 against 27114559f1e4: Read the repository instructions, contribution guide and pull request template, the input and prompt diffs and the relevant input code; skimmed the remaining diff and translations. The full changed code files and all referenced developer rules were not read in full.; nothing run (a code review). **Checked and fine:** - The rebased translation changes retain the ocarina strings; the surrounding differences come from the new base. - The input code still maps stick directions to notes and suppresses camera input during a note wait. **Testing:** No commands that build or run code were executed. The author reports a passing Windows Xbox-controller game run and game-free checks; CI is still running. **Overlaps and merge order:** The description identifies #1303 as superseded; no further overlap was checked. </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>
Owner
@rebase
Member

I rebased this pull request onto main (6b21da7b48): the new head is 670073ad71.

Conflicts resolved

  • game/crates/host-sys/src/settings_abi.rs: Kept the base branch’s static declaration and the pull request’s updated count of 295 settings.

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` (6b21da7b483b): the new head is 670073ad718e. **Conflicts resolved** - game/crates/host-sys/src/settings_abi.rs: Kept the base branch’s static declaration and the pull request’s updated count of 295 settings. 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 feat/ocarina-controls from 0cf93e8686
Some checks failed
beanstalk/approval not approved yet
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 670073ad71
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 22s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m26s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m21s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 34m8s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 9m45s
CI / Website build and checks (pull_request) Failing after 39s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 50m30s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m4s
2026-12-05 17:01:22 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The Windows Xbox run shows the new layout playing a song and the camera returning to normal afterward. The remaining physical-controller and icon checks are still needed before merge. Recommend approval; not approved on the forge.

Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching staff icons. The default remains the existing Switch 2 layout; the feature adds prompt assets and input-handling complexity.

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 host/nn_hid.c:908: The remaining physical-controller and icon checks listed in the PR need in-game results. When: Linux with a physical controller, Windows with an SDL DualSense or Switch Pro controller, and the keyboard face have not yet been checked in game. Do: Perform the remaining checks described in Still to test and report the results.

Since the last review (on 0cf93e8686)
Still open: L2 (The remaining physical-controller and icon checks listed in the PR need in-game results.)

Checks: Still running: PR description / Title and description (pull_request_target).

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

Does it help: Yes: the author reports Zelda's Lullaby was recognized with the right stick on Windows with an Xbox controller, and the camera check passed. The remaining setups have not yet been checked in game.

Other systems: The input and prompt paths also affect Linux controllers, Windows SDL controllers and keyboard icons. Their outstanding in-game checks remain in L2.

Switches: Ocarina controls adds Switch 2 as the default and N64 / GameCube as the optional layout. The existing behavior is the appropriate default pending the remaining checks.

Reviewed: 670073ad71 against 6b21da7b48: Read the rebased settings ABI diff and relevant input, prompt and settings paths; inspected the repository rules and the PR's recorded runs. The remaining changed files and translations were not read in full.; nothing run (a code review).

Checked and fine:

  • The rebased SETTINGS declaration increases the array length from 294 to 295 and includes the new setting.
  • The Windows Xbox song and camera checks are reported as passed.

Testing: No commands from the project or tests were run. The author reports Windows in-game and game-free checks; the remaining checks are listed in L2. The PR description check is still running.

Overlaps and merge order: PR #1303 is identified as superseded by this change.


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 code is ready: only testing is left (a run of the change itself). The Windows Xbox run shows the new layout playing a song and the camera returning to normal afterward. The remaining physical-controller and icon checks are still needed before merge. Recommend approval; not approved on the forge. Adds an optional N64 / GameCube ocarina layout using A and the right stick, with matching staff icons. The default remains the existing Switch 2 layout; the feature adds prompt assets and input-handling complexity. **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** `host/nn_hid.c:908`: The remaining physical-controller and icon checks listed in the PR need in-game results. *When:* Linux with a physical controller, Windows with an SDL DualSense or Switch Pro controller, and the keyboard face have not yet been checked in game. **Do:** Perform the remaining checks described in Still to test and report the results. **Since the last review** (on 0cf93e8686e6) Still open: L2 (The remaining physical-controller and icon checks listed in the PR need in-game results.) **Checks:** Still running: `PR description / Title and description (pull_request_target)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports Zelda's Lullaby was recognized with the right stick on Windows with an Xbox controller, and the camera check passed. The remaining setups have not yet been checked in game. **Other systems:** The input and prompt paths also affect Linux controllers, Windows SDL controllers and keyboard icons. Their outstanding in-game checks remain in L2. **Switches:** Ocarina controls adds Switch 2 as the default and N64 / GameCube as the optional layout. The existing behavior is the appropriate default pending the remaining checks. **Reviewed:** 670073ad718e against 6b21da7b483b: Read the rebased settings ABI diff and relevant input, prompt and settings paths; inspected the repository rules and the PR's recorded runs. The remaining changed files and translations were not read in full.; nothing run (a code review). **Checked and fine:** - The rebased SETTINGS declaration increases the array length from 294 to 295 and includes the new setting. - The Windows Xbox song and camera checks are reported as passed. **Testing:** No commands from the project or tests were run. The author reports Windows in-game and game-free checks; the remaining checks are listed in L2. The PR description check is still running. **Overlaps and merge order:** PR #1303 is identified as superseded by this change. </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>
HumanBean deleted branch feat/ocarina-controls 2026-12-05 17:03:15 +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!3253
No description provided.