diff options
| author | JMC47 <JMC4789@gmail.com> | 2019-01-24 20:02:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-24 20:02:23 -0500 |
| commit | ddb1fbf7017644666f0670d3d8de1b05787c8f96 (patch) | |
| tree | 68930de37be124b0f1d8f92db9c393aad7de9cb7 /Source/Android/jni/AndroidCommon/IDCache.cpp | |
| parent | f64b30156f83a4d3c70c2cc0ebd649967788f990 (diff) | |
| parent | e15af5077f8c9605248a58e3172c8c1c45bd8589 (diff) | |
Merge pull request #7500 from zackhow/pointer
Android: Add IR pointer control to touch overlay
Diffstat (limited to 'Source/Android/jni/AndroidCommon/IDCache.cpp')
| -rw-r--r-- | Source/Android/jni/AndroidCommon/IDCache.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Android/jni/AndroidCommon/IDCache.cpp b/Source/Android/jni/AndroidCommon/IDCache.cpp index 42a5632139..9841506fab 100644 --- a/Source/Android/jni/AndroidCommon/IDCache.cpp +++ b/Source/Android/jni/AndroidCommon/IDCache.cpp @@ -12,6 +12,7 @@ static JavaVM* s_java_vm; static jclass s_native_library_class;
static jmethodID s_display_alert_msg;
+static jmethodID s_get_update_touch_pointer;
static jclass s_game_file_class;
static jfieldID s_game_file_pointer;
@@ -41,6 +42,11 @@ jmethodID GetDisplayAlertMsg() return s_display_alert_msg;
}
+jmethodID GetUpdateTouchPointer()
+{
+ return s_get_update_touch_pointer;
+}
+
jclass GetAnalyticsClass()
{
return s_analytics_class;
@@ -98,6 +104,8 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) s_native_library_class = reinterpret_cast<jclass>(env->NewGlobalRef(native_library_class));
s_display_alert_msg = env->GetStaticMethodID(s_native_library_class, "displayAlertMsg",
"(Ljava/lang/String;Ljava/lang/String;Z)Z");
+ s_get_update_touch_pointer =
+ env->GetStaticMethodID(IDCache::GetNativeLibraryClass(), "updateTouchPointer", "()V");
const jclass game_file_class = env->FindClass("org/dolphinemu/dolphinemu/model/GameFile");
s_game_file_class = reinterpret_cast<jclass>(env->NewGlobalRef(game_file_class));
|
