1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Enable the ability to use Godot as a subview within an Android app

(cherry picked from commit 920639511d)
This commit is contained in:
Fredia Huya-Kouadio
2020-06-15 00:46:13 -07:00
parent c8859f0463
commit e99dc65b64
16 changed files with 340 additions and 226 deletions

View File

@@ -43,7 +43,9 @@
class GodotJavaWrapper {
private:
jobject godot_instance;
jclass cls;
jobject activity;
jclass godot_class;
jclass activity_class;
jmethodID _on_video_init = 0;
jmethodID _restart = 0;
@@ -62,9 +64,10 @@ private:
jmethodID _vibrate = 0;
jmethodID _get_input_fallback_mapping = 0;
jmethodID _on_godot_main_loop_started = 0;
jmethodID _get_class_loader = 0;
public:
GodotJavaWrapper(JNIEnv *p_env, jobject p_godot_instance);
GodotJavaWrapper(JNIEnv *p_env, jobject p_activity, jobject p_godot_instance);
~GodotJavaWrapper();
jobject get_activity();