1
0
Fork 0

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.
This commit is contained in:
Torsten Dreyer 2011-01-08 09:11:46 +01:00
parent 0361f136fe
commit 8a08507282

View file

@ -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));
}