// Look for windows, camera groups, and the old syntax of
// top-level cameras
SGPropertyNode* renderingNode = fgGetNode("/sim/rendering");
- SGPropertyNode* cgroupNode = renderingNode->getChild("camera-group");
- if (!cgroupNode) {
- cgroupNode = renderingNode->getNode("camera-group", true);
+ SGPropertyNode* cgroupNode = renderingNode->getNode("camera-group", true);
+ bool oldSyntax = !cgroupNode->hasChild("camera");
+ if (oldSyntax) {
for (int i = 0; i < renderingNode->nChildren(); ++i) {
SGPropertyNode* propNode = renderingNode->getChild(i);
const char* propName = propNode->getName();
mouseCursor = osgViewer::GraphicsWindow::CrosshairCursor;
else if(cursor == MOUSE_CURSOR_LEFTRIGHT)
mouseCursor = osgViewer::GraphicsWindow::LeftRightCursor;
+ else if(cursor == MOUSE_CURSOR_TOPSIDE)
+ mouseCursor = osgViewer::GraphicsWindow::TopSideCursor;
+ else if(cursor == MOUSE_CURSOR_BOTTOMSIDE)
+ mouseCursor = osgViewer::GraphicsWindow::BottomSideCursor;
+ else if(cursor == MOUSE_CURSOR_LEFTSIDE)
+ mouseCursor = osgViewer::GraphicsWindow::LeftSideCursor;
+ else if(cursor == MOUSE_CURSOR_RIGHTSIDE)
+ mouseCursor = osgViewer::GraphicsWindow::RightSideCursor;
+ else if(cursor == MOUSE_CURSOR_TOPLEFT)
+ mouseCursor = osgViewer::GraphicsWindow::TopLeftCorner;
+ else if(cursor == MOUSE_CURSOR_TOPRIGHT)
+ mouseCursor = osgViewer::GraphicsWindow::TopRightCorner;
+ else if(cursor == MOUSE_CURSOR_BOTTOMLEFT)
+ mouseCursor = osgViewer::GraphicsWindow::BottomLeftCorner;
+ else if(cursor == MOUSE_CURSOR_BOTTOMRIGHT)
+ mouseCursor = osgViewer::GraphicsWindow::BottomRightCorner;
gw->setCursor(mouseCursor);
}