Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6318 in orxonox.OLD for branches/avi_play/src


Ignore:
Timestamp:
Dec 27, 2005, 3:14:31 PM (19 years ago)
Author:
stefalie
Message:

added some controls for movie_player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/subprojects/importer/movie_player_test.cc

    r6317 r6318  
    3232void Framework::moduleEventHandler(SDL_Event* event)
    3333{
    34 
     34  switch (event->type)
     35  {
     36    case SDL_KEYDOWN:
     37      switch (event->key.keysym.sym)
     38      {
     39        case SDLK_1:
     40          movie_player->resume();
     41          PRINTF(0)("Play-/Resuming\n");
     42          break;
     43        case SDLK_2:
     44          movie_player->pause();
     45          PRINTF(0)("Pause\n");
     46          break;
     47        case SDLK_3:
     48          movie_player->stop();
     49          PRINTF(0)("Stopped\n");
     50          break;
     51      }
     52  }
    3553}
    3654
    3755void Framework::moduleTick(float dt)
    38 { 
     56{
    3957  movie_player->tick(dt);
    4058}
Note: See TracChangeset for help on using the changeset viewer.