Game preset

Half-Life 2: controller layout for Mac

Half-Life 2 does not need a controller-aware version of itself to be played from a controller on a Mac. InputConfig sends real keyboard and mouse events, so the game sees a keyboard and a mouse, and you hold the controller. This is the layout the app's Smart Preset Maker builds for it: Classic FPS: move, aim, gravity gun, weapons.

Get the preset in two clicks

  1. Open InputConfig and click Smart Preset Maker on the welcome screen.
  2. Search for Half-Life 2 and pick it. The layout below 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.

The preset can open the game for you when it activates: it launches steam://rungameid/220 on activate, and confines and hides the pointer while it runs, so a stray mouse never leaves the window.

The full button map

ControllerSendsWhat it does
Left stick leftAStrafe left (A)
Left stick rightDStrafe right (D)
Left stick upWMove forward (W)
Left stick downSMove back (S)
Right stick rightMouse motion right (speed 20)Look right
Right stick leftMouse motion left (speed 20)Look left
Right stick downMouse motion down (speed 14)Look down
Right stick upMouse motion up (speed 14)Look up
Right triggerLeft clickFire
Left triggerRight clickSecondary fire
A / CrossSpaceJump
B / CircleCtrl (Left)Crouch (Ctrl)
X / SquareRReload
Y / TriangleEUse (E)
L3 (left stick click)Shift (Left)Sprint (Shift)
D-pad up1Weapon group 1
D-pad left2Weapon group 2
D-pad right3Weapon group 3
D-pad downFFlashlight (F)
Back / Share / SelectScroll upPrevious weapon
Start / OptionsEscapeMenu (Esc)

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 labelled B; the mapping still fires on position.

Tips

  • Triggers are primary and secondary fire (great for the gravity gun).
  • D-pad picks weapon groups and toggles the flashlight.

Make it yours

Nothing here is fixed. Rows can be re-scanned to a different control, given hold and double-tap actions, chords, turbo, macros, haptic or spoken feedback, and per-binding deadzones and sensitivity curves. The binding editor guide covers every option, and the controller map shows what each control is called.

Related

Download on the Mac App Store