rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

[Feature Request] [macOS] Disable macOS handling of Home Button

Open schm1dtmac opened this issue 5 months ago • 6 comments

Quick summary

macOS's shortcut to open the Launchpad Games folder using a controller's Home/Guide/PS button conflicts with RPCS3's home menu, with both opening simultaneously as a consequence. RPCS3 could adjust SDL input API behaviour to disable HIDAPI usage and fall back to MFi/GameController which does disable the macOS gesture app-side already in SDL code.

Details

macOS 11 and above offer users with connected game controllers the option to open Launchpad straight to the Games folder by pressing their Home/Guide/PS Button, and to switch apps by holding it down further, with this option being enabled by default. However, this conflicts with RPCS3's handling of the same button for use in opening the in-emulator Home menu, leading to both opening at the same time when the button is pressed (but the macOS Launchpad overrides the RPCS3 one and the desktop as a whole so that's what you end up seeing).

The best solution here would be to override the macOS shortcut via disabling system gestures for connected pads, the way PPSSPP does on iOS for example. SDL2 does this already for its MFi/GameController backend used on iOS and on macOS when HIDAPI is unavailable, so forcing SDL to fallback to the MFi controller implementation on macOS would be a possible solution. I wouldn't say asking users to turn off the Launchpad shortcut in macOS Settings is the best idea, people may like to use that to e.g. launch straight into RPCS3 game shortcuts from just their controller alone.

System configuration

Hardware: MacBook Air M2 (4P+4E CPU, 8C GPU, 8GB RAM) OS: macOS 15.0 RPCS3 build: Latest master, compiled using an arm64 build script based on shinra-electric's script, with commit ID c80342e.

schm1dtmac avatar Aug 31 '24 15:08 schm1dtmac