Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6990 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Feb 2, 2006, 10:31:56 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: better mouse capture now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/crosshair.cc

    r6807 r6990  
    4848  if (this->material)
    4949  delete this->material;
    50 
    51   // delete what has to be deleted here
    52 
    53   GraphicsEngine::showMouse(true);
    54   GraphicsEngine::stealWMEvents(false);
    5550}
    5651
     
    7368
    7469  // center the mouse on the screen, and also hide the cursors
    75   SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
     70  /*  SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
    7671  GraphicsEngine::showMouse(false);
    77   GraphicsEngine::stealWMEvents(true);
    78   SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
     72  SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);*/
    7973}
    8074
Note: See TracChangeset for help on using the changeset viewer.