Difference between revisions of "Controller:vibrate"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2014.01<br/> | + | '''<translate>Available since</translate>:''' Gideros 2014.01<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<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> | <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 === | + | === <translate>Parameters</translate> === |
'''ms''': (number) <translate>time in miliseconds</translate> <br/> | '''ms''': (number) <translate>time in miliseconds</translate> <br/> |
Revision as of 07:27, 24 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