Added keyboard mouse binding usage to the osg::ApplicationUsage and
osgGA::GUIEventHandler and its subclasses.
This commit is contained in:
@@ -164,7 +164,6 @@ void DriveManipulator::home(const GUIEventAdapter& ea,GUIActionAdapter& us)
|
||||
computeLocalDataFromCamera();
|
||||
}
|
||||
|
||||
|
||||
void DriveManipulator::init(const GUIEventAdapter& ea,GUIActionAdapter& us)
|
||||
{
|
||||
flushMouseEventStack();
|
||||
@@ -360,6 +359,15 @@ bool DriveManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& us)
|
||||
}
|
||||
}
|
||||
|
||||
void DriveManipulator::getUsage(osg::ApplicationUsage& usage) const
|
||||
{
|
||||
usage.addKeyboardMouseBinding("Drive: Space","Reset the viewing position to home");
|
||||
usage.addKeyboardMouseBinding("Drive: +","When in stereo, increase the fusion distance");
|
||||
usage.addKeyboardMouseBinding("Drive: -","When in stereo, reduse the fusion distance");
|
||||
usage.addKeyboardMouseBinding("Drive: q","Use mouse y for controlling speed");
|
||||
usage.addKeyboardMouseBinding("Drive: a","Use mouse middle,right mouse buttons for speed");
|
||||
}
|
||||
|
||||
|
||||
void DriveManipulator::flushMouseEventStack()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user