summaryrefslogtreecommitdiff
path: root/main/input_default.cpp
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2019-08-18 00:27:29 +0900
committervolzhs <volzhs@gmail.com>2019-08-21 23:38:53 +0900
commit4061e5bb75cf4ad338cd077713946711cd7c70ea (patch)
treec5785dda4fffaf01ed6d751b9638dea62421d257 /main/input_default.cpp
parent86371b7298e32356c8ce892f768c56bec7088292 (diff)
Support vibration for Android and iOS
Diffstat (limited to 'main/input_default.cpp')
-rw-r--r--main/input_default.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/input_default.cpp b/main/input_default.cpp
index 5ba98c20e2..60675f1115 100644
--- a/main/input_default.cpp
+++ b/main/input_default.cpp
@@ -472,6 +472,10 @@ void InputDefault::stop_joy_vibration(int p_device) {
joy_vibration[p_device] = vibration;
}
+void InputDefault::vibrate_handheld(int p_duration_ms) {
+ OS::get_singleton()->vibrate_handheld(p_duration_ms);
+}
+
void InputDefault::set_gravity(const Vector3 &p_gravity) {
_THREAD_SAFE_METHOD_