Skip to content

Controller to keyboard mapper for Windows.

Map your gamepad's buttons to keys: the D-pad presses the arrow keys, A presses Enter and B presses Esc. It works with Xbox controllers and PlayStation and Nintendo Switch pads.

Gamepad Button is in Pro and the free 14-day trial. No script to write.

The D-pad presses the arrow keys. A presses Enter, B presses Esc.

Each button has its own Gamepad Button trigger, wired to a Press Key. Hold a direction and its arrow key repeats every 250 ms, so you can run down a list.

It listens to any gamepad: Xbox controllers and pads that work like one, and PlayStation and Nintendo Switch pads. The keys go to the app in front.

The macro Gamepad as arrow keys, Enter and Esc running in MacroWin: on a gamepad, D-pad down is pressed and held, so the Down arrow key moves the selection down a list again and again; A presses Enter and the item opens; B presses Esc and it closes; D-pad up moves the selection back up.

Set it up.

Install in MacroWin

Needs Pro or the free 14-day trial. It arrives switched off.

Or in MacroWin: Ctrl+N, then pick the Gamepad as arrow keys, Enter and Esc template.

MacroWin didn't open

MacroWin doesn't seem to be installed on this PC. Download it and install it, then click Install in MacroWin again.

Already have it? Update it to the latest version, or open the Macro Hub in MacroWin and search there.

Download MacroWin

Or build it yourself

  1. New macro, trigger Gamepad Button, Button D-pad up.
  2. Set Starts to Repeat while held, every 250 ms.
  3. Add Press Key with the Up arrow key.
  4. Same again for down, left and right, with their arrow keys.
  5. Then A with Press Key Enter, and B with Esc.
  6. Ctrl+S, then switch Enabled on.

Map any controller button to any key, and what Windows allows.

The same two steps take any button, trigger or stick on the pad, and any key or combination on the keyboard.

Variations

Other keys
Change the key in each Press Key, such as Space for A or Page Down for a bumper. A combination such as Alt+Tab works too.
Triggers and sticks
Button can be LT or RT, or a stick in one of eight directions. It starts once it's pushed past its Press point, 50% unless you change it.
Faster the further
With Starts on Repeat while held, faster the further, a stick repeats every 500 ms just past the press point, down to every 50 ms pushed all the way.
Button combinations
Held with makes a combination, such as A with LB held, so one button can press two different keys.
One pad only
Gamepad picks one pad: 1 to 4 are Xbox-style pads, 5 to 8 PlayStation and Nintendo Switch pads. Any gamepad listens to them all.
A buzz
Vibrate Gamepad makes an Xbox-style pad vibrate, such as to tell you a macro started.
Joysticks and wheels
The Game Controller trigger takes flight sticks, throttles, wheels, pedals, handbrakes and button boxes. Press Learn and move the control.

What it's good for

Apps and games that don't take a controller: a browser, a video player, a game that only reads the keyboard. A media PC you run from the couch, with the pad in your hand. And in games that do take a controller, extra keys on the buttons the game leaves unused.

Limits

The game still gets the button
Windows can't block a gamepad button. The game or app in front gets the press as well as the key, so in a game that reads the controller, one press does both. Map buttons the game doesn't use.
Admin windows
An app that runs as administrator ignores keys from MacroWin until you turn on Work with admin windows in Settings > General.
Getting out
Switch the macro off and the buttons stop pressing keys. The emergency stop, Ctrl+Alt+End, stops every macro from any app.

FAQ

Which controllers work?

Xbox controllers and pads that work like one, and PlayStation and Nintendo Switch pads, also while a game is in front. Flight sticks, throttles, wheels, pedals and button boxes use the Game Controller trigger instead.

Do I need to write a script?

No. You pick steps from a list and fill in their settings, or install the ready-made macro from this page. There is no code or script to write.

Can a stick or a trigger press a key?

Yes. Button can be LT or RT, or a stick in one of eight directions, such as Left stick up-right. It starts once it's pushed past its press point, and with Repeat while held it keeps pressing the key until you let go.

Can one button press a key combination or run a whole macro?

Yes. Press Key takes a combination, such as Alt+Tab, and any steps can follow the trigger, so one button can type text, click or run a whole macro. Held with makes the button itself a combination, such as A with LB held.

Can I use the controller as a mouse?

In steps. A stick direction can start Move Mouse with Relative to current position on, so each run moves the pointer by the X and Y you give, again and again while you hold the stick. It's fine for reaching a button, but it isn't a smooth mouse.

Does the game still get the button?

Yes. Windows can't block a gamepad button, so the game or app in front gets the press as well as the key. It works best in apps and games that don't read the controller, or on buttons a game leaves unused.

Is the controller to keyboard mapper free?

MacroWin itself is free. Gamepad Button is a Pro step, in the free 14-day trial too, and Pro is a one-time payment. Press Key is in the free version.

Read more about it.

Every step has its own page with all its settings, and the guides explain the ideas behind them.

Get the gamepad to keyboard mapper

Free, no account needed. Windows 10 and 11.

Download