2014-09-26 13:45:33 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Device
|
|
|
|
-- @parent_module cc
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- To enable or disable accelerometer.
|
|
|
|
-- @function [parent=#Device] setAccelerometerEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool isEnabled
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Device#Device self (return value: cc.Device)
|
2014-09-26 13:45:33 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Device] setKeepScreenOn
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool value
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Device#Device self (return value: cc.Device)
|
2014-09-26 13:45:33 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Sets the interval of accelerometer.
|
|
|
|
-- @function [parent=#Device] setAccelerometerInterval
|
|
|
|
-- @param self
|
|
|
|
-- @param #float interval
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Device#Device self (return value: cc.Device)
|
2014-09-26 13:45:33 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Gets the DPI of device<br>
|
|
|
|
-- return The DPI of device.
|
|
|
|
-- @function [parent=#Device] getDPI
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
return nil
|