Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 31, 2006, 4:20:51 PM (19 years ago)
Author:
bensch
Message:

gui: merged the gui back to the trunk

File:
1 edited

Legend:

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

    r7919 r8035  
    337337  else
    338338  {
    339     SDL_WM_GrabInput(SDL_GRAB_ON);
     339    //SDL_WM_GrabInput(SDL_GRAB_ON);
    340340    SDL_ShowCursor(SDL_DISABLE);
    341341  }
     
    380380      case SDL_MOUSEBUTTONUP:
    381381        ev.bPressed = false;
     382        ev.x = event.motion.x;
     383        ev.y = event.motion.y;
    382384        ev.type = event.button.button + SDLK_LAST;
    383385        break;
    384386      case SDL_MOUSEBUTTONDOWN:
    385387        ev.bPressed = true;
     388        ev.x = event.motion.x;
     389        ev.y = event.motion.y;
    386390        ev.type = event.button.button + SDLK_LAST;
    387391        break;
     
    474478    {
    475479      EventHandler::getInstance()->grabEvents( true);
    476       return 0;
     480      return 1;
    477481    }
    478482  }
Note: See TracChangeset for help on using the changeset viewer.