mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-18 16:46:58 -04:00
[Crash fix] v3 input event
This commit is contained in:
@@ -26,8 +26,6 @@ typedef void GLFW_invoke_WindowSize_func(void* window, int width, int height);
|
||||
|
||||
int grabCursorX, grabCursorY, lastCursorX, lastCursorY;
|
||||
|
||||
JNIEnv* secondJNIEnv;
|
||||
|
||||
jclass inputBridgeClass_ANDROID, inputBridgeClass_JRE;
|
||||
jmethodID inputBridgeMethod_ANDROID, inputBridgeMethod_JRE;
|
||||
|
||||
@@ -100,8 +98,8 @@ void getJavaInputBridge(jclass* clazz, jmethodID* method) {
|
||||
}
|
||||
|
||||
void sendData(int type, int i1, int i2, int i3, int i4) {
|
||||
(*secondJNIEnv)->CallStaticVoidMethod(
|
||||
secondJNIEnv,
|
||||
(*runtimeJNIEnvPtr_ANDROID)->CallStaticVoidMethod(
|
||||
runtimeJNIEnvPtr_ANDROID,
|
||||
inputBridgeClass_ANDROID,
|
||||
inputBridgeMethod_ANDROID,
|
||||
type,
|
||||
|
||||
Reference in New Issue
Block a user