[ Maverik Level 1 functions ]

#

mav_navigationKeyboardDefault

## Summary

The default implementation of keyboard navigation

## Syntax

int mav_navigationKeyboardDefault(MAV_object *o, MAV_keyboardEvent *e);

## Description

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

    mav_navigationKeyboard(mav_win_all, mav_navigationKeyboardDefault);

It provides the following ``Doom'' style controls:

- Cursor keys -- navigate forwards/backwards and yaw;

- Page up/down -- navigate up/down;

- Alt-Cursor left/right -- sidestep left/right;

- Alt-Page up/down -- pitch view up/down;

- Holding down ``shift'' doubles the rate of movement.

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

Control of the default keyboard navigation, via mav_navigationKeyboardDefaultParams, is more limited that the mouse variety since you can't redefine the actions taken by the various keys.

## See also

mav_navigationKeyboard.html>mav_navigationKeyboard, mav_navigationKeyboardDefaultParams.html>mav_navigationKeyboardDefaultParams, mav_navigationMouseDefault.html>mav_navigationMouseDefault

Back to the index page.