Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9240 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jul 6, 2006, 12:25:44 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: better signal handler.
patched by chrigi

Location:
trunk/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_handler.cc

    r8992 r9240  
    507507int EventHandler::releaseMouse(void* p)
    508508{
     509  SDL_ShowCursor(SDL_ENABLE);
    509510  SDL_WM_GrabInput(SDL_GRAB_OFF);
    510   SDL_ShowCursor(SDL_DISABLE);
    511511  return 0;
    512512}
  • trunk/src/lib/gui/gl/glgui_handler.cc

    r9235 r9240  
    268268
    269269
    270   Vector2D GLGuiHandler::cursorPositionOverFocusedWidget() const
    271   {
    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();
    273273  }
    274274
  • trunk/src/lib/gui/gl/glgui_handler.h

    r8717 r9240  
    3030    GLGuiCursor* cursor() const { return this->_cursor; }
    3131
    32     Vector2D cursorPositionOverFocusedWidget() const;
     32    const Vector2D& cursorPositionOverFocusedWidget() const;
    3333    const Vector2D& cursorPositionAbs() const;
    3434    Vector2D cursorPositionRel(const GLGuiWidget* const widget) const;
Note: See TracChangeset for help on using the changeset viewer.