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

Find the four face-button positionsNorth is at the top, east on the right, south at the bottom, west on the left. The labels follow your controller selection. △○×□NORTHEASTSOUTHWEST
Match the physical position first. Then choose its Switch action below.

Face buttons

Physical buttonSwitch actionPress behavior
south button
Crosssouth
east button
Circleeast
west button
Squarewest
north button
Trianglenorth
Shoulders, sticks & other buttons 13 buttons · defaults

Includes triggers, stick clicks, menu, D-pad and touchpad. Changed settings appear in your file preview.

l1 button
L1l1
r1 button
R1r1
l2 button
L2l2
r2 button
R2r2
l3 button
L3 (left stick press)l3
r3 button
R3 (right stick press)r3
menu button
Optionsmenu
view button
Createview
up button
D-pad upup
down button
D-pad downdown
left button
D-pad leftleft
right button
D-pad rightright
touchpad button
Touchpad clicktouchpad
View file & download ↓

Your controls.txt

Only changed buttons are written. Other buttons keep the game’s defaults.

controls.txt
# 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.

Mac installation file
~/Library/Application Support/MacNativeGames/TOTK/controls.txt

Reopen 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.

Write your current mapping
Default
Buttons by position

01 · CONNECT BEFORE REMAPPING

Connect the controller to your Mac

  1. 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.
  2. 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.
  3. 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.

DualSense · find the pairing buttonsOpen full size ↗
Sony’s DualSense pairing diagram circles the Create button left of the touchpad, the central PS button and the light bar.
Hold Create + PS until the light bar flashes, then select the controller in the Mac’s Bluetooth settings. Sony’s pairing instructions ↗

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 positionPlayStationXboxNintendo / Switch action
East · rightCircle ○BA
South · bottomCross ×AB
North · topTriangle △YX
West · leftSquare □XY

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) to 933b6a0 (30 Oct), with one addition: from 22 October apps also accept the five mouse buttons (mouse_left … mouse5) for mouse mode. An app built from f134a7b or 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=label maps 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.

Key bindings · choose ControllerOpen full size ↗
English Key bindings panel with a PlayStation controller drawing, labelled button actions, L3 plus R3 panel shortcut, Show as list and Reset controller.

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.

IN THE GAME · KEY BINDINGS

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.
THIS EDITOR · CONTROLS.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.
  1. 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.
  2. 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.
  3. Restart after replacing the file. The launcher reads controls.txt at start and names the first bad line in an alert.
Keyboard and mouse: see the current English layout
Key bindings · keyboard and mouseOpen full size ↗
English Key bindings panel shows the actual keyboard-and-mouse drawing, including number keys 2 to 5 for the d-pad and key 1 for the settings panel.

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.

One physical button, one line to install
×Cross / southBottom face buttonBSwitch actionTap · 400 millisecondssouth = b tapcontrols.txtGame settings folder
  1. Choose Run by tapping in the editor. The preview writes south = b tap; the other buttons keep their defaults.
  2. Optional: add a PlayStation touchpad map shortcut. Open “Shoulders, sticks & other buttons”, set touchpad to −, and leave its behavior on Hold.
  3. 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
Tap-to-run + optional PlayStation touchpad map
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.

Install the file at the exact Mac path ↓

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:

Paste into Finder’s Go to 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.

Create and open the settings folder
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.

TextEdit · an example controls.txtOpen full size ↗
A real TextEdit window titled controls.txt contains south = b tap and the optional touchpad = minus line, as plain text.
Example file opened in TextEdit. 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

  1. Select the file and press Command–I.
  2. Expand Name & Extension. The field should say controls.txt, with no extra .rtf or second .txt.
  3. If a repeated download is named controls (2).txt, rename it to controls.txt before 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.

Finder · the exact filenameOpen full size ↗
Finder Get Info with Name & Extension expanded shows the complete filename controls.txt and the Hide extension option unchecked; the interface is in English.
In Get Info → Name & Extension, the example ends in exactly .txt. A file named controls.txt.rtf or controls.txt.txt will not be read as controls.txt.

Restart and test the changed button

  1. Quit and reopen the game. The layout is read at startup; editing the file during play does not reload it.
  2. Try one changed action. For the example, test repeated bottom-button taps on level ground before trying climbing or combat.
  3. 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

HOLD · WHILE PRESSED

Normal button behavior

south = b

Switch B stays down while you hold the bottom physical button. This is the default mode.

TAP · 400 MILLISECONDS

Repeat taps to run

south = b tap

Each press holds B for 400 milliseconds. Tap again to keep running.

TOGGLE · PRESS ON / OFF

Run with a stick click

l3 = b toggle

Click 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.

AIM · TWO BUTTONS

Draw with L2, fire with R2

l2 = zr aim r2

Hold 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
  1. Charge it, turn it off and put it into its model’s pairing mode again.
  2. Check whether it reconnected to a console or another computer. Return it to pairing mode and select it on this Mac.
  3. 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
  1. Click the game window and try its menu with the keyboard: Esc or I opens + and Tab or M sends − (older apps: Return opens +).
  2. 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.
  3. Connect the controller before starting the game. Reopen the game and retry its sticks and menu buttons.
  4. Temporarily move controls.txt out 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
  1. Use the physical-position table. On Xbox, the bottom A button normally sends Switch B.
  2. Check the macOS controller profile for an additional remap. Start from its defaults before applying this file.
  3. 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
  1. Check the exact folder and full filename. Keep it directly under TOTK, not inside profile or the app.
  2. 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.
  3. 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
  1. Paste the full file into the checker. Follow its first line number and error.
  2. Use physical names such as south, not Cross or Xbox A. Use Switch names such as b on the right of =.
  3. Save plain UTF-8 text smaller than 16 KB. Remove formatting and try the downloaded file again.
Toggle-running drops Link while climbing
  1. Return the left stick to center after moving, or press the toggle button again to clear it.
  2. Try Run by tapping instead of Toggle.
  3. 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
  1. Check the controller model’s motion / vibration support. A controller can have working sticks without a gyroscope.
  2. 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.txt and rumble.txt.
  3. In the game’s Options, turn on motion controls. Remove any launch override such as TOTK_GYRO=0 or TOTK_RUMBLE=0: a set variable wins over the panel, which then shows it greyed out.
  4. 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:

  1. Close the game. Open the TOTK settings folder.
  2. 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.
  3. 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.

Delete the custom mapping only
rm ~/Library/Application\ Support/MacNativeGames/TOTK/controls.txt