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
+10 -1
View File
@@ -17,7 +17,9 @@ const IPC = {
playbackStartLive: 'playback:start-live',
playbackStartVod: 'playback:start-vod',
playbackStop: 'playback:stop',
playbackEvent: 'playback:event'
playbackEvent: 'playback:event',
gamepadInput: 'gamepad-input'
} as const
export type AuthStatus = 'logged-out' | 'logged-in'
@@ -117,6 +119,13 @@ const api = {
ipcRenderer.on(IPC.playbackEvent, listener)
return () => ipcRenderer.removeListener(IPC.playbackEvent, listener)
}
},
gamepad: {
onInput: (cb: (key: string) => void): (() => void) => {
const listener = (_e: IpcRendererEvent, key: string): void => cb(key)
ipcRenderer.on(IPC.gamepadInput, listener)
return () => ipcRenderer.removeListener(IPC.gamepadInput, listener)
}
}
}