fixed #210: support accelemeter

This commit is contained in:
minggo 2010-11-22 11:11:20 +08:00
parent 224e9cfb6c
commit 8be8a02e73
2 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -1 +1 @@
37854b49027942c354d8be8381c82bd7df1a2457
4d614609763ca8fd94ad6f76d0fd8cc17e9dd36e