MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CacheJavaMethodRefs

Function CacheJavaMethodRefs

src/android/Window_Android.c:655–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653};
654
655static void CacheJavaMethodRefs(JNIEnv* env) {
656 JAVA_openKeyboard = Java_GetIMethod(env, "openKeyboard", "(Ljava/lang/String;I)V");
657 JAVA_setKeyboardText = Java_GetIMethod(env, "setKeyboardText", "(Ljava/lang/String;)V");
658 JAVA_closeKeyboard = Java_GetIMethod(env, "closeKeyboard", "()V");
659
660 JAVA_getWindowState = Java_GetIMethod(env, "getWindowState", "()I");
661 JAVA_enterFullscreen = Java_GetIMethod(env, "enterFullscreen", "()V");
662 JAVA_exitFullscreen = Java_GetIMethod(env, "exitFullscreen", "()V");
663
664 JAVA_getDpiX = Java_GetIMethod(env, "getDpiX", "()F");
665 JAVA_getDpiY = Java_GetIMethod(env, "getDpiY", "()F");
666 JAVA_setupForGame = Java_GetIMethod(env, "setupForGame", "()V");
667
668 JAVA_processedSurfaceDestroyed = Java_GetIMethod(env, "processedSurfaceDestroyed", "()V");
669 JAVA_processEvents = Java_GetIMethod(env, "processEvents", "()V");
670
671 JAVA_showAlert = Java_GetIMethod(env, "showAlert", "(Ljava/lang/String;Ljava/lang/String;)V");
672 JAVA_setRequestedOri = Java_GetIMethod(env, "setRequestedOrientation", "(I)V");
673 JAVA_openFileDialog = Java_GetIMethod(env, "openFileDialog", "(Ljava/lang/String;)I");
674 JAVA_saveFileDialog = Java_GetIMethod(env, "saveFileDialog", "(Ljava/lang/String;Ljava/lang/String;)I");
675
676 JAVA_getClipboardText = Java_GetIMethod(env, "getClipboardText", "()Ljava/lang/String;");
677 JAVA_setClipboardText = Java_GetIMethod(env, "setClipboardText", "(Ljava/lang/String;)V");
678}
679
680void Window_PreInit(void) {
681 JNIEnv* env;

Callers 1

Window_PreInitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected