I have been playing with events in Gazebo, I wanted to implement a
navegation/interaction similar to Blender.
middle button rotates, with shift moves, with ctrl zoom
right button selects
shift button actions
I have only implemented the middle button part but I have not been able to
use shift and ctrl.
In fact with a little of debugging (just printing the values of the keys
pressed on the Update fuction), I got that when letters were pressed, no
problem. They were printed as long as they were pressed and stopped
But with shift or ctrl, even when they worked well sometimes, other times
the printing just stopped.
Other problem is that if I wanted that Shift modified the drag event I had
to first start the drag even and then press shift. If shift is pressed the
drag even does not start.
It may seem a bug in my code but changing the key from XK_Shift_L to XK_l
and using the "l" key, everything works fine.
BTW, why don't use a event mechanism fully based on OGRE (like the tutorial
: http://www.ogre3d.org/wiki/index.php/Intermediate_Tutorial_3) ?