From 32159c6bcef4c47a228bca87c81d01fa72c17403 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Thu, 7 Jul 2011 18:40:44 +0200 Subject: [PATCH] Make the 32'th joystick button work. --- src/Input/FGJoystickInput.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5