stub out pico permissions so we can compile
@@ -224,6 +224,7 @@ static struct {
arr_t(NativeCanvas) canvases;
void (*renderCallback)(void*);
void* renderUserdata;
+ permissionsCallback onPermissionEvent;
} state;
static bool pico_init(float supersample, float offset, uint32_t msaa) {
@@ -414,6 +415,20 @@ static void pico_update(float dt) {
//
}
+void lovrPlatformRequestPermission(Permission permission) {
+ // todo
+}
+
+void lovrPlatformOnPermissionEvent(permissionsCallback callback) {
+ state.onPermissionEvent = callback;
+}
+
+JNIEXPORT void JNICALL Java_org_lovr_app_Activity_lovrPermissionEvent(JNIEnv* jni, jobject activity, jint permission, jboolean granted) {
+ if (state.onPermissionEvent) {
+ state.onPermissionEvent(permission, granted);
+ }
+}
+
HeadsetInterface lovrHeadsetPicoDriver = {
.driverType = DRIVER_PICO,
.init = pico_init,
