title: What is wrong with this line? Using Accelerometer in Cocos2d Framework
body: <p>For some reason I am getting the error on the following line: </p>
  
  <pre><code>float accelX = acceleration.x * kFilterFactor + (1- kFilterFactor)*prevX;
  </code></pre>
  
  <p>I get the following message: </p>
  
  <pre><code>error: expected ')' before ';' token
  </code></pre>