mav_navigationMouseDefault - The default implementation of mouse navigation

[ Maverik Level 1 functions ]

#

mav_navigationMouseDefault

## Summary

The default implementation of mouse navigation

## Syntax

int mav_navigationMouseDefault(MAV_object *o, MAV_mouseEvent *e)

## Description

This function is the default implementation of mouse navigation and is used as the second argument to mav_navigationMouse, i.e.

    mav_navigationMouse(mav_win_all, mav_navigationMouseDefault);

It provides the following controls:

- with the left button pressed, mouse movements translate the eyepoint forward/backwards, and yaws (rotates about the Y axis) the view.

- with the right button pressed, mouse movements translate the eyepoint up/down and left/right.

Linear translations assume that the application is using meters as its units.

The style of mouse navigation provided by this function is fully configurable via mav_navigationMouseDefaultParams.

## See also

mav_navigationMouse.html>mav_navigationMouse, mav_navigationMouseDefaultParams.html>mav_navigationMouseDefaultParams, mav_navigationKeyboardDefault.html>mav_navigationKeyboardDefault

Back to the index page.