From 8a08507282941e6dd6dfccf63e3356f87e6d0114 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Sat, 8 Jan 2011 09:11:46 +0100 Subject: [PATCH] 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. --- src/Input/FGMouseInput.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.39.5