1
0
Fork 0

Added support for tracking mouse movements with shift and control+shift pressed.

This commit is contained in:
Anders Gidenstam 2013-03-13 21:18:58 +01:00
parent 0bc5a813a8
commit 46eadabf3a

View file

@ -386,10 +386,22 @@ void FGMouseInput::init()
if (mode_node->hasChild("x-axis-ctrl")) {
read_bindings(mode_node->getChild("x-axis-ctrl"), m.modes[j].x_bindings, KEYMOD_CTRL, module );
}
if (mode_node->hasChild("x-axis-shift")) {
read_bindings(mode_node->getChild("x-axis-shift"), m.modes[j].x_bindings, KEYMOD_SHIFT, module );
}
if (mode_node->hasChild("x-axis-ctrl-shift")) {
read_bindings(mode_node->getChild("x-axis-ctrl-shift"), m.modes[j].x_bindings, KEYMOD_CTRL|KEYMOD_SHIFT, module );
}
if (mode_node->hasChild("y-axis-ctrl")) {
read_bindings(mode_node->getChild("y-axis-ctrl"), m.modes[j].y_bindings, KEYMOD_CTRL, module );
}
if (mode_node->hasChild("y-axis-shift")) {
read_bindings(mode_node->getChild("y-axis-shift"), m.modes[j].y_bindings, KEYMOD_SHIFT, module );
}
if (mode_node->hasChild("y-axis-ctrl-shift")) {
read_bindings(mode_node->getChild("y-axis-ctrl-shift"), m.modes[j].y_bindings, KEYMOD_CTRL|KEYMOD_SHIFT, module );
}
} // of modes iteration
}