You've already forked godot
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user