Phase 6 Fix 3

- Gamepad steamdeck repariert
- Navigation , Start und Stopp der Wiedergabe ist jetzt möglich
This commit is contained in:
Andre
2026-04-10 22:03:42 +02:00
parent ac9f9ea94f
commit f592de7aeb
11 changed files with 354 additions and 30 deletions
+5
View File
@@ -78,6 +78,11 @@ export function registerIpcHandlers(
playback.on('playback-event', (event: PlaybackEvent) => {
for (const win of BrowserWindow.getAllWindows()) {
win.webContents.send(IPC.playbackEvent, event)
// Auf Windows stiehlt mpv den OS-Fokus → Electron refokussieren,
// damit navigator.getGamepads() weiter Daten liefert.
if (process.platform === 'win32' && event.kind === 'started') {
win.focus()
}
}
})
}