From Tatsuhiro Nishioka and Stephan Huber, bug fixes and enhancement of cursor suppoort.

This commit is contained in:
Robert Osfield
2008-04-01 10:00:39 +00:00
parent 31c6115d73
commit f9f7770336
2 changed files with 66 additions and 19 deletions

View File

@@ -35,7 +35,8 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
_valid(false),
_initialized(false),
_realized(false),
_ownsWindow(true)
_ownsWindow(true),
_currentCursor(RightArrowCursor)
{
_traits = traits;
@@ -103,6 +104,7 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
virtual void setWindowName (const std::string & name);
virtual void useCursor(bool cursorOn);
virtual void setCursor(MouseCursor mouseCursor);
WindowRef getNativeWindowRef() { return _window; }
@@ -166,7 +168,8 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
bool _closeRequested;
UInt32 _lastModifierKeys;
UInt32 _lastModifierKeys;
MouseCursor _currentCursor;
};
}