Skip to content

Game Controller

  • Trigger
  • Gamepad
  • Advanced mode

Starts the macro when a button, axis or hat switch of a game controller is pressed or pushed past its press point: a flight stick, throttle, steering wheel, pedals, handbrake or button box (Xbox-style pads use Gamepad Button). Press Learn and move the control. With Starts, also again and again while it's held, or every time it moves, e.g. a pedal or throttle as it goes. Works while a game is in front; Windows can't block a controller, so the game still gets the input.

In the editor, press Space on the canvas to add a step, then open Triggers > Gamepad, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Control

Text Required

The button, axis or hat switch: press Learn and move it. Written as the controller's ids and the control, e.g. 044F:B10A button 3, 044F:B10A axis Z, 044F:B10A axis X+ or 044F:B10A hat up.

Starts as: empty

Held with

Text

Other controls of the same controller held at the same time, separated by commas, e.g. button 2 or button 2, hat up: type them or press Record and hold them. Empty means none.

Starts as: empty

Starts

A choice

When the macro starts, and whether it starts again while held. Each start gets how far it's pushed.

  • Once per press: Starts once each time it's pressed (or let go, with Direction Up).
  • Repeat while held: Starts on the press, then again every Repeat every (ms) while it's held.
  • Repeat while held, faster the further: Starts on the press, then again while it's held: every Slowest (ms) at the press point, down to every Fastest (ms) when pushed all the way. A button repeats at Fastest.
  • Every time it moves: Starts whenever how far it's pushed changes by at least Change of (%), at most Most often times a second, and when it comes back to rest. A button starts on the press and the release.

Starts as: Once per press

Repeat every (ms)

A duration

10 to 60000. 100 is ten times a second.

Starts as: 100

Slowest (ms)

A duration

How often it repeats just past the press point, 10 to 60000.

Starts as: 500

Fastest (ms)

A duration

How often it repeats when pushed all the way, 10 to 60000.

Starts as: 50

Change of (%)

A percentage

How much it must move before it starts again, 1 to 100.

Starts as: 2

Most often (times a second)

A whole number

1 to 100. A run takes time too: keep it low enough for the macro to finish.

Starts as: 20

Direction

A choice

When the macro starts. The game always gets the press and the release.

  • Click: Starts on the press.
  • Down: Starts on the press, as Click does: a gamepad button can't be blocked, so there's nothing else to choose.
  • Up: Starts when the button is let go (or the trigger or stick goes back).

Starts as: Click

Press point (%)

A whole number

For axes: how far it must go, 1 to 100. Buttons and hats ignore it.

Starts as: 50

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Game Controller outputs
OutputGivesWhat it is
ControllerTextThe controller's name, e.g. T.16000M.
ControlTextThe control's name, e.g. Button 3, Z axis or Hat switch up.
How far (%)A percentageHow far it was pushed when it started, 0 to 100 (a button or hat is 100).

Good to know

  • Wait for Event can wait for it in the middle of a macro, with the same settings.

More in Gamepad