1
0
Fork 0

Make the 32'th joystick button work.

This commit is contained in:
Mathias Froehlich 2011-07-07 18:40:44 +02:00
parent eb3f135985
commit 32159c6bce

View 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;
}
}