Revision: 2433 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2433&view=rev Author: rorthomas Date: 2012-02-02 13:39:12 +0000 (Thu, 02 Feb 2012) Log Message: ----------- fixed dynamic mouse mode under linux
Modified Paths: -------------- trunk/source/main/utils/InputEngine.cpp Modified: trunk/source/main/utils/InputEngine.cpp =================================================================== --- trunk/source/main/utils/InputEngine.cpp 2012-02-02 13:23:06 UTC (rev 2432) +++ trunk/source/main/utils/InputEngine.cpp 2012-02-02 13:39:12 UTC (rev 2433) @@ -1702,12 +1702,15 @@ } // set the mouse to the middle of the screen, hackish! +#if WIN32 + // under linux, this will not work and the cursor will never reach (0,0) if(mMouse && renderWindow) { OIS::MouseState &mutableMouseState = const_cast<OIS::MouseState &>(mMouse->getMouseState()); mutableMouseState.X.abs = renderWindow->getWidth() * 0.5f; mutableMouseState.Y.abs = renderWindow->getHeight() * 0.5f; } +#endif // WIN32 } //this becomes more and more convoluted! #ifdef NOOGRE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel