CodaCoda

Controller macros on PC: how they work and how to set one up

Updated

Short answer

A controller macro is a sequence of inputs — button presses, key presses, mouse clicks and pauses — that plays when you press one button. Xbox's and PlayStation's own controller settings remap a button to one function and describe no sequences, so on PC macros come from software between the controller and the game: Steam Input, or a remapping tool such as reWASD, DS4Windows or Coda. Coda gives each profile up to eight macros, recorded from the controller or built step by step, timed in milliseconds, and played once or repeated while the button is held. Many online games restrict macros in their rules; check yours before using one there.

What a macro is, and what it is not

Three features get called macros, and they solve different problems:

FeatureOne press doesExample
RemapOne different inputCircle acts as Cross
Combination (chord)One input, fired by several buttons held togetherL1 + R1 opens the map
MacroA timed sequence of inputsTap, wait 50 ms, tap again

A macro is the only one of the three with time in it: what happens, in what order, and how long each step lasts. That is what makes it useful for anything a game expects as a quick sequence, and it is also why games treat macros differently from a remap.

Play once, or repeat while held

Why timing decides whether the game sees it

Many games check input once per rendered frame — every 16.7 ms at 60 frames per second. A press that starts and ends between two checks never happened, as far as the game is concerned. So a macro step needs to be held long enough for the game to see it, and a wait long enough for the game to notice the release. Coda's defaults are 60 ms for a button tap and 40 ms for a key or mouse tap. If a macro works in the gamepad tester but not in a game, lengthen the holds and waits before anything else.

Which tools make controller macros on PC

Do games allow macros?

Often not in online play, and the rules are worth reading before the first match rather than after. Publishers' rules commonly prohibit automation and unauthorised third-party programs, and some name scripts, macros or input-mapping software explicitly — two such documents are among the sources below. Others say nothing specific.

What a tool cannot do is promise you an outcome. Coda does not: it tells you what it does — ordinary controller input through a virtual controller, nothing injected into the game, and macros that only press what you put in them — and leaves the judgement about each game's rules with you.

How to make a macro in Coda

  1. Open Macros in the sidebar and press + Add Macro. Give it a name.
  2. Press Record… to record from the controller, or Edit macro… to build it step by step with Add action: button tap, press or release; key tap, press or release; mouse click, button down or up; wheel up or down; and wait. Double-click a step to change its timing; drag to reorder. Press Done.
  3. Under TRIGGER, press + Add trigger and pick the button that starts it. A macro without a trigger does nothing — the most common reason a new macro “doesn't work”.
  4. Decide whether the button keeps its normal function (Keep original function) or only plays the macro, which is the default.
  5. Set MODE to Play Once or Repeat While Held, then Save.

You can also bind a macro from Remapping: click the button, open its Macros tab and pick one. A combination of buttons in Chords can fire a macro too. To share one, Export gives a code or a file, and Import takes one in; a macro that types on the keyboard asks before it is imported.

What Coda's macros do not do

Macros are one part of what a profile holds. The rest — remapping, shift layers, touchpad zones — is in how to remap controller buttons on PC.

Coda for Windows

Macros, remapping and aim in one profile.

Up to eight macros per profile, timed to the millisecond, beside button remapping, shift layers and the stick tuning Coda is built around. DualSense, DualShock 4 and Xbox controllers on Windows 10 and 11.

Sources

  1. Steamworks — Steam Input activators
  2. reWASD help — Key Combo (macros)
  3. reWASD Basic — what the Basic edition includes
  4. DS4Windows (schmaldeo fork) user guide — Special Actions
  5. DS4Windows source — interface strings, incl. “Record A Macro” (Strings.resx)
  6. Microsoft Store — Xbox Accessories
  7. PlayStation — set up a DualSense Edge on PS5
  8. Riot Games — Terms of Service, § 7.1 (last modified 1 December 2024)
  9. Activision — Call of Duty Security and Enforcement Policy (31 July 2026)

Related