mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 10:43:48 +02:00
fix: Add HMD AFK state update flow and IPC bridge function
This commit is contained in:
@@ -97,6 +97,19 @@ export async function runUpdateIsGameRunningFlow(
|
||||
vrStore.updateOpenVR();
|
||||
}
|
||||
|
||||
/**
|
||||
* Orchestrates the HMD AFK state update from IPC.
|
||||
* @param {boolean} isHmdAfkArg HMD AFK flag from VR polling.
|
||||
*/
|
||||
export function runUpdateIsHmdAfkFlow(isHmdAfkArg) {
|
||||
const gameStore = useGameStore();
|
||||
|
||||
if (isHmdAfkArg !== gameStore.isHmdAfk) {
|
||||
gameStore.setIsHmdAfk(isHmdAfkArg);
|
||||
console.log('isHmdAfk', isHmdAfkArg);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs auto cache management if enabled.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user