Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2008, 7:12:05 PM (16 years ago)
Author:
rgrieder
Message:
  • removed the mouseHandler in SpaceShip
File:
1 edited

Legend:

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

    r1391 r1398  
    3333
    3434#include "InputHandler.h"
     35#include <fstream>
    3536#include "util/Convert.h"
    3637#include "util/SubString.h"
     
    469470    COUT(3) << "KeyBinder: Loading key bindings..." << std::endl;
    470471
     472    clearBindings();
     473
     474    /*std::ifstream infile;
     475    infile.open("keybindings.ini");
     476    if (!infile.is_open())
     477    {
     478      ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "keybindings_def.ini");
     479      setConfigValues();
     480    }
     481    infile.close();*/
    471482    ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "keybindings.ini");
    472     clearBindings();
    473483    setConfigValues();
    474484
     
    486496    SetConfigValue(derivePeriod_, 0.1f).description("Accuracy of the mouse input deriver. The higher the more precise, but laggier.");
    487497    SetConfigValue(mouseSensitivityDerived_, 1.0f).description("Mouse sensitivity if mouse input is derived.");
     498    SetConfigValue(keybindingsDefault_, "keybindings_def.ini").description("Default ini file for the keybindings.");
    488499
    489500    float oldThresh = buttonThreshold_;
     
    580591      if (halfAxes_[i].relVal_ > analogThreshold_ || halfAxes_[i].absVal_ > analogThreshold_)
    581592      {
    582         COUT(3) << halfAxes_[i].name_ << "\t" << halfAxes_[i].absVal_ << std::endl;
     593        //COUT(3) << halfAxes_[i].name_ << "\t" << halfAxes_[i].absVal_ << std::endl;
    583594        halfAxes_[i].execute();
    584595      }
Note: See TracChangeset for help on using the changeset viewer.