mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Update input_bridge.c
This commit is contained in:
parent
389919d81a
commit
689d90a262
@ -34,7 +34,7 @@ void attachThreadIfNeed(bool* isAttached, JNIEnv** secondJNIEnvPtr) {
|
|||||||
secondJNIEnv = *secondJNIEnvPtr;
|
secondJNIEnv = *secondJNIEnvPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void getJavaInputBridge(jclass* clazz, jmethod* method) {
|
void getJavaInputBridge(jclass* clazz, jmethodID* method) {
|
||||||
if (*method == NULL) {
|
if (*method == NULL) {
|
||||||
*clazz = (*secondJNIEnv)->FindClass(secondJNIEnv, "org/lwjgl/glfw/CallbackBridge");
|
*clazz = (*secondJNIEnv)->FindClass(secondJNIEnv, "org/lwjgl/glfw/CallbackBridge");
|
||||||
*method = (*secondJNIEnv)->GetStaticMethodID(secondJNIEnv, *clazz, "receiveCallback", "(ILjava/lang/String;)V");
|
*method = (*secondJNIEnv)->GetStaticMethodID(secondJNIEnv, *clazz, "receiveCallback", "(ILjava/lang/String;)V");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user