Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2008, 8:33:53 PM (16 years ago)
Author:
rgrieder
Message:
  • Key bindings can now be stored in keybindings.ini
  • doesn't work for move movement yet, but for the buttons.
File:
1 edited

Legend:

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

    r1204 r1213  
    822822    {
    823823      if ((*it) == (*mapIt).second)
     824      {
     825        _getSingleton().stateRequest_ = IS_CUSTOM;
    824826        return true;
     827      }
    825828    }
    826829    _getSingleton().activeKeyHandlers_.push_back((*mapIt).second);
     830    _getSingleton().stateRequest_ = IS_CUSTOM;
    827831    return true;
    828832  }
     
    846850      {
    847851        _getSingleton().activeKeyHandlers_.erase(it);
     852        _getSingleton().stateRequest_ = IS_CUSTOM;
    848853        return true;
    849854      }
    850855    }
     856    _getSingleton().stateRequest_ = IS_CUSTOM;
    851857    return true;
    852858  }
     
    942948    {
    943949      if ((*it) == (*mapIt).second)
     950      {
     951        _getSingleton().stateRequest_ = IS_CUSTOM;
    944952        return true;
     953      }
    945954    }
    946955    _getSingleton().activeMouseHandlers_.push_back((*mapIt).second);
     956    _getSingleton().stateRequest_ = IS_CUSTOM;
    947957    return true;
    948958  }
     
    966976      {
    967977        _getSingleton().activeMouseHandlers_.erase(it);
     978        _getSingleton().stateRequest_ = IS_CUSTOM;
    968979        return true;
    969980      }
    970981    }
     982    _getSingleton().stateRequest_ = IS_CUSTOM;
    971983    return true;
    972984  }
     
    10711083    {
    10721084      if ((*it) == (*handlerIt).second)
     1085      {
     1086        _getSingleton().stateRequest_ = IS_CUSTOM;
    10731087        return true;
     1088      }
    10741089    }
    10751090    _getSingleton().activeJoyStickHandlers_[id].push_back((*handlerIt).second);
     1091    _getSingleton().stateRequest_ = IS_CUSTOM;
    10761092    return true;
    10771093  }
     
    11011117      {
    11021118        _getSingleton().activeJoyStickHandlers_[id].erase(it);
     1119        _getSingleton().stateRequest_ = IS_CUSTOM;
    11031120        return true;
    11041121      }
    11051122    }
     1123    _getSingleton().stateRequest_ = IS_CUSTOM;
    11061124    return true;
    11071125  }
Note: See TracChangeset for help on using the changeset viewer.