X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2FFGMouseInput.cxx;h=8ebdb6becffdd8419e97a137fe794e3cc595ac9a;hb=5c789706630caf82d9043e61ee5e42d5e00b671f;hp=5d9a6884b1b2892ba48d1d2f65c3d91f55bc4b29;hpb=b1b4b7ecf48c4420d4445979c36cbf3f80be616a;p=flightgear.git diff --git a/src/Input/FGMouseInput.cxx b/src/Input/FGMouseInput.cxx index 5d9a6884b..8ebdb6bec 100644 --- a/src/Input/FGMouseInput.cxx +++ b/src/Input/FGMouseInput.cxx @@ -22,6 +22,10 @@ // // $Id$ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "FGMouseInput.hxx" #include "Main/globals.hxx" @@ -272,14 +276,9 @@ void FGMouseInput::doMouseClick (int b, int updown, int x, int y, bool mainWindo } if (mode.pass_through) { + // remove once PUI uses standard picking mechanism if (0 <= x && 0 <= y && puMouse(b, updown, x, y)) return; - else if (0 <= x && 0 <= y && (globals->get_current_panel() != 0) && - globals->get_current_panel()->getVisibility() && - globals->get_current_panel()->doMouseAction(b, updown, x, y)) - return; - else if (0 <= x && 0 <= y && fgHandle3DPanelMouseEvent(b, updown, x, y)) - return; else { // pui didn't want the click event so compute a // scenegraph intersection point corresponding to the mouse click