marmalade acceleromater improvement

This commit is contained in:
fape 2012-12-24 17:24:10 +01:00
parent ecc515c63f
commit 3550550568
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ void CCApplication::ccAccelerationUpdate()
{
// Accelerometer doesn't work on Marmalade X86 MacOS-X simulator
#if !(defined(__APPLE__) && defined(I3D_ARCH_X86))
CCAccelerometer::sharedAccelerometer()->update((float)s3eAccelerometerGetX(), (float)s3eAccelerometerGetY(), (float)s3eAccelerometerGetZ(), s3eTimerGetMs()); // MH: Added casting to float
CCDirector* pDirector = CCDirector::sharedDirector();
pDirector->getAccelerometer()->update((float)s3eAccelerometerGetX(), (float)s3eAccelerometerGetY(), (float)s3eAccelerometerGetZ(), s3eTimerGetMs()); // MH: Added casting to float
#endif
}