mirror of https://github.com/axmolengine/axmol.git
fixed #210: support accelemeter
This commit is contained in:
parent
224e9cfb6c
commit
8be8a02e73
|
@ -25,6 +25,8 @@ THE SOFTWARE.
|
|||
#ifndef __PLATFORM_IPHONE_UIACCELEROMETER_H__
|
||||
#define __PLATFORM_IPHONE_UIACCELEROMETER_H__
|
||||
|
||||
#include "CCUIAccelerometerDelegate.h"
|
||||
|
||||
namespace cocos2d {
|
||||
|
||||
class CCX_DLL UIAccelerometer
|
||||
|
@ -33,10 +35,13 @@ public:
|
|||
UIAccelerometer();
|
||||
~UIAccelerometer();
|
||||
|
||||
static UIAccelerometer* sharedAccelerometer() { return NULL; }
|
||||
static UIAccelerometer* sharedAccelerometer();
|
||||
|
||||
void removeDelegate(UIAccelerometerDelegate* pDelegate) {}
|
||||
void addDelegate(UIAccelerometerDelegate* pDelegate) {}
|
||||
void removeDelegate(UIAccelerometerDelegate* pDelegate);
|
||||
void addDelegate(UIAccelerometerDelegate* pDelegate);
|
||||
|
||||
private:
|
||||
static UIAccelerometer* m_spUIAccelerometer;
|
||||
};
|
||||
|
||||
}//namespace cocos2d
|
||||
|
|
|
@ -1 +1 @@
|
|||
37854b49027942c354d8be8381c82bd7df1a2457
|
||||
4d614609763ca8fd94ad6f76d0fd8cc17e9dd36e
|
Loading…
Reference in New Issue