MentraOS / mobile /src /effects /buttonCapturePolicy.ts
Anirudh1950's picture
Add files using upload-large-folder tool
68465df verified
Raw History Blame Contribute Delete
343 Bytes
/**
* Mentra Live owns its hardware button natively only when no miniapp has an
* active button_press subscription. Running a miniapp alone does not transfer
* button ownership.
*/
export function shouldUseMentraLiveNativeCapture(buttonPressSubscribers: readonly string[]): boolean {
return buttonPressSubscribers.length === 0
}