Play a Game with a Controller

Install OpenJoystickDriver (OJD), connect a controller, and play.

Many Mac games understand only a few controller kinds. OJD drives a virtual gamepad, a pretend controller of one of those kinds, from your real one. You set this up once per controller. On macOS 13 or later, OJD then starts when you log in. It takes about five minutes.

  1. Your controllerXbox, PlayStation, Switch, or another USB or Bluetooth pad.
  2. OJDOpenJoystickDriver reads the controller and applies your profile.
  3. Virtual gamepadOne standard pad that macOS and games recognise.
  4. Your gamesSteam, emulators, and native Mac games.

Set Up Your Controller

  1. Open the disk image and drag OpenJoystickDriver.app onto Applications. Keep it in /Applications.
  2. Open OpenJoystickDriver from the Applications folder.
  3. Click the menu-bar icon and choose Open OpenJoystickDriver.

    The menu-bar menu. A red arrow points to Open OpenJoystickDriver, which opens the main window

  4. Click Request… next to each permission (or Grant Access), then allow OpenJoystickDriver when macOS asks. One permission lets OJD read the controller, and the other lets it hand the controller to games.

    The Access area in OJD. A red arrow points to Access in the sidebar. A second arrow points to Allowed, and the box explains Input Monitoring and Accessibility

  5. In the Access area, click Restart OpenJoystickDriver if it appears.
  6. Connect the controller by USB cable, Bluetooth, or dongle.
  7. Click Controllers, select the controller, and click Open Input Test. Working under its name means OJD reads it.

    The Controllers area. A red arrow points to Working under the controller's name. A second arrow points to Open Input Test, which shows each press live

  8. Press buttons and move the sticks. If nothing shows, see Controller Is Not Detected.
  9. Start the game. It reads the virtual gamepad as if it were your controller.

To check from Terminal, run ojd status and ojd controller list. See Command Line.

If the Game Shows No Input

Steam and SDL games work with the default virtual gamepad kind. Apps that use Apple’s own Game Controller support, such as Safari, need another kind. Pick it in the Controllers area:

The Virtual gamepad kind menu open in the Controllers area. Red arrows point to each choice, and the boxes say which games read it

Or use Terminal:

  1. Run ojd controller list and copy your controller’s ID.
  2. Run ojd virtual set game-controller-compatible CONTROLLER.

To undo it, run ojd virtual reset CONTROLLER. Some games read neither. See Game and App Compatibility.

Further Reading