Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1420


Ignore:
Timestamp:
May 25, 2008, 2:19:39 PM (17 years ago)
Author:
rgrieder
Message:
  • fixed 2 bugs
Location:
code/branches/network/src/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/KeyBinder.cc

    r1414 r1420  
    474474    if (!infile.is_open())
    475475    {
    476       ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, keybindingsDefault_);
     476      ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "def_keybindings.ini");
    477477      ConfigFileManager::getSingleton()->save(CFT_Keybindings, "keybindings.ini");
    478478    }
     
    496496    SetConfigValue(derivePeriod_, 0.1f).description("Accuracy of the mouse input deriver. The higher the more precise, but laggier.");
    497497    SetConfigValue(mouseSensitivityDerived_, 1.0f).description("Mouse sensitivity if mouse input is derived.");
    498     SetConfigValue(keybindingsDefault_, "def_keybindings.ini").description("Default ini file for the keybindings.");
    499498
    500499    float oldThresh = buttonThreshold_;
     
    586585            halfAxes_[i].execute(KeybindMode::OnRelease);
    587586        }
    588         if (halfAxes_[i].wasDown_)
    589         {
    590           if (halfAxes_[i].nCommands_[KeybindMode::OnHold])
    591             halfAxes_[i].execute(KeybindMode::OnHold);
    592         }
    593587        halfAxes_[i].hasChanged_ = false;
     588      }
     589
     590      if (halfAxes_[i].wasDown_)
     591      {
     592        if (halfAxes_[i].nCommands_[KeybindMode::OnHold])
     593          halfAxes_[i].execute(KeybindMode::OnHold);
    594594      }
    595595
  • code/branches/network/src/core/KeyBinder.h

    r1414 r1420  
    222222    //! mouse sensitivity if mouse input is derived
    223223    float mouseSensitivityDerived_;
    224     //! default ini file for the keybindings
    225     std::string keybindingsDefault_;
    226224  };
    227225
Note: See TracChangeset for help on using the changeset viewer.