diff --git a/docs/controls.md b/docs/controls.md index 13755d86..a0f78085 100644 --- a/docs/controls.md +++ b/docs/controls.md @@ -20,7 +20,26 @@ Input comes from the first SDL3 gamepad, the keyboard and the mouse, merged into | Plus | Start | Tab | menu, inventory | | Minus | Back | M | map | -Esc is unbound in the game; it releases the mouse cursor (see Mouse camera). Z and X duplicate ZL and ZR so menu pages turn with two neighbouring keys; the menu tabs (L, R) are Q and R. The mouse wheel is unbound. The bindings are one table, `input_bindings` in `runtime/input_map.c` (platform-neutral key ids; `runtime/input_win.c` translates Win32 virtual keys), so a remapping page can edit it later. +Esc is unbound in the game; it releases the mouse cursor (see Mouse camera). Z and X duplicate ZL and ZR so menu pages turn with two neighbouring keys; the menu tabs (L, R) are Q and R. The mouse wheel is unbound. The bindings are two tables in `runtime/input_map.c`, `input_bindings` (platform-neutral key ids) and `input_pad_bindings` (gamepad inputs by position); `runtime/input_win.c` translates Win32 virtual keys and SDL buttons, so a remapping page can edit both later. + +## Remapping + +`totk.ini` rebinds the buttons, one line per Switch button: `bind_