Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2007 for code


Ignore:
Timestamp:
Oct 24, 2008, 1:56:07 PM (16 years ago)
Author:
rgrieder
Message:

Fixed the linux mouse movement bug. OIS has to warp the pointer to the middle of the screen. That means it needs to know the screen extents after all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSGraphics.cc

    r1949 r2007  
    488488        for (ObjectList<orxonox::WindowEventListener>::iterator it = ObjectList<orxonox::WindowEventListener>::begin(); it; ++it)
    489489            it->windowResized(this->renderWindow_->getWidth(), this->renderWindow_->getHeight());
     490
     491                // OIS needs this under linux even if we only use relative input measurement.
     492                if (this->inputManager_)
     493            this->inputManager_->setWindowExtents(renderWindow_->getWidth(), renderWindow_->getHeight());
    490494    }
    491495
     
    502506
    503507        // instruct InputManager to clear the buffers (core library so we cannot use the interface)
    504         InputManager::getInstance().clearBuffers();
     508                if (this->inputManager_)
     509            this->inputManager_->clearBuffers();
    505510    }
    506511
Note: See TracChangeset for help on using the changeset viewer.