Difference between revisions of "Controller:vibrate"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2014.01<br/> | '''Available since:''' Gideros 2014.01<br/> | ||
=== Description === | === 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 | + | <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> |
<source lang="lua"> | <source lang="lua"> | ||
Controller:vibrate(ms) | Controller:vibrate(ms) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''ms''': (number) time in miliseconds <br/> | + | '''ms''': (number) <translate>time in miliseconds</translate> <br/> |
Revision as of 13:33, 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)
Parameters
ms: (number) time in miliseconds