开发者

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

开发者 https://www.devze.com 2023-02-06 02:55 出处:网络
For some reason I am getting the error o开发者_Python百科n the following line: float accelX = acceleration.x * kFilterFactor + (1- kFilterFactor)*prevX;

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

精彩评论

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