mirror of https://github.com/axmolengine/axmol.git
32 lines
767 B
Lua
32 lines
767 B
Lua
|
|
--------------------------------
|
|
-- @module Device
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- To enable or disable accelerometer.
|
|
-- @function [parent=#Device] setAccelerometerEnabled
|
|
-- @param self
|
|
-- @param #bool isEnabled
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Device] setKeepScreenOn
|
|
-- @param self
|
|
-- @param #bool value
|
|
|
|
--------------------------------
|
|
-- Sets the interval of accelerometer.
|
|
-- @function [parent=#Device] setAccelerometerInterval
|
|
-- @param self
|
|
-- @param #float interval
|
|
|
|
--------------------------------
|
|
-- 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
|