Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2008, 10:40:22 PM (16 years ago)
Author:
rgrieder
Message:
  • privatised InputState c'tors
  • added destruction code for GUIManager
  • fixed some issues and bugs
  • found 2400 memory leaks ;)
  • haven't done anything about it
  • converted GUIManager to Ogre Singleton
  • added NULL checkers in Loader
File:
1 edited

Legend:

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

    r1645 r1646  
    429429                    (*rit).second->onLeave();
    430430                }
    431                 activeStates_.clear();
    432                 _updateActiveStates();
     431                //activeStates_.clear();
     432                //_updateActiveStates();
    433433
    434434                // destroy all input states
     
    438438                }
    439439
    440                 stateEmpty_ = 0;
    441                 stateCalibrator_ = 0;
    442                 stateDetector_ = 0;
     440                //stateEmpty_ = 0;
     441                //stateCalibrator_ = 0;
     442                //stateDetector_ = 0;
    443443
    444444                // destroy the devices
     
    448448
    449449                // 0 joy sticks now
    450                 _redimensionLists();
     450                //_redimensionLists();
    451451
    452452                OIS::InputManager::destroyInputSystem(inputSystem_);
    453                 inputSystem_ = 0;
     453                //inputSystem_ = 0;
    454454
    455455                CCOUT(3) << "Destroying done." << std::endl;
     
    509509    {
    510510        assert(state);
     511        std::map<int, InputState*>::iterator it = this->activeStates_.find(state->getPriority());
     512        if (it != this->activeStates_.end())
     513        {
     514            this->activeStates_.erase(it);
     515            _updateActiveStates();
     516        }
    511517        inputStatesByPriority_.erase(state->getPriority());
    512518        inputStatesByName_.erase(state->getName());
Note: See TracChangeset for help on using the changeset viewer.