You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Android: Allow Mouse Capture
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <android/log.h>
|
||||
#include <jni.h>
|
||||
|
||||
#include "java_godot_view_wrapper.h"
|
||||
#include "string_android.h"
|
||||
|
||||
// Class that makes functions in java/src/org/godotengine/godot/Godot.java callable from C++
|
||||
@@ -47,6 +48,8 @@ private:
|
||||
jclass godot_class;
|
||||
jclass activity_class;
|
||||
|
||||
GodotJavaViewWrapper *_godot_view = nullptr;
|
||||
|
||||
jmethodID _on_video_init = 0;
|
||||
jmethodID _restart = 0;
|
||||
jmethodID _finish = 0;
|
||||
@@ -74,6 +77,7 @@ public:
|
||||
jobject get_member_object(const char *p_name, const char *p_class, JNIEnv *p_env = nullptr);
|
||||
|
||||
jobject get_class_loader();
|
||||
GodotJavaViewWrapper *get_godot_view();
|
||||
|
||||
void on_video_init(JNIEnv *p_env = nullptr);
|
||||
void on_godot_main_loop_started(JNIEnv *p_env = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user