mirror of https://github.com/axmolengine/axmol.git
marmalade acceleromater improvement
This commit is contained in:
parent
ecc515c63f
commit
3550550568
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue