Changeset 5371 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Oct 13, 2005, 1:08:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r5300 r5371 39 39 SDL_InitSubSystem(SDL_INIT_JOYSTICK); 40 40 SDL_InitSubSystem(SDL_INIT_EVENTTHREAD); 41 //SDL_SetEventFilter(EventHandler::eventFilter);41 SDL_SetEventFilter(EventHandler::eventFilter); 42 42 43 43 … … 285 285 } 286 286 287 287 288 int EventHandler::eventFilter(const SDL_Event *event) 288 289 { 289 /*290 290 if (event->type == SDL_KEYDOWN && event->key.keysym.sym == SDLK_TAB && SDL_GetKeyState(NULL)[SDLK_LALT]) 291 291 { 292 printf(" test\n");293 292 printf("Not sending event to the WindowManager\n"); 293 return 0; 294 294 } 295 295 return 1; 296 */297 296 } 298 297
Note: See TracChangeset
for help on using the changeset viewer.