static FGInput * default_input = 0;
+\f
+////////////////////////////////////////////////////////////////////////
+// Local functions.
+////////////////////////////////////////////////////////////////////////
+
+static bool
+getModShift ()
+{
+ return bool(fgGetKeyModifiers() & KEYMOD_SHIFT);
+}
+
+static bool
+getModCtrl ()
+{
+ return bool(fgGetKeyModifiers() & KEYMOD_CTRL);
+}
+
+static bool
+getModAlt ()
+{
+ return bool(fgGetKeyModifiers() & KEYMOD_ALT);
+}
\f
////////////////////////////////////////////////////////////////////////
_postinit_joystick();
}
+void
+FGInput::bind ()
+{
+ fgTie("/devices/status/keyboard/shift", getModShift);
+ fgTie("/devices/status/keyboard/ctrl", getModCtrl);
+ fgTie("/devices/status/keyboard/alt", getModAlt);
+}
+
+void
+FGInput::unbind ()
+{
+ fgUntie("/devices/status/keyboard/shift");
+ fgUntie("/devices/status/keyboard/ctrl");
+ fgUntie("/devices/status/keyboard/alt");
+}
+
void
FGInput::update (double dt)
{