Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 12:31:32 AM (16 years ago)
Author:
rgrieder
Message:

FIRST THINGS FIRST: Delete or rename your keybindings.ini (def_keybindings.ini already has the most important bindings) or else you won't be able to do anything!

Changes:

  • Multiple joy stick support should now fully work with KeyBinder too (only tested with 0/1 joystick)
  • Reloading the OIS Devices now works with KeyBinder too
  • Modified ConfigValueContainer to accept arbitrary section names
  • added tkeybind to temporary bind a command to a key
  • Fixed dlleport issue in ArgumentCompletionFunctions.h

Internal changes:

  • General cleanup in initialisation of KeyBinder
  • All names of keys/buttons/axes are now statically saved in InputInterfaces.h
  • Move a magic value in KeyBinder to a configValue (MouseWheelStepSize_)
  • Separated ConfigValues from Keybinding ConfigValueContainer in KeyBinder (looks much nicer now ;))
  • Moved some performance critical small function to the inline section
  • Removed the ugly keybind function construct from the InputManager
  • More 'harmonising' work in KeyBinder
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSLevel.h

    r1755 r1887  
    3737namespace orxonox
    3838{
    39     class _OrxonoxExport GSLevel : public GameState<GSGraphics>
     39    class _OrxonoxExport GSLevel : public GameState<GSGraphics>, public OrxonoxClass
    4040    {
     41        friend class ClassIdentifier<GSLevel>;
    4142    public:
    4243        GSLevel(const std::string& name);
     
    5859        float timeFactor_;       //!< A factor to change the gamespeed
    5960
     61        // console commands
     62        void keybind(const std::string& command);
     63        void tkeybind(const std::string& command);
     64        void keybindInternal(const std::string& command, bool bTemporary);
     65
    6066        Ogre::SceneManager*   sceneManager_;
    6167        KeyBinder*            keyBinder_;        //!< tool that loads and manages the input bindings
     
    6470        Level*                startLevel_;       //!< current hard coded default level
    6571        Level*                hud_;              //!< 'level' object fo the HUD
     72
     73        // config values
     74        std::string           keyDetectorCallbackCode_;
     75       
     76    private:
     77        void setConfigValues();
     78
    6679    };
    6780}
Note: See TracChangeset for help on using the changeset viewer.