]> git.mxchange.org Git - flightgear.git/commitdiff
Make the 32'th joystick button work.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Thu, 7 Jul 2011 16:40:44 +0000 (18:40 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Thu, 7 Jul 2011 16:41:26 +0000 (18:41 +0200)
src/Input/FGJoystickInput.cxx

index 506de36bb3c61a40b0c5507d691e45df5176ba66..3f490f5cbef9153afc9d5f1cc1018fcb3fa2062a 100644 (file)
@@ -329,7 +329,7 @@ void FGJoystickInput::update( double dt )
       FGButton &b = bindings[i].buttons[j];
       b.last_dt += dt;
       if(b.last_dt >= b.interval_sec) {
-        bindings[i].buttons[j].update( modifiers, (buttons & (1 << j)) > 0 );
+        bindings[i].buttons[j].update( modifiers, (buttons & (1u << j)) > 0 );
         b.last_dt -= b.interval_sec;
       }
     }