add support for the boneheaded method of receiving input events that is used by NativeActivity apps

currently, our "not-actually-a-queue" implementation is quite ugly,
hopefully it might be possible to make it look somewhat sane while
not needing to make it as much of a queue as it is on android
This commit is contained in:
Mis012
2022-11-11 19:18:21 +01:00
parent 231ac88dbd
commit 33b4515cb9
12 changed files with 291 additions and 36 deletions

View File

@@ -122,18 +122,18 @@ JNIEXPORT void JNICALL Java_android_app_NativeActivity_onSurfaceDestroyedNative
/*
* Class: android_app_NativeActivity
* Method: onInputQueueCreatedNative
* Signature: (JI)V
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_android_app_NativeActivity_onInputQueueCreatedNative
(JNIEnv *, jobject, jlong, jint);
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: android_app_NativeActivity
* Method: onInputQueueDestroyedNative
* Signature: (JI)V
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_android_app_NativeActivity_onInputQueueDestroyedNative
(JNIEnv *, jobject, jlong, jint);
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: android_app_NativeActivity