Download mobile/src/effects/buttonCapturePolicy.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/effects/buttonCapturePolicy.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/src/effects/buttonCapturePolicy.ts
-
curl -L -o buttonCapturePolicy.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/effects/buttonCapturePolicy.ts
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 | |
| } | |