App

Unity from a game controller

Download InputConfig on the Mac App StoreThe Unity layout is built into InputConfig, free on the Mac App Store. You don't have to make an account, there are no subscriptions, and nothing is locked. Optimized for Apple silicon.

On a Mac: The Unity Editor reads its default shortcuts and mouse buttons from this layout. A game you test still reads the controller through its own input system.

Yes, you can drive the Unity editor on a Mac from a game controller. Unity's tool keys are Q, W, E, R and T in a row, and the layout puts them on the four face buttons and a bumper in that order. Play is one button and Frame Selected another. It is for testing a controller game without putting the controller down.

On this page: 7 sections
  1. The layout, control by control
  2. How the layout thinks
  3. If your game reads the pad too
  4. Tune it for Unity
  5. Get it in two clicks
  6. Every binding, as a table
  7. Questions

The layout, control by control

Click a control. Labels:

How the layout thinks

  • Pick a tool. Hand (Q), Move (W), Rotate (E) and Scale (R) on the face buttons. Rect (T) on the left bumper.
  • Frame. Frame Selected (F) on the right bumper.
  • Look and select. The left stick is the pointer, the right stick zooms, the right trigger selects, and the left trigger holds the right mouse button for looking around and context menus.
  • Pan. The left stick click is the middle mouse button.
  • Save and play. Save on Share or View, Play (Command P) on Options.

Holding the right mouse button in the Scene view also turns on Unity's flythrough keys, W, A, S and D, so with the left trigger held, the Move tool button flies forward. The tools sit in Unity's own order, Q to T, left to right.

If your game reads the pad too

Your game reads the controller through Unity's input system whether or not the preset is on, so with the preset running, a press in Play mode reaches both. Climb this ladder, smallest step first:

  1. Turn the preset off in Play mode. If its keys get in the way, deactivate it while you test.
  2. Let auto-switch do it for a built player. List the editor under Activate when these apps are in front and turn on automatic switching in Settings, Advanced. The built player gets the pad to itself.

In-editor Play mode shares the editor's window, so auto-switch cannot tell them apart there. A running preset doubles every press in a game that reads the pad itself.

Tune it for Unity

  • Pause and step. Put Command Shift P and Command Option P on the stick clicks.
  • Console. Put Command Shift C on the touchpad press.
  • A slower pointer. Use the Pointer speed slider on the preset's page, for the Inspector's small fields.

Godot and Unreal have their own entries with their own keys. Play, pause and step from the pad you are testing with.

Get it in two clicks

  1. Get InputConfig free on the Mac App Store, open it, and click Smart Preset Maker on the welcome screen.
  2. Search for Unity and pick it. The layout is created as a preset in your sidebar, named and ready.
  3. Press Activate. Every row can be changed afterwards: the editor's Scan button rebinds any control the moment you touch it.

Every binding, as a table

The Unity preset in InputConfig, drawn on a DualSense Edge with each control labeled with the key or action it sends.
Figure 1. The Unity preset drawn on a DualSense Edge in InputConfig's Live Visualizer. For example, Right trigger is labeled Select (left click), and Left trigger is labeled Look / context (right click). Any other controller shows the same layout on its own drawing.
ControllerSendsWhat it does
Left stick leftMouse motion left (speed 16)Pointer left
Left stick rightMouse motion right (speed 16)Pointer right
Left stick upMouse motion up (speed 16)Pointer up
Left stick downMouse motion down (speed 16)Pointer down
Right stick downScroll downZoom out
Right stick upScroll upZoom in
Right triggerLeft clickSelect (left click)
Left triggerRight clickLook / context (right click)
A / CrossQHand / pan tool (Q)
B / CircleWMove tool (W)
X / SquareERotate tool (E)
Y / TriangleRScale tool (R)
LB / L1TRect tool (T)
RB / R1FFrame selected (F)
L3 (left stick click)Middle clickPan (middle mouse)
Back / Share / SelectCommand (Left), SSave scene (Cmd+S)
Start / OptionsCommand (Left), PPlay (Cmd+P)

Button names follow the Xbox / PlayStation pair shown in the editor, so A / Cross is the bottom face button on either pad. On a Switch Pro Controller the bottom button is labeled B; the mapping still fires on position.

Questions

Does play mode get the controller?

Your game reads the controller through Unity's input system whether or not the preset is on. Turn the preset off in Play mode if its keys get in the way. Auto-switch can do it for a built player.

Does it work with Godot or Unreal?

Both have their own entries with their own keys.

Download InputConfig on the Mac App StoreCompletely free. You don't have to make an account, there are no subscriptions, and nothing is locked. Optimized for Apple silicon. Open source on GitHub.

Updated