Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2008, 3:30:15 PM (16 years ago)
Author:
rgrieder
Message:

Changed initialisation of internally handled InputStates and InputHandlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/input/ExtendedInputState.cc

    r1878 r1881  
    362362
    363363        return success;
    364     }
    365 
    366     void ExtendedInputState::removeAndDestroyAllHandlers()
    367     {
    368         for (std::vector<InputHandler*>::iterator it = allHandlers_.begin();
    369             it != allHandlers_.end(); ++it)
    370             delete *it;
    371 
    372         allHandlers_.clear();
    373         keyHandlers_.clear();
    374         mouseHandlers_.clear();
    375         joyStickHandlersAll_.clear();
    376         for (unsigned int iJoyStick = 0; iJoyStick < joyStickHandlers_.size(); ++iJoyStick)
    377             joyStickHandlers_[iJoyStick].clear();
    378         update();
    379364    }
    380365
Note: See TracChangeset for help on using the changeset viewer.