Controller: subtitle line actions, Button Style, keyboard-only mode pause, Alt+C fixes (#316)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
YashaNoosandClaude Opus 5.5 authored and GitHub committed 2026-11-02 21:41:46 -08:00
1 parent 6d0f37ac21
commit b99409bbcd
60 files changed
+1900 -219

No files matched your search

+11
View File
@@ -341,6 +341,8 @@ const texthookerService = new Texthooker(() => {
},
};
});
/** The controller the overlay is reading, as it last reported; null before it sees one. */
let activeControllerIdFromOverlay: string | null = null;
const getDefaultSocketPathHandler = createGetDefaultSocketPathHandler({
platform: process.platform,
});
@@ -2083,11 +2085,20 @@ const { registerIpcRuntimeHandlers } = composeIpcRuntimeHandlers({
getMarkWatchedKey: () => configService.getConfig().stats.markWatchedKey,
getOverlayNotificationPosition: () => configService.getConfig().notifications.overlayPosition,
getControllerConfig: () => configService.getConfig().controller,
// Alt+C opens in its own window, which cannot see a pad until a button is pressed in
// it; the overlay has usually seen it already, so Alt+C asks which one is in use.
reportActiveController: (gamepadId) => {
activeControllerIdFromOverlay = gamepadId;
},
getActiveControllerId: () => activeControllerIdFromOverlay,
saveControllerConfig: (update) => {
const currentRawConfig = configService.getRawConfig();
configService.patchRawConfig({
controller: applyControllerConfigUpdate(currentRawConfig.controller, update),
});
// The overlay reads controller settings once at startup, and Alt+C runs in its own
// window, so remaps would otherwise only apply after a restart.
overlayManager.broadcastToOverlayWindows(IPC_CHANNELS.event.controllerConfigChanged);
},
getSecondarySubMode: () => appState.secondarySubMode,
getRuntimeOptions: () => getRuntimeOptionsStateHandler(),