Changeset 9240 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jul 6, 2006, 12:25:44 PM (18 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r8992 r9240 507 507 int EventHandler::releaseMouse(void* p) 508 508 { 509 SDL_ShowCursor(SDL_ENABLE); 509 510 SDL_WM_GrabInput(SDL_GRAB_OFF); 510 SDL_ShowCursor(SDL_DISABLE);511 511 return 0; 512 512 } -
trunk/src/lib/gui/gl/glgui_handler.cc
r9235 r9240 268 268 269 269 270 Vector2DGLGuiHandler::cursorPositionOverFocusedWidget() const271 { 272 return (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D (0,0);270 const Vector2D& GLGuiHandler::cursorPositionOverFocusedWidget() const 271 { 272 return (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D::nullVector(); 273 273 } 274 274 -
trunk/src/lib/gui/gl/glgui_handler.h
r8717 r9240 30 30 GLGuiCursor* cursor() const { return this->_cursor; } 31 31 32 Vector2DcursorPositionOverFocusedWidget() const;32 const Vector2D& cursorPositionOverFocusedWidget() const; 33 33 const Vector2D& cursorPositionAbs() const; 34 34 Vector2D cursorPositionRel(const GLGuiWidget* const widget) const;
Note: See TracChangeset
for help on using the changeset viewer.