Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2008, 12:00:20 AM (16 years ago)
Author:
rgrieder
Message:
  • you can now tpye "keybind command" and then press a button/key to bind that string directly. doesn't seem to work yet with mouse axes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/InputManager.h

    r1413 r1426  
    8585      IS_GUI,       //!< All OIS input events are passed to CEGUI.
    8686      IS_CONSOLE,   //!< Keyboard input is redirected to the InputBuffer.
    87       IS_DETECTION, //!< All the input goes to the KeyDetector
     87      IS_DETECT,    //!< All the input additionally goes to the KeyDetector
     88      IS_NODETECT,  //!< remove KeyDetector
    8889      IS_CUSTOM     //!< Any possible configuration.
    8990    };
     
    115116
    116117    static void storeKeyStroke(const std::string& name);
    117     static const std::string& getLastKeyStroke();
     118    static void keyBind(const std::string& command);
    118119
    119120    static bool addKeyHandler                 (KeyHandler* handler, const std::string& name);
     
    189190    InputState stateRequest_;
    190191    unsigned int keyboardModifiers_;
    191     std::string lastStroke_;
     192    InputState savedState_;
    192193
    193194    //! Keeps track of the joy stick POV states
     
    209210    std::vector<std::vector<int> >              joyStickButtonsDown_;
    210211
     212    static std::string                          bindingCommmandString_s;
    211213  };
    212214
Note: See TracChangeset for help on using the changeset viewer.