[Input pipe] Compile fix

This commit is contained in:
Duy Tran Khanh 2020-11-24 20:06:14 +07:00 committed by GitHub
parent 0d8bde7e30
commit 8a4e3de0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ jboolean lwjgl2_callCharEvent(jchar keyChar) {
} else if (!lwjgl2KeyboardClass && !lwjgl2KeyboardCharMethod) {
lwjgl2KeyboardClass = (*runtimeJNIEnvPtr_ANDROID)->FindClass(runtimeJNIEnvPtr_ANDROID, "org/lwjgl/input/Keyboard");
assert(lwjgl2KeyboardClass != NULL);
lwjgl2KeyboardCharMethod = (*runtimeJNIEnvPtr_ANDROID)->GetStaticMethodID(runtimeJNIEnvPtr_ANDROID, *clazz, "addCharEvent", "(IC)V");
lwjgl2KeyboardCharMethod = (*runtimeJNIEnvPtr_ANDROID)->GetStaticMethodID(runtimeJNIEnvPtr_ANDROID, lwjgl2KeyboardClass, "addCharEvent", "(IC)V");
assert(lwjgl2KeyboardCharMethod != NULL);
}