summaryrefslogtreecommitdiff
path: root/platform/javascript/os_javascript.cpp
diff options
context:
space:
mode:
authorpattlebass <49322676+pattlebass@users.noreply.github.com>2022-07-27 15:35:01 +0300
committerpattlebass <49322676+pattlebass@users.noreply.github.com>2022-07-27 22:54:41 +0300
commit130e715ab9a86c7363424e25df85e68ab52e85ec (patch)
tree2c2baae8a108b3ca39d20c50948923e3efe0b73b /platform/javascript/os_javascript.cpp
parent47edfa876908408828cd3b120b32e274d646ab8b (diff)
HTML5: Add support for `Input.vibrate_handheld()`
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
-rw-r--r--platform/javascript/os_javascript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp
index 1686353229..dc81b8b4b6 100644
--- a/platform/javascript/os_javascript.cpp
+++ b/platform/javascript/os_javascript.cpp
@@ -177,6 +177,10 @@ String OS_JavaScript::get_name() const {
return "HTML5";
}
+void OS_JavaScript::vibrate_handheld(int p_duration_ms) {
+ godot_js_input_vibrate_handheld(p_duration_ms);
+}
+
String OS_JavaScript::get_user_data_dir() const {
return "/userfs";
}