From: Mathias Froehlich Date: Thu, 7 Jul 2011 16:40:44 +0000 (+0200) Subject: Make the 32'th joystick button work. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32159c6bcef4c47a228bca87c81d01fa72c17403;p=flightgear.git Make the 32'th joystick button work. --- diff --git a/src/Input/FGJoystickInput.cxx b/src/Input/FGJoystickInput.cxx index 506de36bb..3f490f5cb 100644 --- a/src/Input/FGJoystickInput.cxx +++ b/src/Input/FGJoystickInput.cxx @@ -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; } }