MOUSE_CURSOR_POINTER,
MOUSE_CURSOR_WAIT,
MOUSE_CURSOR_CROSSHAIR,
- MOUSE_CURSOR_LEFTRIGHT };
+ MOUSE_CURSOR_LEFTRIGHT,
+ MOUSE_CURSOR_TOPSIDE,
+ MOUSE_CURSOR_BOTTOMSIDE,
+ MOUSE_CURSOR_LEFTSIDE,
+ MOUSE_CURSOR_RIGHTSIDE,
+ MOUSE_CURSOR_TOPLEFT,
+ MOUSE_CURSOR_TOPRIGHT,
+ MOUSE_CURSOR_BOTTOMLEFT,
+ MOUSE_CURSOR_BOTTOMRIGHT,
+};
enum { KEYMOD_NONE = 0,
KEYMOD_RELEASED = 1, // Not a mod key, indicates "up" action
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);
}