Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 11, 2005, 6:23:42 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: multiple new Reparenting modes in PNode.
Testing the stuff in GuidedMissile
Projectile has a PNode as reference not as pointer
some minor weapon changes

Location:
trunk/src/lib/event
Files:
2 edited

Legend:

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

    r5978 r6054  
    258258void EventHandler::grabEvents(bool grabEvents)
    259259{
    260      this->eventsGrabbed = grabEvents;
    261      if(!grabEvents)
    262       SDL_WM_GrabInput(SDL_GRAB_OFF);
    263      else
    264       SDL_WM_GrabInput(SDL_GRAB_ON);
     260  this->eventsGrabbed = grabEvents;
     261  if(!grabEvents)
     262    SDL_WM_GrabInput(SDL_GRAB_OFF);
     263  else
     264    SDL_WM_GrabInput(SDL_GRAB_ON);
    265265}
    266266
     
    364364  {
    365365    printf("Not sending event to the WindowManager\n");
     366
     367    EventHandler::getInstance()->grabEvents(false);
    366368    return 0;
    367369  }
  • trunk/src/lib/event/event_handler.h

    r5978 r6054  
    4444  void withUNICODE(bool enableUNICODE);
    4545  void grabEvents(bool grabEvents);
     46  bool grabbedEvents() const { return this->eventsGrabbed; };
    4647
    4748  void process();
     
    5253 private:
    5354  EventHandler();
    54 
    5555
    5656 private:
Note: See TracChangeset for help on using the changeset viewer.