Changeset 8035 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- May 31, 2006, 4:20:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r7919 r8035 337 337 else 338 338 { 339 SDL_WM_GrabInput(SDL_GRAB_ON);339 //SDL_WM_GrabInput(SDL_GRAB_ON); 340 340 SDL_ShowCursor(SDL_DISABLE); 341 341 } … … 380 380 case SDL_MOUSEBUTTONUP: 381 381 ev.bPressed = false; 382 ev.x = event.motion.x; 383 ev.y = event.motion.y; 382 384 ev.type = event.button.button + SDLK_LAST; 383 385 break; 384 386 case SDL_MOUSEBUTTONDOWN: 385 387 ev.bPressed = true; 388 ev.x = event.motion.x; 389 ev.y = event.motion.y; 386 390 ev.type = event.button.button + SDLK_LAST; 387 391 break; … … 474 478 { 475 479 EventHandler::getInstance()->grabEvents( true); 476 return 0;480 return 1; 477 481 } 478 482 }
Note: See TracChangeset
for help on using the changeset viewer.