cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCAccelerometer Class Reference

The CCAccelerometer class lets you register to receive acceleration-related data from the onboard hardware. More...

#include <CCAccelerometer.h>

Public Member Functions

 CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
void update (float x, float y, float z, long sensorTimeStamp)
var update ( var x, var y, var z, var sensorTimeStamp)
local update ( local x, local y, local z, local sensorTimeStamp)
 CCAccelerometer ()
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
var setAccelerometerInterval ( var interval)
local setAccelerometerInterval ( local interval)
void update (long sensorTimeStamp, double x, double y, double z)
var update ( var sensorTimeStamp, var x, var y, var z)
local update ( local sensorTimeStamp, local x, local y, local z)
 CCAccelerometer ()
 ~CCAccelerometer ()
void removeDelegate (CCAccelerometerDelegate *pDelegate)
void addDelegate (CCAccelerometerDelegate *pDelegate)
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void removeDelegate (CCAccelerometerDelegate *pDelegate)
void addDelegate (CCAccelerometerDelegate *pDelegate)
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
var setAccelerometerInterval ( var interval)
local setAccelerometerInterval ( local interval)
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
var setAccelerometerInterval ( var interval)
local setAccelerometerInterval ( local interval)
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
void update (float x, float y, float z, uint64 sensorTimeStamp)
var update ( var x, var y, var z, var sensorTimeStamp)
local update ( local x, local y, local z, local sensorTimeStamp)
 CCAccelerometer ()
 ~CCAccelerometer ()
void removeDelegate (CCAccelerometerDelegate *pDelegate)
void addDelegate (CCAccelerometerDelegate *pDelegate)
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
var setAccelerometerInterval ( var interval)
local setAccelerometerInterval ( local interval)
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
void update (float x, float y, float z, long sensorTimeStamp)
var update ( var x, var y, var z, var sensorTimeStamp)
local update ( local x, local y, local z, local sensorTimeStamp)
 CCAccelerometer ()
 CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
var setAccelerometerInterval ( var interval)
local setAccelerometerInterval ( local interval)
void update (double x, double y, double z, double timestamp)
var update ( var x, var y, var z, var timestamp)
local update ( local x, local y, local z, local timestamp)
 CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
 ~CCAccelerometer ()
void setDelegate (CCAccelerometerDelegate *pDelegate)
void setAccelerometerInterval (float interval)
var setAccelerometerInterval ( var interval)
local setAccelerometerInterval ( local interval)

Static Public Member Functions

static CCAccelerometersharedAccelerometer ()
static CCAccelerometersharedAccelerometer ()
static CCAccelerometersharedAccelerometer ()
 Returns the shared accelerometer object for the system. More...
 
var sharedAccelerometer ()
 Returns the shared accelerometer object for the system. More...
 
local sharedAccelerometer ()
 Returns the shared accelerometer object for the system. More...
 
static CCAccelerometersharedAccelerometer ()

Detailed Description

The CCAccelerometer class lets you register to receive acceleration-related data from the onboard hardware.

Constructor & Destructor Documentation

var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )
var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )
CCAccelerometer ( )
inline
var CCAccelerometer ( )
inline
local CCAccelerometer ( )
inline
~CCAccelerometer ( )
inline
var ~CCAccelerometer ( )
inline
local ~CCAccelerometer ( )
inline
var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )
CCAccelerometer ( )
inline
var CCAccelerometer ( )
inline
local CCAccelerometer ( )
inline
~CCAccelerometer ( )
inline
var ~CCAccelerometer ( )
inline
local ~CCAccelerometer ( )
inline
CCAccelerometer ( )
inline
var CCAccelerometer ( )
inline
local CCAccelerometer ( )
inline
~CCAccelerometer ( )
inline
var ~CCAccelerometer ( )
inline
local ~CCAccelerometer ( )
inline
var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )
CCAccelerometer ( )
inline
var CCAccelerometer ( )
inline
local CCAccelerometer ( )
inline
~CCAccelerometer ( )
inline
var ~CCAccelerometer ( )
inline
local ~CCAccelerometer ( )
inline
var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )
var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )
var CCAccelerometer ( )
local CCAccelerometer ( )
var ~CCAccelerometer ( )
local ~CCAccelerometer ( )

Member Function Documentation

