summaryrefslogtreecommitdiff
path: root/doc/classes/Input.xml
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 /doc/classes/Input.xml
parent86371b7298e32356c8ce892f768c56bec7088292 (diff)
Support vibration for Android and iOS
Diffstat (limited to 'doc/classes/Input.xml')
-rw-r--r--doc/classes/Input.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml
index 91ebcd52f6..4d97db330a 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -364,6 +364,16 @@
Stops the vibration of the joypad.
</description>
</method>
+ <method name="vibrate_handheld">
+ <return type="void">
+ </return>
+ <argument index="0" name="duration_ms" type="int" default="500">
+ </argument>
+ <description>
+ Vibrate Android and iOS devices.
+ [b]Note:[/b] It needs VIBRATE permission for Android at export settings. iOS does not support duration.
+ </description>
+ </method>
<method name="warp_mouse_position">
<return type="void">
</return>