Add signal support to Godot Android plugin:

Supports registering and emitting signal from a Godot Android plugin
This commit is contained in:
fhuya 2020-03-25 14:01:12 -07:00
parent 0826b63c7e
commit 948c3cbb88
8 changed files with 480 additions and 188 deletions

View file

@ -35,6 +35,7 @@
#include "android/asset_manager_jni.h"
#include "api/java_class_wrapper.h"
#include "api/jni_singleton.h"
#include "audio_driver_jandroid.h"
#include "core/engine.h"
#include "core/input/input_filter.h"
@ -162,6 +163,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_setup(JNIEnv *env, jc
}
java_class_wrapper = memnew(JavaClassWrapper(godot_java->get_activity()));
ClassDB::register_class<JNISingleton>();
}
JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_resize(JNIEnv *env, jclass clazz, jint width, jint height) {