App

Firefox from a game controller

Download InputConfig on the Mac App StoreThe Firefox layout is built into InputConfig, free on the Mac App Store. You don't have to make an account, there are no subscriptions, and nothing is locked. Optimized for Apple silicon.

On a Mac: Firefox reads its Mac shortcuts from this layout. It supports the Gamepad API for web games, but not controller browsing, which is what this layout adds.

Yes, you can browse Firefox on a Mac with a game controller: pointer, scroll and clicks on the sticks and triggers, and back, forward, reload, new tab and the address bar on buttons. Firefox's shortcuts match Chrome's and Safari's for everything here, so it is the same remote with one Firefox feature worth a button, Reader View.

The layout, control by control

Click a control. Labels:

How the layout thinks

  • Point, scroll, click. The left stick is a pointer, the right stick scrolls, the right trigger clicks and the left trigger right-clicks.
  • Move through pages. Back, Forward, Reload and New Tab on the face buttons.
  • Handle tabs. Close tab on the left bumper, the address bar on the right, and D-pad left and right switch tabs with Command Option and the arrows.

Firefox reads its Mac shortcuts from this layout. It is the Chrome remote, and every button means the same thing.

Tune it for Firefox

  • Reader View. Put Command Option R on the touchpad press.
  • Dictation. Press the address bar button, then Start Dictation.
  • Zoom. Put Command Plus and Command Minus on the stick clicks.
  • Picture in picture. Put Command Option Shift Right Bracket for a video behind a chord. Without Option, Command Shift Right Bracket switches to the next tab instead.

Reader View is what makes long articles comfortable from across the room. Put Reader View on the touchpad press first.

If a browser game sees the pad

Firefox supports the Gamepad API, so a browser game that reads controllers sees yours after you press a button on the page. With this layout running, the game gets clicks and key presses as well as the pad, and every press lands twice.

  1. Turn the layout off while you play. Deactivate it before you open the game.
  2. Give the game its own preset. An empty preset, or one with only the keys the game lists.

The browser games page covers the rest. A running layout doubles every press in a game that reads the pad itself.

Get it in two clicks

  1. Get InputConfig free on the Mac App Store, open it, and click Smart Preset Maker on the welcome screen.
  2. Search for Firefox and pick it. The layout 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.

Every binding, as a table

The Firefox preset in InputConfig, drawn on a DualSense Edge with each control labeled with the key or action it sends.
Figure 1. The Firefox preset drawn on a DualSense Edge in InputConfig's Live Visualizer. For example, Right trigger is labeled Left click, and Left trigger is labeled Right click. Any other controller shows the same layout on its own drawing.
ControllerSendsWhat it does
Left stick leftMouse motion left (speed 16)Cursor left
Left stick rightMouse motion right (speed 16)Cursor right
Left stick upMouse motion up (speed 16)Cursor up
Left stick downMouse motion down (speed 16)Cursor down
Right stick downScroll downScroll down
Right stick upScroll upScroll up
Right triggerLeft clickLeft click
Left triggerRight clickRight click
A / CrossCommand (Left), LeftBack
B / CircleCommand (Left), RightForward
X / SquareCommand (Left), RReload
Y / TriangleCommand (Left), TNew tab
LB / L1Command (Left), WClose tab
RB / R1Command (Left), LAddress bar
D-pad leftCommand (Left), Alt / Option (Left), LeftPrevious tab
D-pad rightCommand (Left), Alt / Option (Left), RightNext tab

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

Questions

Anything different from Chrome?

Reader View and the picture-in-picture key. Everything else is shared.

Does Firefox have controller support?

For web games, yes, through the Gamepad API. For browsing, no. This layout sends ordinary pointer, scroll and key presses instead.

Download InputConfig on the Mac App StoreCompletely free. You don't have to make an account, there are no subscriptions, and nothing is locked. Optimized for Apple silicon. Open source on GitHub.

Updated