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
Location:
code/trunk/src/orxonox/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gui/GUIManager.cc

    r1878 r1887  
    279279    }
    280280
    281     void GUIManager::mouseButtonPressed(MouseButton::Enum id)
     281    void GUIManager::mouseButtonPressed(MouseButtonCode::ByEnum id)
    282282    {
    283283        try
     
    292292    }
    293293
    294     void GUIManager::mouseButtonReleased(MouseButton::Enum id)
     294    void GUIManager::mouseButtonReleased(MouseButtonCode::ByEnum id)
    295295    {
    296296        try
     
    306306
    307307
    308     inline CEGUI::MouseButton GUIManager::convertButton(MouseButton::Enum button)
     308    inline CEGUI::MouseButton GUIManager::convertButton(MouseButtonCode::ByEnum button)
    309309    {
    310310        switch (button)
    311311        {
    312         case MouseButton::Left:
     312        case MouseButtonCode::Left:
    313313            return CEGUI::LeftButton;
    314314
    315         case MouseButton::Right:
     315        case MouseButtonCode::Right:
    316316            return CEGUI::RightButton;
    317317
    318         case MouseButton::Middle:
     318        case MouseButtonCode::Middle:
    319319            return CEGUI::MiddleButton;
    320320
    321         case MouseButton::Button3:
     321        case MouseButtonCode::Button3:
    322322            return CEGUI::X1Button;
    323323
    324         case MouseButton::Button4:
     324        case MouseButtonCode::Button4:
    325325            return CEGUI::X2Button;
    326326
  • code/trunk/src/orxonox/gui/GUIManager.h

    r1755 r1887  
    9393        { }
    9494
    95         void mouseButtonPressed (MouseButton::Enum id);
    96         void mouseButtonReleased(MouseButton::Enum id);
    97         void mouseButtonHeld    (MouseButton::Enum id)
     95        void mouseButtonPressed (MouseButtonCode::ByEnum id);
     96        void mouseButtonReleased(MouseButtonCode::ByEnum id);
     97        void mouseButtonHeld    (MouseButtonCode::ByEnum id)
    9898        { }
    9999        void mouseMoved         (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize)
     
    123123        State state_;
    124124
    125         static CEGUI::MouseButton convertButton(MouseButton::Enum button);
     125        static CEGUI::MouseButton convertButton(MouseButtonCode::ByEnum button);
    126126
    127127        static GUIManager*        singletonRef_s;
Note: See TracChangeset for help on using the changeset viewer.