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

Support vibration for Android and iOS

This commit is contained in:
volzhs
2019-08-18 00:27:29 +09:00
parent 86371b7298
commit 4061e5bb75
15 changed files with 68 additions and 0 deletions

View File

@@ -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 */