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
|
|
|
|
|
|
|
--------------------------------
|
2015-03-24 16:35:26 +08:00
|
|
|
-- Controls whether the screen should remain on.<br>
|
|
|
|
-- param keepScreenOn One flag indicating that the screen should remain on.
|
2014-09-26 13:45:33 +08:00
|
|
|
-- @function [parent=#Device] setKeepScreenOn
|
|
|
|
-- @param self
|
2015-03-24 16:35:26 +08:00
|
|
|
-- @param #bool keepScreenOn
|
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
|