Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7866 in orxonox.OLD for branches/gui/src/world_entities/camera.cc


Ignore:
Timestamp:
May 26, 2006, 1:11:10 PM (19 years ago)
Author:
bensch
Message:

Events are subscribed at the EventListener, and not the EventHandler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/world_entities/camera.cc

    r7347 r7866  
    3131  this->target = new CameraTarget();
    3232
    33   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW0);
    34   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW1);
    35   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW2);
    36   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW3);
    37   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW4);
    38   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW5);
     33  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW0);
     34  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW1);
     35  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW2);
     36  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW3);
     37  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW4);
     38  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW5);
    3939
    4040  this->setFovy(90);
Note: See TracChangeset for help on using the changeset viewer.