Changeset 5964 in orxonox.OLD for branches/spaceshipcontrol/src/lib/event
- Timestamp:
- Dec 7, 2005, 3:43:01 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/lib/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/lib/event/event_handler.cc
r5786 r5964 47 47 this->flush(ES_ALL); 48 48 this->withUNICODE(false); 49 this->grabEvents(false); 49 50 50 51 this->state = ES_GAME; … … 255 256 } 256 257 258 void EventHandler::grabEvents(bool grabEvents) 259 { 260 this->eventsGrabbed = grabEvents; 261 if(!grabEvents) 262 SDL_WM_GrabInput(SDL_GRAB_OFF); 263 else 264 SDL_WM_GrabInput(SDL_GRAB_ON); 265 } 257 266 258 267 /** -
branches/spaceshipcontrol/src/lib/event/event_handler.h
r5786 r5964 43 43 44 44 void withUNICODE(bool enableUNICODE); 45 void grabEvents(bool grabEvents); 45 46 46 47 void process(); … … 62 63 63 64 bool bUNICODE; //!< If unicode should be enabled. 65 bool eventsGrabbed; //!< If the events should be grabbed 64 66 }; 65 67
Note: See TracChangeset
for help on using the changeset viewer.