MRPT 3D viewport navigation: mouse and keyboard usageΒΆ

All MRPT applications use the following convention:

  • Orbit camera: Left-button pressed + mouse move.

  • Zoom in / out:

    • Mouse scroll wheel, or

    • SHIFT+Left-button pressed + mouse move up/down.

  • Look around (pivot camera): CTRL+Left-button pressed + mouse move up/down.

  • Pan (XY plane): Right-button pressed + mouse move.

  • Move camera along Z axis: SHIFT+Left-button pressed + mouse move left/right.

The implementation of the features above by handling mouse and keyboard events can be found in: