Changeset 6054 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Dec 11, 2005, 6:23:42 PM (19 years ago)
- Location:
- trunk/src/lib/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r5978 r6054 258 258 void EventHandler::grabEvents(bool grabEvents) 259 259 { 260 261 262 263 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); 265 265 } 266 266 … … 364 364 { 365 365 printf("Not sending event to the WindowManager\n"); 366 367 EventHandler::getInstance()->grabEvents(false); 366 368 return 0; 367 369 } -
trunk/src/lib/event/event_handler.h
r5978 r6054 44 44 void withUNICODE(bool enableUNICODE); 45 45 void grabEvents(bool grabEvents); 46 bool grabbedEvents() const { return this->eventsGrabbed; }; 46 47 47 48 void process(); … … 52 53 private: 53 54 EventHandler(); 54 55 55 56 56 private:
Note: See TracChangeset
for help on using the changeset viewer.