Game Controller
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 RequiredThe 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.
Held with
TextOther 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
A choiceWhen the macro starts, and whether it starts again while held. Each start gets how far it's pushed.
Repeat every (ms)
A duration10 to 60000. 100 is ten times a second.
Slowest (ms)
A durationHow often it repeats just past the press point, 10 to 60000.
Fastest (ms)
A durationHow often it repeats when pushed all the way, 10 to 60000.
Change of (%)
A percentageHow much it must move before it starts again, 1 to 100.
Most often (times a second)
A whole number1 to 100. A run takes time too: keep it low enough for the macro to finish.
Direction
A choiceWhen the macro starts. The game always gets the press and the release.
Press point (%)
A whole numberFor axes: how far it must go, 1 to 100. Buttons and hats ignore it.
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.
| Output | Gives | What it is |
|---|---|---|
| Controller | Text | The controller's name, e.g. T.16000M. |
| Control | Text | The control's name, e.g. Button 3, Z axis or Hat switch up. |
| How far (%) | A percentage | How 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.