recently, I worked on developing game using cocos2d-x on andriod, and found that this class CCAccelerometer maybe exists some things wrong.
first is the function CCAccelerometer::update(float x, float y, float z, long sensorTimeStamp) , the type of fourth parameter ‘sensorTimeStamp’ is long. In java, jlong is 64bit, but under c++, my environment is 32 bit, so the ‘long’ type is 32 bit also, thus it will make data loss.
second is why these AccelerationValue x, y, z were divided by TG3_GRAVITY_EARTH defined as 9.80665f ? Is It make sense?