Controller:vibrate: Difference between revisions
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..." |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2014.01<br/> | '''Available since:''' Gideros 2014.01<br/> | ||
'''Class:''' [[Controller]]<br/> | |||
=== Description === | === Description === | ||
Vibrates the controller for provided amount of miliseconds. | |||
<syntaxhighlight lang="lua"> | |||
= | Controller:vibrate(ms) | ||
</syntaxhighlight> | |||
'''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<br/> | |||
{{Controller}} | |||
Latest revision as of 13: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