diff --git a/Natives/JavaLauncher.c b/Natives/JavaLauncher.c index 6154c929..9f883059 100644 --- a/Natives/JavaLauncher.c +++ b/Natives/JavaLauncher.c @@ -48,6 +48,8 @@ typedef jint JLI_Launch_func(int argc, char ** argv, /* main argc, argc */ static int margc = 0; static char* margv[1000]; +static int pfd[2]; +static pthread_t logger; void init_loadCustomEnv() { FILE *envFile = fopen("/var/mobile/Documents/.pojavlauncher/custom_env.txt", "r"); diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index 3a46e332..5a0d199d 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -268,7 +268,7 @@ BOOL isNotifRemoved; // [self setNeedsDisplay] // NSLog(@"swapbuffer"); - // Remove notifications, so rendering will be manually controlled! + // Hack: Remove notifications, so rendering will be manually controlled! if (isNotifRemoved == NO) { isNotifRemoved = YES; [[NSNotificationCenter defaultCenter] removeObserver:self @@ -325,7 +325,7 @@ BOOL isNotifRemoved; break; } } else if (@available(iOS 13.4, *)) { - // Recheck @available for fix compile warnings + // Recheck @available for suppressing compile warnings // Mouse clicks are handled here int held = event == ACTION_MOVE || event == ACTION_UP; @@ -439,7 +439,7 @@ BOOL isNotifRemoved; velocity.y = 1.0f; } if (velocity.x != 0.0f || velocity.y != 0.0f) { - Java_org_lwjgl_glfw_CallbackBridge_nativeSendScroll(NULL, NULL, (jdouble) velocity.x, (jdouble) velocity.y); + Java_org_lwjgl_glfw_CallbackBridge_nativeSendScroll(NULL, NULL, (jdouble) velocity.x * 4.0, (jdouble) velocity.y * 4.0); } } }