DEV Community

Cover image for Disable PS5 Controller button on MacOS
Marc Qualie
Marc Qualie

Posted on • Originally published at marcqualie.com

Disable PS5 Controller button on MacOS

I often use my PS5 controller on my Mac Studio with PS Remote Play to quickly login and check something or pick up a time-bound item without having to leave my work desk. This is great until you press the PS button and it opens the app switch menu, losing focus on the PS remote play window. To disable the PlayStation controller button default behaviour on MacOS, run the following command in the terminal:

defaults write com.apple.GameController bluetoothPrefsMenuLongPressAction -integer 0
Enter fullscreen mode Exit fullscreen mode

If you want to revert this for some reason, you can set the value to 1 instead.

defaults write com.apple.GameController bluetoothPrefsMenuLongPressAction -integer 1
Enter fullscreen mode Exit fullscreen mode

Based on the name I'm assuming this works with (and is designed for) to Xbox controller since you usually long press that button to trigger menus.

From my searching, this used ot be available in the System Preferences, but it seems to have been removed in recent versions of macOS. The above was last verified to work for me on MacOS Sonoma 14.3.

I hope this saves someone some pain.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay