Difference between revisions of "Controller:vibrate"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2014.01<br/> === Description === Vibrate the controller for provided amount of miliseconds. Works only if it is supported by the platf...")
 
Line 4: Line 4:
 
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
 
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
 
<source lang="lua">
 
<source lang="lua">
= Controller:vibrate(ms,)
+
Controller:vibrate(ms)
 
</source>
 
</source>
'''ms:''' (number) time in miliseconds ''''''<br/>
+
'''ms''': (number) time in miliseconds ''''''<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2014.01

Description

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

 Controller:vibrate(ms)

'ms: (number) time in miliseconds '