Difference between revisions of "Controller:vibrate"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
Controller:vibrate(ms)
 
Controller:vibrate(ms)
</source>
+
</syntaxhighlight>
  
 
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.
 
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.

Latest revision as of 15:27, 13 July 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