Tears of the Kingdom / MacNativeGames
Tears of the Kingdom controller layout for Mac
Connect your controller, choose what each physical button does, then download controls.txt and install it in the game’s Mac settings folder.
Your mapping
This changes the labels shown below. Your mapping stays the same.
Start with a project example
Your controls.txt
Only changed buttons are written. Other buttons keep the game’s defaults.
# controls.txt for Tears of the Kingdom (MacNativeGames)
# Delete this file to go back to the default layout.
Save it, then restart the game
Quit the game. Keep a copy of any existing file, then move the download to this exact location as controls.txt.
~/Library/Application Support/MacNativeGames/TOTK/controls.txtReopen the game to load the mapping and try one changed button.
Finder installation steps → · Restore the game’s default layout →
Write it from Terminal instead
Back up an existing file before replacing it. Run this after closing the game.
01 · CONNECT BEFORE REMAPPING
Connect the controller to your Mac
- Choose Bluetooth or a data USB cable. For wireless pairing, put the controller in discovery mode using the buttons below. A charge-only cable cannot make a USB data connection.
- Open System Settings → Bluetooth. Select your controller under nearby devices and choose Connect. With a compatible USB controller, connect its data cable directly to the Mac.
- Confirm the controller is connected. In System Settings → Game Controllers, select its name if that panel is available. Then open the game, focus its window and try the sticks and menu buttons before changing a layout.
Connected in macOS is the first checkpoint. If the game still receives no input, check game recognition before editing buttons.
PlayStation / DualSense
Turn it off and disconnect USB first. Hold PS + Create until the light bar flashes. DualShock 4 uses PS + Share. PlayStation pairing and USB help ↗
Xbox with Bluetooth
Press the Xbox button to turn it on, then hold the Connect / Pair button for a few seconds. Select it in Bluetooth settings. Supported Xbox models and pairing ↗
Nintendo Switch Pro
Hold the SYNC button beside USB-C to enter pairing mode, then select the controller in the Mac’s Bluetooth list. Find SYNC on Nintendo’s diagram ↗. For another model or a third-party pad, use its maker’s pairing procedure.
Start with one remapping layer. macOS Game Controllers profiles can change buttons before the game receives them. For this editor’s position guide, start with the controller’s default macOS profile, then make your game-specific changes in controls.txt.
02 · POSITION → SWITCH ACTION
Match the button position, not just its printed letter
The game shows Switch prompts. On a default PlayStation or Xbox layout, the button at the right means Switch A and the one at the bottom means Switch B.
| Physical position | PlayStation | Xbox | Nintendo / Switch action |
|---|---|---|---|
| East · right | Circle ○ | B | A |
| South · bottom | Cross × | A | B |
| North · top | Triangle △ | Y | X |
| West · left | Square □ | X | Y |
In the editor, choose your controller’s labels, find its physical button, then choose the Switch action and press behavior. Changing the label selector alone does not remap anything.
Source versions, label mode and controller type
- The file format is the same from
b75be8c(19 Oct) to933b6a0(30 Oct), with one addition: from 22 October apps also accept the five mouse buttons (mouse_left…mouse5) for mouse mode. An app built fromf134a7bor earlier stops at such a line. The checker below tells you when that applies. - Apps with the settings panel choose the Controller type on its Input page: Auto, Xbox, PlayStation (both by position) or Switch (by label). Older text that mentions key 6 for this predates the panel; keys 2–7 are no longer shortcuts.
TOTK_FACE_BUTTONS=labelmaps PlayStation and Xbox face buttons by label while the type is Auto. Nintendo controllers follow their labels by default.- This Mac settings path is not an iPhone or iPad container path. For mobile setup, use the iPhone / iPad guide.
Upstream: ly05010419/MacNativeGames · 933b6a0 controls ↗ · Controls at f134a7b ↗
PANEL APPS · BUILT FROM 28 OCTOBER ON
The Key bindings page and controls.txt are the same layout
In an app with the settings panel, press 1, open Key bindings and switch the drawing to the controller. A change there is written to the same controls.txt this editor makes.

