summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-08-21 21:10:22 +0200
committerGitHub <noreply@github.com>2019-08-21 21:10:22 +0200
commit1a4dbd9ee2fd471108dc4d217aacab74cf412925 (patch)
tree2563d9aa95cd5b9d5a1a15c76664df2e5d333be5 /doc/classes
parente132c36261e832b7b461d97909bf15786acc85ba (diff)
parent4061e5bb75cf4ad338cd077713946711cd7c70ea (diff)
Merge pull request #31437 from volzhs/vibrate-mobile
Support vibration for Android and iOS
Diffstat (limited to 'doc/classes')
-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 33b9da6fdf..5fd5e8c3c0 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -372,6 +372,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>