Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2008, 11:04:01 AM (17 years ago)
Author:
rgrieder
Message:
  • updated input branch to trunk state. Only Input system files should differ now.
  • this revision doesn't even compile, its just an 'svn save'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/core/InputManager.cc

    r1118 r1154  
    125125    // create the handlers
    126126    this->handlerGUI_ = new InputHandlerGUI();
     127    this->handlerGUI_->initialise();
    127128    this->handlerGame_ = new InputHandlerGame();
    128     //this->handlerBuffer_ = new InputBuffer();
    129     this->handlerGame_->loadBindings();
    130 
    131     /*COUT(ORX_DEBUG) << "*** InputManager: Loading key bindings..." << std::endl;
    132     // load the key bindings
    133     InputEvent empty = {0, false, 0, 0, 0};
    134     for (int i = 0; i < this->numberOfKeys_; i++)
    135       this->bindingsKeyPressed_[i] = empty;
    136 
    137     //assign 'abort' to the escape key
    138     this->bindingsKeyPressed_[(int)OIS::KC_ESCAPE].id = 1;
     129    this->handlerGame_->initialise();
     130
    139131    COUT(ORX_DEBUG) << "*** InputManager: Loading done." << std::endl;*/
    140132
     
    159151    this->inputSystem_   = 0;
    160152
    161     if (this->handlerBuffer_)
    162       delete this->handlerBuffer_;
    163153    if (this->handlerGame_)
    164154      delete this->handlerGame_;
     
    166156      delete this->handlerGUI_;
    167157
    168     this->handlerBuffer_ = 0;
    169158    this->handlerGame_   = 0;
    170159    this->handlerGUI_    = 0;
     
    192181        this->keyboard_->setEventCallback(this->handlerGame_);
    193182        break;
    194       case IM_KEYBOARD:
    195         this->mouse_->setEventCallback(this->handlerGame_);
    196         this->keyboard_->setEventCallback(this->handlerBuffer_);
    197         break;
    198183      case IM_UNINIT:
    199184        this->mouse_->setEventCallback(0);
     
    211196
    212197    // Give the listeners the chance to do additional calculations
     198    this->currentHandler_->tick(dt);
    213199  }
    214200
Note: See TracChangeset for help on using the changeset viewer.