From 4061e5bb75cf4ad338cd077713946711cd7c70ea Mon Sep 17 00:00:00 2001 From: volzhs Date: Sun, 18 Aug 2019 00:27:29 +0900 Subject: Support vibration for Android and iOS --- platform/android/java_godot_wrapper.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'platform/android/java_godot_wrapper.h') diff --git a/platform/android/java_godot_wrapper.h b/platform/android/java_godot_wrapper.h index 82c2a5d122..3e0e950180 100644 --- a/platform/android/java_godot_wrapper.h +++ b/platform/android/java_godot_wrapper.h @@ -57,6 +57,7 @@ private: jmethodID _init_input_devices = 0; jmethodID _get_surface = 0; jmethodID _is_activity_resumed = 0; + jmethodID _vibrate = 0; public: GodotJavaWrapper(JNIEnv *p_env, jobject p_godot_instance); @@ -82,6 +83,7 @@ public: void init_input_devices(); jobject get_surface(); bool is_activity_resumed(); + void vibrate(int p_duration_ms); }; #endif /* !JAVA_GODOT_WRAPPER_H */ -- cgit v1.2.3