Controller:vibrate

From GiderosMobile
Revision as of 15:25, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2014.01
Class: Controller

Description

Vibrates the controller for provided amount of miliseconds. <syntaxhighlight lang="lua"> Controller:vibrate(ms) </source>

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