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/core/input/InputManager.h

    r1881 r1887  
    110110        void clearBuffers();
    111111
    112         int  numberOfKeyboards() { return keyboard_ ? 1 : 0; }
    113         int  numberOfMice()      { return mouse_    ? 1 : 0; }
    114         int  numberOfJoySticks() { return joySticksSize_; }
     112        unsigned int  numberOfKeyboards() { return keyboard_ ? 1 : 0; }
     113        unsigned int  numberOfMice()      { return mouse_    ? 1 : 0; }
     114        unsigned int  numberOfJoySticks() { return joySticksSize_; }
    115115
    116116        void setWindowExtents(const int width, const int height);
     117        void setKeyDetectorCallback(const std::string& command);
    117118
    118119        template <class T>
     
    132133
    133134        // console commands
    134         static void storeKeyStroke(const std::string& name);
    135         static void keyBind(const std::string& command);
    136135        static void calibrate();
    137136        static void reload(bool joyStickSupport = true);
     
    148147        void _initialiseMouse();
    149148        void _initialiseJoySticks();
    150         void _redimensionLists();
     149        void _configureNumberOfJoySticks();
    151150
    152151        void _destroyKeyboard();
     
    223222
    224223        std::vector<Key>                    keysDown_;
    225         std::vector<MouseButton::Enum>      mouseButtonsDown_;
    226         std::vector<std::vector<JoyStickButton::Enum> >  joyStickButtonsDown_;
     224        std::vector<MouseButtonCode::ByEnum>      mouseButtonsDown_;
     225        std::vector<std::vector<JoyStickButtonCode::ByEnum> >  joyStickButtonsDown_;
    227226
    228227        static std::string                  bindingCommmandString_s;
Note: See TracChangeset for help on using the changeset viewer.