Choose Controller, click a button on the drawing and pick its action. Reset controller is at the bottom right; Show as list switches to a text-based editor.
English panel preview · source 933b6a0. Panel source ↗
Swipe sideways to read the controls, or open the full-size image.
Click a button, pick an action
- Writes only the buttons that differ from the default, with two comment lines of its own.
- Every change it makes is a plain hold. Tap, toggle and aim modes come from a file.
- Reset controller deletes
controls.txt. - Its last row can move Open / close this panel from L3 + R3 to one button. That choice is kept in
controller-settings.txt.
Choose positions, modes and download
- Adds tap, toggle and two-button aim to any button.
- Checks a file against the same rules as the game before you install it.
- Works for apps without the panel, back to 19 October.
- Writes only the changed buttons too, under its own two comment lines.
- Panel first, file second. Use the panel for simple swaps. If you need a mode, paste the panel’s file into the checker, add the mode here, then install the download.
- Expect your comments to go. When you change a button in the panel, it writes the file again. Comments you typed by hand are not kept; keep a copy of a hand-written file.
- Restart after replacing the file. The launcher reads
controls.txtat start and names the first bad line in an alert.
Keyboard and mouse: see the current English layout

The number keys 2, 3, 4 and 5 are the d-pad. Key 1 opens the panel. Click a key or a mouse button to choose its action.
English panel preview · source 933b6a0. Panel source ↗
Swipe sideways to read the controls, or open the full-size image.
Key bindings page, Reset controller and controller-settings.txt ↗
Follow one example: tap to run
Start with one change you can recognize. “Run by tapping” keeps Switch B down for 400 milliseconds after each press of the bottom face button.
south = b tapcontrols.txtGame settings folder- Choose Run by tapping in the editor. The preview writes
south = b tap; the other buttons keep their defaults. - Optional: add a PlayStation touchpad map shortcut. Open “Shoulders, sticks & other buttons”, set touchpad to −, and leave its behavior on Hold.
- Download, install and restart. On level ground, tap the bottom button repeatedly. With the optional touchpad line, click the touchpad to open the Purah Pad.
Copy the two-line example for the file checker
south = b tap
touchpad = minus Paste it into the existing-file checker to load both changes together. Choosing a preset starts a fresh layout; it does not add to your earlier preset.
Check an existing file
Paste the UTF-8 text from your current file. A valid file loads into the editor. A rejected file leaves your current mapping unchanged.
03 · SAVE → RESTART → TRY ONE CHANGE
Put the file in the game’s folder
Close the game and open the settings folder
Keep a copy of an existing controls.txt before replacing it. In Finder, press Shift–Command–G and paste this folder:
~/Library/Application Support/MacNativeGames/TOTK/ The file goes directly inside TOTK, alongside the profile folder. Do not put it inside profile, mods or the .app bundle.
The folder does not exist yet
Start and close the game once, or create just the settings folder with this command, then open it in Finder.
mkdir -p ~/Library/Application\ Support/MacNativeGames/TOTK
open ~/Library/Application\ Support/MacNativeGames/TOTK Save plain text with exactly the right name
Use Download controls.txt above and move that downloaded file into the folder. If you edit it in TextEdit, use Format → Make Plain Text when that option is offered, save as UTF-8, and keep the name controls.txt.
south = b tap changes the bottom button’s press behavior; touchpad = minus is an optional map shortcut for a PlayStation touchpad. Lines beginning with # are comments.Swipe the screenshot sideways on a phone, or open it full size.
Confirm the full filename in Finder
- Select the file and press Command–I.
- Expand Name & Extension. The field should say
controls.txt, with no extra.rtfor second.txt. - If a repeated download is named
controls (2).txt, rename it tocontrols.txtbefore installing. Confirm the final location is~/Library/Application Support/MacNativeGames/TOTK/controls.txt.
These screenshots show an example file. Your own file contains the choices from your editor preview.
.txt. A file named controls.txt.rtf or controls.txt.txt will not be read as controls.txt.Restart and test the changed button
- Quit and reopen the game. The layout is read at startup; editing the file during play does not reload it.
- Try one changed action. For the example, test repeated bottom-button taps on level ground before trying climbing or combat.
- If the launcher reports a bad line, paste the file into the checker, correct that line, save and restart again.
The file changes controller input. The Switch button pictures in the game can remain the same.
Choose how a press behaves
Normal button behavior
south = bSwitch B stays down while you hold the bottom physical button. This is the default mode.
Repeat taps to run
south = b tapEach press holds B for 400 milliseconds. Tap again to keep running.
Run with a stick click
l3 = b toggleClick the left stick and move. It also clears when the stick returns to center after moving. This replaces the stick’s crouch action.
Before climbing: center the stick to clear the toggle. Held B lets go of the wall; use Tap if that gets in your way.
Draw with L2, fire with R2
l2 = zr aim r2Hold L2 to keep ZR down; press R2 to release it and shoot. R2’s own mapping applies while L2 is up. “Aim” here is a button mode, not gyroscope aiming.
Fix the problem you can see
Start with connection, then the file, then the specific action. A missing controller driver cannot be fixed by remapping a button.
The controller does not appear in Bluetooth
- Charge it, turn it off and put it into its model’s pairing mode again.
- Check whether it reconnected to a console or another computer. Return it to pairing mode and select it on this Mac.
- For a compatible wired controller, try a known data cable and direct USB port. Follow Apple’s reconnect and firmware steps if it still fails.
macOS sees the controller, but the game does not respond
- Click the game window and try its menu with the keyboard: Esc or I opens + and Tab or M sends − (older apps: Return opens +).
- Check that the settings panel is closed. While it is open the game receives no input, and pressing both sticks together (L3 + R3) opens it.
- Connect the controller before starting the game. Reopen the game and retry its sticks and menu buttons.
- Temporarily move
controls.txtout of the settings folder and restart to separate a custom mapping from device recognition.
Generic USB HID pads are read from PR #190 / 69332af on, which is after f134a7b and included in 933b6a0. An older app needs a build that contains it; this layout file does not add a driver.
A / B or X / Y feels reversed
- Use the physical-position table. On Xbox, the bottom A button normally sends Switch B.
- Check the macOS controller profile for an additional remap. Start from its defaults before applying this file.
- If you previously launched with
TOTK_FACE_BUTTONS=label, return to the default position behavior for PlayStation / Xbox. Restart after changing the file or launch settings.
The downloaded mapping seems to do nothing
- Check the exact folder and full filename. Keep it directly under TOTK, not inside profile or the app.
- Open the file as plain UTF-8 text and confirm it contains the changed line from the preview. A default layout contains only comments because it needs no overrides.
- Quit the game fully, reopen it and test that specific button. The editor’s Restore default mapping button only resets the editor; it does not remove an installed file.
The launcher rejects a line or says the file is not UTF-8
- Paste the full file into the checker. Follow its first line number and error.
- Use physical names such as
south, notCrossorXbox A. Use Switch names such asbon the right of=. - Save plain UTF-8 text smaller than 16 KB. Remove formatting and try the downloaded file again.
Toggle-running drops Link while climbing
- Return the left stick to center after moving, or press the toggle button again to clear it.
- Try Run by tapping instead of Toggle.
- Download the new file, replace the installed one and restart. Held Switch B has a different meaning on a wall.
Gyro or vibration is missing
- Check the controller model’s motion / vibration support. A controller can have working sticks without a gyroscope.
- In a panel app, press 1 and open Input: check the Gyro aiming and Rumble switches. Turning one on when the game started without it takes effect from the next launch. The choices are kept in
gyro.txtandrumble.txt. - In the game’s Options, turn on motion controls. Remove any launch override such as
TOTK_GYRO=0orTOTK_RUMBLE=0: a set variable wins over the panel, which then shows it greyed out. - Use the regular stick for aiming while diagnosing sensor support. The editor’s Aim mode only pairs aim/fire buttons; it cannot supply motion samples.
Xbox controllers have no gyroscope. A pad macOS shows as a generic HID device has buttons and sticks only; its rumble needs a line in rumble-profiles.txt. Rumble and gyro details ↗
The buttons work, but the game still shows Switch icons
Input remapping and prompt artwork are different. controls.txt changes what a press sends; it does not redraw the icons. The project offers a separate button-icon mod script; at 933b6a0 its keyboard style draws the default keyboard layout (E, Shift, Space and the left mouse button for A B X Y), not a layout you changed in the panel. Button icons ↗. Follow the data-mod installation steps for its output. Its Xbox artwork follows the default positional mapping, so custom face-button remaps can make the pictures disagree again.
Return to the game’s defaults
In a panel app, Key bindings → Reset controller does this in one step: it deletes controls.txt. Copy the file first if you want to keep it. Without the panel, or to keep a copy:
- Close the game. Open the TOTK settings folder.
- Move controls.txt out of the folder so you can keep it as a backup. Leave the profile folder in place; it contains your saves.
- Restart the game. With no custom file, the source’s default controller layout applies. An independent macOS profile or launch override still needs its own reset.
Delete only the custom mapping from Terminal
Use this only if you no longer need that file. It removes the custom mapping, not the saves.
rm ~/Library/Application\ Support/MacNativeGames/TOTK/controls.txt