Difference between revisions of "Controller:vibrate"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2014.01<br/>
'''<translate>Available since</translate>:''' Gideros 2014.01<br/>
+
'''Class:''' [[Controller]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Controller|Controller]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Vibrate the controller for provided amount of miliseconds. Works only if it is supported by the platform and controller, don't rely on it to work, and only use as addition to the game play</translate>
+
Vibrates the controller for provided amount of miliseconds.
 
<source lang="lua">
 
<source lang="lua">
Controller:vibrate(ms)
+
Controller:vibrate(ms)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''ms''': (number) <translate>time in miliseconds</translate> <br/>
+
Works only if it is supported by the platform and controller, don't rely on it to work, and only use as addition to the game play.
 +
 
 +
=== Parameters ===
 +
'''ms''': (number) time in miliseconds<br/>
  
 
{{Controller}}
 
{{Controller}}

Revision as of 06:59, 11 June 2023

Available since: Gideros 2014.01
Class: Controller

Description

Vibrates the controller for provided amount of miliseconds.

Controller:vibrate(ms)

Works only if it is supported by the platform and controller, don't rely on it to work, and only use as addition to the game play.

Parameters

ms: (number) time in miliseconds