Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: better mouse capture now

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/creatures/md2_creature.cc

    r6986 r6990  
    106106
    107107  PRINTF(4)("MD2CREATURE INIT\n");
    108 
    109   EventHandler::getInstance()->grabEvents(true);
    110108
    111109  this->mouseDirX *= Quaternion( M_PI * 0.75f, Vector(0,1,0));
  • 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.