From 46eadabf3a183c4377a0877775ad85985c651400 Mon Sep 17 00:00:00 2001 From: Anders Gidenstam Date: Wed, 13 Mar 2013 21:18:58 +0100 Subject: [PATCH] Added support for tracking mouse movements with shift and control+shift pressed. --- src/Input/FGMouseInput.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Input/FGMouseInput.cxx b/src/Input/FGMouseInput.cxx index f7d32778b..529e4b2c2 100644 --- a/src/Input/FGMouseInput.cxx +++ b/src/Input/FGMouseInput.cxx @@ -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 }