diff --git a/examples/osghangglide/GliderManipulator.cpp b/examples/osghangglide/GliderManipulator.cpp index 8db27bd3e..e0cfb68bc 100644 --- a/examples/osghangglide/GliderManipulator.cpp +++ b/examples/osghangglide/GliderManipulator.cpp @@ -260,6 +260,12 @@ bool GliderManipulator::calcMovement() float dx = _ga_t0->getXnormalized(); float dy = _ga_t0->getYnormalized(); + // mew - flag to reverse mouse-control mapping + if( getenv( "OSGHANGGLIDE_REVERSE_CONTROLS" ) ) + { + dx = -dx; + dy = -dy; + } osg::Matrixd rotation_matrix; rotation_matrix.makeRotate(_rotation);