From: mfranz Date: Mon, 24 Nov 2008 17:16:38 +0000 (+0000) Subject: Enable support for joystick X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9bc662e655fe268fafb910ee8e1fd6645ed22b5d;p=flightgear.git Enable support for joystick bindings. Only was supported before. --- diff --git a/src/Input/input.cxx b/src/Input/input.cxx index af71173b6..419a2ee48 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -821,9 +821,8 @@ FGInput::_update_keyboard () void FGInput::_update_joystick (double dt) { - int modifiers = KEYMOD_NONE; // FIXME: any way to get the real ones? + int modifiers = fgGetKeyModifiers(); int buttons; - // float js_val, diff; float axis_values[MAX_JOYSTICK_AXES]; int i;