Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6990 in orxonox.OLD for trunk/src/lib/event


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

orxonox/trunk: better mouse capture now

File:
1 edited

Legend:

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

    r6813 r6990  
    260260  this->eventsGrabbed = grabEvents;
    261261  if(!grabEvents)
     262  {
     263    SDL_ShowCursor(SDL_ENABLE);
    262264    SDL_WM_GrabInput(SDL_GRAB_OFF);
    263   else
     265  }
     266  else
     267  {
    264268    SDL_WM_GrabInput(SDL_GRAB_ON);
     269    SDL_ShowCursor(SDL_DISABLE);
     270  }
    265271}
    266272
Note: See TracChangeset for help on using the changeset viewer.