void mav_navigationMouseDefaultParams(MAV_window *w, int but, MAV_navigatorFn x, float xls, float xas, MAV_navigatorFn y, float yls, float yas);
For example, the following defines navigation triggered by the left mouse button. Horizontal movements of the mouse yaws the view; and vertical movement moves the view forward:
mav_navigationMouseDefaultParams(mav_win_all, MAV_LEFT_BUTTON,
mav_navigateYaw, 0.02, -0.001,
mav_navigateForwards, 0.02, 0.001);
A vertical mouse movement of 100 pixels equates to the eyepoint moving 2 (100x0.02) application units forwards.
Note that the angular scaling factor is negative for mav_navigateYaw. This is because a right-handed coordinate system is assumed which implies that a positive yaw will rotate the view to the left. This is the opposite to what is required, and so a negative scaling factor is used to compensate.