Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6738


Ignore:
Timestamp:
Apr 16, 2010, 12:22:52 PM (14 years ago)
Author:
rgrieder
Message:

Cosmetic changes in InputManager.

File:
1 edited

Legend:

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

    r6662 r6738  
    390390                device->update(time);
    391391
    392         // Collect functions calls for the update
     392        // Collect function calls for the update
    393393        for (unsigned int i = 0; i < activeStatesTicked_.size(); ++i)
    394394            activeStatesTicked_[i]->update(time.getDeltaTime());
     
    414414    void InputManager::updateActiveStates()
    415415    {
    416         // temporary resize
     416        // Calculate the stack of input states
     417        // and assign it to the corresponding device
    417418        for (unsigned int i = 0; i < devices_.size(); ++i)
    418419        {
     
    433434        }
    434435
    435         // update tickables (every state will only appear once)
    436         // Using a std::set to avoid duplicates
     436        // See that we only update each InputState once for each device
     437        // Using an std::set to avoid duplicates
    437438        std::set<InputState*> tempSet;
    438439        for (unsigned int i = 0; i < devices_.size(); ++i)
     
    441442                    tempSet.insert(devices_[i]->getStateListRef()[iState]);
    442443
    443         // copy the content of the std::set back to the actual vector
     444        // Copy the content of the std::set back to the actual vector
    444445        activeStatesTicked_.clear();
    445446        for (std::set<InputState*>::const_iterator it = tempSet.begin();it != tempSet.end(); ++it)
Note: See TracChangeset for help on using the changeset viewer.