The free camera combo counts the gamepad and an input script, not the keys bound to its buttons.

The previous commit read the combo from the merged buttons, where a key bound to ZL is the same bit as the left
trigger: with freecam_pad = zl+zr, the right mouse button and F switched the free camera in play. The keyboard has
freecam_key for that, so the gamepad combo now counts the gamepad and the input script, which stands in for one.

runtime/input.c poll_merged: script_apply writes its buttons into script_seen, which is then merged into the buttons as
before. freecam_gate counts a position of the combo when pad_seen has it or script_seen has the Switch buttons it stands
for; Home stays gamepad only. docs/controls.md ("Free camera") says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
lebomisandClaude Opus 5.5 committed 2026-11-19 13:32:23 +11:00
1 parent 8dfc3609c4
commit 58930c152c
2 files changed
+19 -13

No files matched your search

+2 -3
View File
@@ -133,9 +133,8 @@ bind_Y = pad:north, key:mouse_l
On game 1.4.3, a chosen gamepad combo or a key activates or deactivates the free camera. Neither is set by default: pick
them with `freecam_pad` and `freecam_key` in `totk.ini` or on the Controls tab (for example ZL+ZR+L3, LT+RT+L3 on an
Xbox pad, and F6; `none` turns one off). The combo's buttons also count when they come from the keys bound to them or
from an input script. The world goes on, but the game gets no input while the free camera is on, so Link stands where he
was.
Xbox pad, and F6; `none` turns one off). An input script can press the combo as a gamepad would; the keys bound to its
buttons do not. The world goes on, but the game gets no input while the free camera is on, so Link stands where he was.
| Gamepad | Keyboard and mouse (default bindings) | Free camera |
|---|---|---|