]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/input.cxx
Enable <mod-{shift,ctrl,alt,meta,super,hyper}> support for joystick
[flightgear.git] / src / Input / input.cxx
index 7197b27f9ed614ba9706ea20c43821d8ba771ff4..419a2ee48df1fd9d3bfc2a7250b444f6ec3aca6c 100644 (file)
@@ -342,7 +342,7 @@ FGInput::doMouseClick (int b, int updown, int x, int y, bool mainWindow, const o
         // The nearest one is the first one and the deepest
         // (the most specialized one in the scenegraph) is the first.
         std::vector<SGSceneryPick> pickList;
-        if (FGRenderer::pick(x, y, pickList, ea)) {
+        if (FGRenderer::pick(pickList, ea)) {
           std::vector<SGSceneryPick>::const_iterator i;
           for (i = pickList.begin(); i != pickList.end(); ++i) {
             if (i->callback->buttonPressed(b, i->info)) {
@@ -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;