开发者

What is wrong with this line? Using Accelerometer in Cocos2d Framework

For some reason I am getting the error o开发者_Python百科n the following line:

float accelX = acceleration.x * kFilterFactor + (1- kFilterFactor)*prevX;

I get the following message:

error: expected ')' before ';' token


Maybe the error is not in this line. Try to put it

float32 accelX = 0;

and check if the error is gone. If not - the error is not in this line.


check the previous line i think you didn't put a ; in that line

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