constructor
Class
Module: _decorator Parent Module: cc
the device accelerometer reports values for each axis in units of g-force.
Index
Methods
setAccelerometerEnabled
whether enable accelerometer eventsetAccelerometerInterval
set accelerometer interval value
Details
Methods
setAccelerometerEnabled
whether enable accelerometer event
meta | description |
---|---|
Defined in | cocos2d/core/platform/CCInputExtension.js:57 |
Parameters
isEnable
Boolean
setAccelerometerInterval
set accelerometer interval value
meta | description |
---|---|
Defined in | cocos2d/core/platform/CCInputExtension.js:85 |
Parameters
interval
Number