cocos2d-x  3.0-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Device Class Reference

#include <CCDevice.h>

Static Public Member Functions

static int getDPI ()
 Gets the DPI of device. More...
 
static void setAccelerometerEnabled (bool isEnabled)
 To enable or disable accelerometer. More...
 
local setAccelerometerEnabled ( local isEnabled)
 To enable or disable accelerometer. More...
 
static void setAccelerometerInterval (float interval)
 Sets the interval of accelerometer. More...
 

Member Function Documentation

static int getDPI ( )
static

Gets the DPI of device.

Returns
The DPI of device.
var getDPI ( )
static

Gets the DPI of device.

Returns
The DPI of device.
local getDPI ( )
static

Gets the DPI of device.

Returns
The DPI of device.
static void setAccelerometerEnabled ( bool  isEnabled)
static

To enable or disable accelerometer.

var setAccelerometerEnabled ( var  isEnabled)
static

To enable or disable accelerometer.

local setAccelerometerEnabled ( local  isEnabled)
static

To enable or disable accelerometer.

static void
setAccelerometerInterval
( float  interval)
static

Sets the interval of accelerometer.

var setAccelerometerInterval ( var  interval)
static

Sets the interval of accelerometer.

local setAccelerometerInterval ( local  interval)
static

Sets the interval of accelerometer.


The documentation for this class was generated from the following file: