From: Torsten Dreyer Date: Sat, 8 Jan 2011 08:11:46 +0000 (+0100) Subject: MouseInput: invert y-accel property X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a08507282941e6dd6dfccf63e3356f87e6d0114;p=flightgear.git MouseInput: invert y-accel property Syd Adams: It could be inverted with nasal for use, but it feels more natural with positive /forward , negative / back. --- diff --git a/src/Input/FGMouseInput.cxx b/src/Input/FGMouseInput.cxx index 5d3f7ae2a..b171e021b 100644 --- a/src/Input/FGMouseInput.cxx +++ b/src/Input/FGMouseInput.cxx @@ -332,7 +332,7 @@ void FGMouseInput::doMouseMotion (int x, int y) } if (y != m.y) { int delta = y - m.y; - yAccelNode->setIntValue( delta ); + yAccelNode->setIntValue( -delta ); for (unsigned int i = 0; i < mode.y_bindings[modifiers].size(); i++) mode.y_bindings[modifiers][i]->fire(double(delta), double(ysize)); }