void addDelegate ( CCAccelerometerDelegate pDelegate)
inline
var addDelegate ( var  pDelegate)
inline
local addDelegate ( local  pDelegate)
inline
void addDelegate ( CCAccelerometerDelegate pDelegate)
inline
var addDelegate ( var  pDelegate)
inline
local addDelegate ( local  pDelegate)
inline
void addDelegate ( CCAccelerometerDelegate pDelegate)
inline
var addDelegate ( var  pDelegate)
inline
local addDelegate ( local  pDelegate)
inline
void removeDelegate ( CCAccelerometerDelegate pDelegate)
inline
var removeDelegate ( var  pDelegate)
inline
local removeDelegate ( local  pDelegate)
inline
void removeDelegate ( CCAccelerometerDelegate pDelegate)
inline
var removeDelegate ( var  pDelegate)
inline
local removeDelegate ( local  pDelegate)
inline
void removeDelegate ( CCAccelerometerDelegate pDelegate)
inline
var removeDelegate ( var  pDelegate)
inline
local removeDelegate ( local  pDelegate)
inline
void setAccelerometerInterval ( float  interval)
inline
var setAccelerometerInterval ( var  interval)
inline
local setAccelerometerInterval ( local  interval)
inline
void setAccelerometerInterval ( float  interval)
inline
var setAccelerometerInterval ( var  interval)
inline
local setAccelerometerInterval ( local  interval)
inline
void setAccelerometerInterval ( float  interval)
inline
var setAccelerometerInterval ( var  interval)
inline
local setAccelerometerInterval ( local  interval)
inline
void setAccelerometerInterval ( float  interval)
var setAccelerometerInterval ( var  interval)
local setAccelerometerInterval ( local  interval)
void setAccelerometerInterval ( float  interval)
inline
var setAccelerometerInterval ( var  interval)
inline
local setAccelerometerInterval ( local  interval)
inline
void setAccelerometerInterval ( float  interval)
var setAccelerometerInterval ( var  interval)
local setAccelerometerInterval ( local  interval)
void setAccelerometerInterval ( float  interval)
var setAccelerometerInterval ( var  interval)
local setAccelerometerInterval ( local  interval)
void setAccelerometerInterval ( float  interval)
var setAccelerometerInterval ( var  interval)
local setAccelerometerInterval ( local  interval)
void setAccelerometerInterval ( float  interval)
var setAccelerometerInterval ( var  interval)
local setAccelerometerInterval ( local  interval)
void setAccelerometerInterval ( float  interval)
inline
var setAccelerometerInterval ( var  interval)
inline
local setAccelerometerInterval ( local  interval)
inline
void setAccelerometerInterval ( float  interval)
inline
var setAccelerometerInterval ( var  interval)
inline
local setAccelerometerInterval ( local  interval)
inline
void setDelegate ( CCAccelerometerDelegate pDelegate)
inline
var setDelegate ( var  pDelegate)
inline
local setDelegate ( local  pDelegate)
inline
void setDelegate ( CCAccelerometerDelegate pDelegate)
inline
var setDelegate ( var  pDelegate)
inline
local setDelegate ( local  pDelegate)
inline
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
void setDelegate ( CCAccelerometerDelegate pDelegate)
inline
var setDelegate ( var  pDelegate)
inline
local setDelegate ( local  pDelegate)
inline
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
void setDelegate ( CCAccelerometerDelegate pDelegate)
inline
var setDelegate ( var  pDelegate)
inline
local setDelegate ( local  pDelegate)
inline
void setDelegate ( CCAccelerometerDelegate pDelegate)
var setDelegate ( var  pDelegate)
local setDelegate ( local  pDelegate)
static CCAccelerometer*
sharedAccelerometer
( )
inlinestatic
var sharedAccelerometer ( )
inlinestatic
local sharedAccelerometer ( )
inlinestatic
static CCAccelerometer*
sharedAccelerometer
( )
inlinestatic
var sharedAccelerometer ( )
inlinestatic
local sharedAccelerometer ( )
inlinestatic
static CCAccelerometer*
sharedAccelerometer
( )
inlinestatic
var sharedAccelerometer ( )
inlinestatic
local sharedAccelerometer ( )
inlinestatic
static CCAccelerometer*
sharedAccelerometer
( )
static

Returns the shared accelerometer object for the system.

var sharedAccelerometer ( )
static

Returns the shared accelerometer object for the system.

local sharedAccelerometer ( )
static

Returns the shared accelerometer object for the system.

void update ( double  x,
double  y,
double  z,
double  timestamp 
)
var update ( var  x,
var  y,
var  z,
var  timestamp 
)
local update ( local  x,
local  y,
local  z,
local  timestamp 
)
void update ( long  sensorTimeStamp,
double  x,
double  y,
double  z 
)
var update ( var  sensorTimeStamp,
var  x,
var  y,
var  z 
)
local update ( local  sensorTimeStamp,
local  x,
local  y,
local  z 
)
void update ( float  x,
float  y,
float  z,
long  sensorTimeStamp 
)
var update ( var  x,
var  y,
var  z,
var  sensorTimeStamp 
)
local update ( local  x,
local  y,
local  z,
local  sensorTimeStamp 
)
void update ( float  x,
float  y,
float  z,
long  sensorTimeStamp 
)
var update ( var  x,
var  y,
var  z,
var  sensorTimeStamp 
)
local update ( local  x,
local  y,
local  z,
local  sensorTimeStamp 
)
void update ( float  x,
float  y,
float  z,
uint64  sensorTimeStamp 
)
var update ( var  x,
var  y,
var  z,
var  sensorTimeStamp 
)
local update ( local  x,
local  y,
local  z,
local  sensorTimeStamp 
)

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